mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore(checkbox): duplicate event binding in tests (#4758)
* Removes the duplicate event binding for the `(change)` event in the checkbox tests.
This commit is contained in:
committed by
tinayuangao
parent
e3b2587294
commit
1789f40722
@@ -795,7 +795,6 @@ describe('MdCheckbox', () => {
|
||||
[color]="checkboxColor"
|
||||
[disableRipple]="disableRipple"
|
||||
[value]="checkboxValue"
|
||||
(change)="changeCount = changeCount + 1"
|
||||
(click)="onCheckboxClick($event)"
|
||||
(change)="onCheckboxChange($event)">
|
||||
Simple checkbox
|
||||
@@ -812,7 +811,6 @@ class SingleCheckbox {
|
||||
parentElementClicked: boolean = false;
|
||||
parentElementKeyedUp: boolean = false;
|
||||
lastKeydownEvent: Event = null;
|
||||
changeCount: number = 0;
|
||||
checkboxColor: string = 'primary';
|
||||
checkboxValue: string = 'single_checkbox';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user