@@ -45,7 +45,7 @@ describe('MdCheckbox', () => {
45
45
let inputElement : HTMLInputElement ;
46
46
let labelElement : HTMLLabelElement ;
47
47
48
- beforeEach ( async ( ( ) => {
48
+ beforeEach ( ( ) => {
49
49
fixture = TestBed . createComponent ( SingleCheckbox ) ;
50
50
fixture . detectChanges ( ) ;
51
51
@@ -55,7 +55,7 @@ describe('MdCheckbox', () => {
55
55
testComponent = fixture . debugElement . componentInstance ;
56
56
inputElement = < HTMLInputElement > checkboxNativeElement . querySelector ( 'input' ) ;
57
57
labelElement = < HTMLLabelElement > checkboxNativeElement . querySelector ( 'label' ) ;
58
- } ) ) ;
58
+ } ) ;
59
59
60
60
it ( 'should add and remove the checked state' , ( ) => {
61
61
expect ( checkboxInstance . checked ) . toBe ( false ) ;
@@ -318,7 +318,7 @@ describe('MdCheckbox', () => {
318
318
let inputElement : HTMLInputElement ;
319
319
let labelElement : HTMLLabelElement ;
320
320
321
- beforeEach ( async ( ( ) => {
321
+ beforeEach ( ( ) => {
322
322
fixture = TestBed . createComponent ( CheckboxWithChangeEvent ) ;
323
323
fixture . detectChanges ( ) ;
324
324
@@ -328,7 +328,7 @@ describe('MdCheckbox', () => {
328
328
testComponent = fixture . debugElement . componentInstance ;
329
329
inputElement = < HTMLInputElement > checkboxNativeElement . querySelector ( 'input' ) ;
330
330
labelElement = < HTMLLabelElement > checkboxNativeElement . querySelector ( 'label' ) ;
331
- } ) ) ;
331
+ } ) ;
332
332
333
333
it ( 'should emit the event to the change observable' , ( ) => {
334
334
let changeSpy = jasmine . createSpy ( 'onChangeObservable' ) ;
@@ -370,41 +370,41 @@ describe('MdCheckbox', () => {
370
370
let checkboxNativeElement : HTMLElement ;
371
371
let inputElement : HTMLInputElement ;
372
372
373
- it ( 'should use the provided aria-label' , async ( ( ) => {
373
+ it ( 'should use the provided aria-label' , ( ) => {
374
374
fixture = TestBed . createComponent ( CheckboxWithAriaLabel ) ;
375
375
checkboxDebugElement = fixture . debugElement . query ( By . directive ( MdCheckbox ) ) ;
376
376
checkboxNativeElement = checkboxDebugElement . nativeElement ;
377
377
inputElement = < HTMLInputElement > checkboxNativeElement . querySelector ( 'input' ) ;
378
378
379
379
fixture . detectChanges ( ) ;
380
380
expect ( inputElement . getAttribute ( 'aria-label' ) ) . toBe ( 'Super effective' ) ;
381
- } ) ) ;
381
+ } ) ;
382
382
} ) ;
383
383
384
384
describe ( 'with provided aria-labelledby ' , ( ) => {
385
385
let checkboxDebugElement : DebugElement ;
386
386
let checkboxNativeElement : HTMLElement ;
387
387
let inputElement : HTMLInputElement ;
388
388
389
- it ( 'should use the provided aria-labelledby' , async ( ( ) => {
389
+ it ( 'should use the provided aria-labelledby' , ( ) => {
390
390
fixture = TestBed . createComponent ( CheckboxWithAriaLabelledby ) ;
391
391
checkboxDebugElement = fixture . debugElement . query ( By . directive ( MdCheckbox ) ) ;
392
392
checkboxNativeElement = checkboxDebugElement . nativeElement ;
393
393
inputElement = < HTMLInputElement > checkboxNativeElement . querySelector ( 'input' ) ;
394
394
395
395
fixture . detectChanges ( ) ;
396
396
expect ( inputElement . getAttribute ( 'aria-labelledby' ) ) . toBe ( 'some-id' ) ;
397
- } ) ) ;
397
+ } ) ;
398
398
399
- it ( 'should not assign aria-labelledby if none is provided' , async ( ( ) => {
399
+ it ( 'should not assign aria-labelledby if none is provided' , ( ) => {
400
400
fixture = TestBed . createComponent ( SingleCheckbox ) ;
401
401
checkboxDebugElement = fixture . debugElement . query ( By . directive ( MdCheckbox ) ) ;
402
402
checkboxNativeElement = checkboxDebugElement . nativeElement ;
403
403
inputElement = < HTMLInputElement > checkboxNativeElement . querySelector ( 'input' ) ;
404
404
405
405
fixture . detectChanges ( ) ;
406
406
expect ( inputElement . getAttribute ( 'aria-labelledby' ) ) . toBe ( null ) ;
407
- } ) ) ;
407
+ } ) ;
408
408
} ) ;
409
409
410
410
describe ( 'with provided tabIndex' , ( ) => {
@@ -414,7 +414,7 @@ describe('MdCheckbox', () => {
414
414
let inputElement : HTMLInputElement ;
415
415
let labelElement : HTMLLabelElement ;
416
416
417
- beforeEach ( async ( ( ) => {
417
+ beforeEach ( ( ) => {
418
418
fixture = TestBed . createComponent ( CheckboxWithTabIndex ) ;
419
419
fixture . detectChanges ( ) ;
420
420
@@ -423,11 +423,11 @@ describe('MdCheckbox', () => {
423
423
checkboxNativeElement = checkboxDebugElement . nativeElement ;
424
424
inputElement = < HTMLInputElement > checkboxNativeElement . querySelector ( 'input' ) ;
425
425
labelElement = < HTMLLabelElement > checkboxNativeElement . querySelector ( 'label' ) ;
426
- } ) ) ;
426
+ } ) ;
427
427
428
- it ( 'should preserve any given tabIndex' , async ( ( ) => {
428
+ it ( 'should preserve any given tabIndex' , ( ) => {
429
429
expect ( inputElement . tabIndex ) . toBe ( 7 ) ;
430
- } ) ) ;
430
+ } ) ;
431
431
432
432
it ( 'should preserve given tabIndex when the checkbox is disabled then enabled' , ( ) => {
433
433
testComponent . isDisabled = true ;
@@ -444,10 +444,10 @@ describe('MdCheckbox', () => {
444
444
} ) ;
445
445
446
446
describe ( 'with multiple checkboxes' , ( ) => {
447
- beforeEach ( async ( ( ) => {
447
+ beforeEach ( ( ) => {
448
448
fixture = TestBed . createComponent ( MultipleCheckboxes ) ;
449
449
fixture . detectChanges ( ) ;
450
- } ) ) ;
450
+ } ) ;
451
451
452
452
it ( 'should assign a unique id to each checkbox' , ( ) => {
453
453
let [ firstId , secondId ] =
@@ -461,10 +461,10 @@ describe('MdCheckbox', () => {
461
461
} ) ;
462
462
463
463
describe ( 'with ngModel' , ( ) => {
464
- beforeEach ( async ( ( ) => {
464
+ beforeEach ( ( ) => {
465
465
fixture = TestBed . createComponent ( CheckboxWithFormDirectives ) ;
466
466
fixture . detectChanges ( ) ;
467
- } ) ) ;
467
+ } ) ;
468
468
469
469
it ( 'should be in pristine, untouched, and valid states initially' , fakeAsync ( ( ) => {
470
470
flushMicrotasks ( ) ;
@@ -482,17 +482,17 @@ describe('MdCheckbox', () => {
482
482
} ) ;
483
483
484
484
describe ( 'with name attribute' , ( ) => {
485
- beforeEach ( async ( ( ) => {
485
+ beforeEach ( ( ) => {
486
486
fixture = TestBed . createComponent ( CheckboxWithNameAttribute ) ;
487
487
fixture . detectChanges ( ) ;
488
- } ) ) ;
488
+ } ) ;
489
489
490
- it ( 'should forward name value to input element' , fakeAsync ( ( ) => {
490
+ it ( 'should forward name value to input element' , ( ) => {
491
491
let checkboxElement = fixture . debugElement . query ( By . directive ( MdCheckbox ) ) ;
492
492
let inputElement = < HTMLInputElement > checkboxElement . nativeElement . querySelector ( 'input' ) ;
493
493
494
494
expect ( inputElement . getAttribute ( 'name' ) ) . toBe ( 'test-name' ) ;
495
- } ) ) ;
495
+ } ) ;
496
496
} ) ;
497
497
} ) ;
498
498
0 commit comments