Skip to content

Commit 7f35086

Browse files
committed
remove unnecessary async() from input
1 parent cb5b6d0 commit 7f35086

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

src/components/input/input.spec.ts

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ describe('MdInput', function () {
260260
expect(testComponent.onBlur).toHaveBeenCalledWith(fakeEvent);
261261
});
262262

263-
it('supports the autoComplete attribute', async(() => {
263+
it('supports the autoComplete attribute', () => {
264264
let fixture = TestBed.createComponent(MdInputWithAutocomplete);
265265
fixture.detectChanges();
266266

@@ -273,9 +273,9 @@ describe('MdInput', function () {
273273
input.autoComplete = 'on';
274274
fixture.detectChanges();
275275
expect(el.getAttribute('autocomplete')).toEqual('on');
276-
}));
276+
});
277277

278-
it('supports the autoCorrect attribute', async(() => {
278+
it('supports the autoCorrect attribute', () => {
279279
let fixture = TestBed.createComponent(MdInputWithAutocorrect);
280280
fixture.detectChanges();
281281

@@ -288,9 +288,9 @@ describe('MdInput', function () {
288288
input.autoCorrect = 'on';
289289
fixture.detectChanges();
290290
expect(el.getAttribute('autocorrect')).toEqual('on');
291-
}));
291+
});
292292

293-
it('supports the autoCapitalize attribute', async(() => {
293+
it('supports the autoCapitalize attribute', () => {
294294
let fixture = TestBed.createComponent(MdInputWithAutocapitalize);
295295
fixture.detectChanges();
296296

@@ -303,29 +303,29 @@ describe('MdInput', function () {
303303
input.autoCapitalize = 'on';
304304
fixture.detectChanges();
305305
expect(el.getAttribute('autocapitalize')).toEqual('on');
306-
}));
306+
});
307307

308-
it('supports the autoComplete attribute as an unbound attribute', async(() => {
308+
it('supports the autoComplete attribute as an unbound attribute', () => {
309309
let fixture = TestBed.createComponent(MdInputWithUnboundAutocomplete);
310310
fixture.detectChanges();
311311

312312
let el: HTMLInputElement = fixture.debugElement.query(By.css('input')).nativeElement;
313313

314314
expect(el).not.toBeNull();
315315
expect(el.getAttribute('autocomplete')).toEqual('');
316-
}));
316+
});
317317

318-
it('supports the autoComplete attribute as an unbound value attribute', async(() => {
318+
it('supports the autoComplete attribute as an unbound value attribute', () => {
319319
let fixture = TestBed.createComponent(MdInputWithUnboundAutocompleteWithValue);
320320
fixture.detectChanges();
321321

322322
let el: HTMLInputElement = fixture.debugElement.query(By.css('input')).nativeElement;
323323

324324
expect(el).not.toBeNull();
325325
expect(el.getAttribute('autocomplete')).toEqual('name');
326-
}));
326+
});
327327

328-
it('supports the autoFocus attribute', async(() => {
328+
it('supports the autoFocus attribute', () => {
329329
let fixture = TestBed.createComponent(MdInputWithAutofocus);
330330
fixture.detectChanges();
331331

@@ -338,19 +338,19 @@ describe('MdInput', function () {
338338
input.autoFocus = true;
339339
fixture.detectChanges();
340340
expect(el.getAttribute('autofocus')).toEqual('');
341-
}));
341+
});
342342

343-
it('supports the autoFocus attribute as an unbound attribute', async(() => {
343+
it('supports the autoFocus attribute as an unbound attribute', () => {
344344
let fixture = TestBed.createComponent(MdInputWithUnboundAutofocus);
345345
fixture.detectChanges();
346346

347347
let el: HTMLInputElement = fixture.debugElement.query(By.css('input')).nativeElement;
348348

349349
expect(el).not.toBeNull();
350350
expect(el.getAttribute('autofocus')).toEqual('');
351-
}));
351+
});
352352

353-
it('supports the disabled attribute', async(() => {
353+
it('supports the disabled attribute', () => {
354354
let fixture = TestBed.createComponent(MdInputWithDisabled);
355355
let input: MdInput = fixture.debugElement.query(By.directive(MdInput)).componentInstance;
356356
input.disabled = false;
@@ -365,19 +365,19 @@ describe('MdInput', function () {
365365
fixture.componentInstance.disabled = true;
366366
fixture.detectChanges();
367367
expect(el.getAttribute('disabled')).toEqual('');
368-
}));
368+
});
369369

370-
it('supports the disabled attribute as an unbound attribute', async(() => {
370+
it('supports the disabled attribute as an unbound attribute', () => {
371371
let fixture = TestBed.createComponent(MdInputWithUnboundDisabled);
372372
fixture.detectChanges();
373373

374374
let el: HTMLInputElement = fixture.debugElement.query(By.css('input')).nativeElement;
375375

376376
expect(el).not.toBeNull();
377377
expect(el.getAttribute('disabled')).toEqual('');
378-
}));
378+
});
379379

380-
it('supports the list attribute', async(() => {
380+
it('supports the list attribute', () => {
381381
let fixture = TestBed.createComponent(MdInputWithList);
382382
let input: MdInput = fixture.debugElement.query(By.directive(MdInput)).componentInstance;
383383
input.disabled = false;
@@ -390,9 +390,9 @@ describe('MdInput', function () {
390390
input.list = 'datalist-id';
391391
fixture.detectChanges();
392392
expect(el.getAttribute('list')).toEqual('datalist-id');
393-
}));
393+
});
394394

395-
it('supports the max attribute', async(() => {
395+
it('supports the max attribute', () => {
396396
let fixture = TestBed.createComponent(MdInputWithMax);
397397
let input: MdInput = fixture.debugElement.query(By.directive(MdInput)).componentInstance;
398398
input.disabled = false;
@@ -411,9 +411,9 @@ describe('MdInput', function () {
411411
input.max = '2000-01-02';
412412
fixture.detectChanges();
413413
expect(el.getAttribute('max')).toEqual('2000-01-02');
414-
}));
414+
});
415415

416-
it('supports the min attribute', async(() => {
416+
it('supports the min attribute', () => {
417417
let fixture = TestBed.createComponent(MdInputWithMin);
418418
let input: MdInput = fixture.debugElement.query(By.directive(MdInput)).componentInstance;
419419
input.disabled = false;
@@ -431,9 +431,9 @@ describe('MdInput', function () {
431431
input.min = '2000-01-02';
432432
fixture.detectChanges();
433433
expect(el.getAttribute('min')).toEqual('2000-01-02');
434-
}));
434+
});
435435

436-
it('supports the readOnly attribute', async(() => {
436+
it('supports the readOnly attribute', () => {
437437
let fixture = TestBed.createComponent(MdInputWithReadonly);
438438
fixture.detectChanges();
439439

@@ -446,19 +446,19 @@ describe('MdInput', function () {
446446
input.readOnly = true;
447447
fixture.detectChanges();
448448
expect(el.getAttribute('readonly')).toEqual('');
449-
}));
449+
});
450450

451-
it('supports the readOnly attribute as an unbound attribute', async(() => {
451+
it('supports the readOnly attribute as an unbound attribute', () => {
452452
let fixture = TestBed.createComponent(MdInputWithUnboundReadonly);
453453
fixture.detectChanges();
454454

455455
let el: HTMLInputElement = fixture.debugElement.query(By.css('input')).nativeElement;
456456

457457
expect(el).not.toBeNull();
458458
expect(el.getAttribute('readonly')).toEqual('');
459-
}));
459+
});
460460

461-
it('supports the required attribute', async(() => {
461+
it('supports the required attribute', () => {
462462
let fixture = TestBed.createComponent(MdInputWithRequired);
463463
fixture.detectChanges();
464464

@@ -471,19 +471,19 @@ describe('MdInput', function () {
471471
input.required = true;
472472
fixture.detectChanges();
473473
expect(el.getAttribute('required')).toEqual('');
474-
}));
474+
});
475475

476-
it('supports the required attribute as an unbound attribute', async(() => {
476+
it('supports the required attribute as an unbound attribute', () => {
477477
let fixture = TestBed.createComponent(MdInputWithUnboundRequired);
478478
fixture.detectChanges();
479479

480480
let el: HTMLInputElement = fixture.debugElement.query(By.css('input')).nativeElement;
481481

482482
expect(el).not.toBeNull();
483483
expect(el.getAttribute('required')).toEqual('');
484-
}));
484+
});
485485

486-
it('supports the spellCheck attribute', async(() => {
486+
it('supports the spellCheck attribute', () => {
487487
let fixture = TestBed.createComponent(MdInputWithSpellcheck);
488488
fixture.detectChanges();
489489

@@ -496,19 +496,19 @@ describe('MdInput', function () {
496496
input.spellCheck = true;
497497
fixture.detectChanges();
498498
expect(el.getAttribute('spellcheck')).toEqual('true');
499-
}));
499+
});
500500

501-
it('supports the spellCheck attribute as an unbound attribute', async(() => {
501+
it('supports the spellCheck attribute as an unbound attribute', () => {
502502
let fixture = TestBed.createComponent(MdInputWithUnboundSpellcheck);
503503
fixture.detectChanges();
504504

505505
let el: HTMLInputElement = fixture.debugElement.query(By.css('input')).nativeElement;
506506

507507
expect(el).not.toBeNull();
508508
expect(el.getAttribute('spellcheck')).toEqual('true');
509-
}));
509+
});
510510

511-
it('supports the step attribute', async(() => {
511+
it('supports the step attribute', () => {
512512
let fixture = TestBed.createComponent(MdInputWithStep);
513513
fixture.detectChanges();
514514

@@ -521,9 +521,9 @@ describe('MdInput', function () {
521521
input.step = 0.5;
522522
fixture.detectChanges();
523523
expect(el.getAttribute('step')).toEqual('0.5');
524-
}));
524+
});
525525

526-
it('supports the tabIndex attribute', async(() => {
526+
it('supports the tabIndex attribute', () => {
527527
let fixture = TestBed.createComponent(MdInputWithTabindex);
528528
fixture.detectChanges();
529529

@@ -536,16 +536,16 @@ describe('MdInput', function () {
536536
input.tabIndex = 1;
537537
fixture.detectChanges();
538538
expect(el.getAttribute('tabindex')).toEqual('1');
539-
}));
539+
});
540540

541-
it('supports a name attribute', async(() => {
541+
it('supports a name attribute', () => {
542542
let fixture = TestBed.createComponent(MdInputWithNameTestController);
543543
const inputElement: HTMLInputElement = fixture.debugElement.query(By.css('input'))
544544
.nativeElement;
545545
fixture.detectChanges();
546546

547547
expect(inputElement.name).toBe('some-name');
548-
}));
548+
});
549549
});
550550

551551
@Component({template: `<md-input id="test-id"></md-input>`})

0 commit comments

Comments
 (0)