@@ -60,8 +60,8 @@ describe('MdInputContainer', function () {
6060
6161 let inputContainer = fixture . debugElement . query ( By . directive ( MdInputContainer ) )
6262 . componentInstance as MdInputContainer ;
63- expect ( inputContainer . floatingPlaceholder ) . toBe ( true ,
64- 'Expected MdInputContainer to default to having floating placeholders turned on ' ) ;
63+ expect ( inputContainer . floatingPlaceholder ) . toBe ( 'auto' ,
64+ 'Expected MdInputContainer to set floatingLabel to auto by default. ' ) ;
6565 } ) ;
6666
6767 it ( 'should not be treated as empty if type is date' ,
@@ -410,20 +410,20 @@ describe('MdInputContainer', function () {
410410 let fixture = TestBed . createComponent ( MdInputContainerWithDynamicPlaceholder ) ;
411411 fixture . detectChanges ( ) ;
412412
413- let inputEl = fixture . debugElement . query ( By . css ( 'input' ) ) ;
413+ let inputEl = fixture . debugElement . query ( By . css ( 'input' ) ) . nativeElement ;
414414 let labelEl = fixture . debugElement . query ( By . css ( 'label' ) ) . nativeElement ;
415415
416416 expect ( labelEl . classList ) . not . toContain ( 'md-empty' ) ;
417417 expect ( labelEl . classList ) . toContain ( 'md-float' ) ;
418418
419- fixture . componentInstance . shouldFloat = null ;
419+ fixture . componentInstance . shouldFloat = 'auto' ;
420420 fixture . detectChanges ( ) ;
421421
422422 expect ( labelEl . classList ) . toContain ( 'md-empty' ) ;
423423 expect ( labelEl . classList ) . toContain ( 'md-float' ) ;
424424
425425 // Update the value of the input.
426- inputEl . nativeElement . value = 'Text' ;
426+ inputEl . value = 'Text' ;
427427
428428 // Fake behavior of the `(input)` event which should trigger a change detection.
429429 fixture . detectChanges ( ) ;
@@ -436,7 +436,7 @@ describe('MdInputContainer', function () {
436436 let fixture = TestBed . createComponent ( MdInputContainerWithDynamicPlaceholder ) ;
437437 fixture . detectChanges ( ) ;
438438
439- let inputEl = fixture . debugElement . query ( By . css ( 'input' ) ) ;
439+ let inputEl = fixture . debugElement . query ( By . css ( 'input' ) ) . nativeElement ;
440440 let labelEl = fixture . debugElement . query ( By . css ( 'label' ) ) . nativeElement ;
441441
442442 expect ( labelEl . classList ) . not . toContain ( 'md-empty' ) ;
@@ -445,7 +445,7 @@ describe('MdInputContainer', function () {
445445 fixture . detectChanges ( ) ;
446446
447447 // Update the value of the input.
448- inputEl . nativeElement . value = 'Text' ;
448+ inputEl . value = 'Text' ;
449449
450450 // Fake behavior of the `(input)` event which should trigger a change detection.
451451 fixture . detectChanges ( ) ;
@@ -458,17 +458,17 @@ describe('MdInputContainer', function () {
458458 it ( 'should never float the placeholder when floatingPlaceholder is set to false' , ( ) => {
459459 let fixture = TestBed . createComponent ( MdInputContainerWithDynamicPlaceholder ) ;
460460
461- fixture . componentInstance . shouldFloat = false ;
461+ fixture . componentInstance . shouldFloat = 'never' ;
462462 fixture . detectChanges ( ) ;
463463
464- let inputEl = fixture . debugElement . query ( By . css ( 'input' ) ) ;
464+ let inputEl = fixture . debugElement . query ( By . css ( 'input' ) ) . nativeElement ;
465465 let labelEl = fixture . debugElement . query ( By . css ( 'label' ) ) . nativeElement ;
466466
467467 expect ( labelEl . classList ) . toContain ( 'md-empty' ) ;
468468 expect ( labelEl . classList ) . not . toContain ( 'md-float' ) ;
469469
470470 // Update the value of the input.
471- inputEl . nativeElement . value = 'Text' ;
471+ inputEl . value = 'Text' ;
472472
473473 // Fake behavior of the `(input)` event which should trigger a change detection.
474474 fixture . detectChanges ( ) ;
@@ -646,7 +646,7 @@ class MdInputContainerWithValueBinding {
646646
647647@Component ( {
648648 template : `
649- <md-input-container [ floatingPlaceholder]="false ">
649+ <md-input-container floatingPlaceholder="never ">
650650 <input md-input placeholder="Label">
651651 </md-input-container>
652652 `
@@ -660,7 +660,7 @@ class MdInputContainerWithStaticPlaceholder {}
660660 </md-input-container>`
661661} )
662662class MdInputContainerWithDynamicPlaceholder {
663- shouldFloat : boolean = true ;
663+ shouldFloat : string = 'always' ;
664664}
665665
666666@Component ( {
0 commit comments