@@ -590,8 +590,8 @@ describe('MdSelect', () => {
590
590
591
591
const options =
592
592
overlayContainerElement . querySelectorAll ( 'md-option' ) as NodeListOf < HTMLElement > ;
593
- expect ( options [ 1 ] . classList )
594
- . toContain ( 'mat-selected' , `Expected option with the control's new value to be selected.` ) ;
593
+ expect ( options [ 1 ] . classList ) . toContain ( 'mat-selected' ,
594
+ `Expected option with the control's new value to be selected.` ) ;
595
595
} ) ;
596
596
597
597
it ( 'should update the form value when the view changes' , ( ) => {
@@ -974,7 +974,7 @@ describe('MdSelect', () => {
974
974
trigger = fixture . debugElement . query ( By . css ( '.mat-select-trigger' ) ) . nativeElement ;
975
975
formField = fixture . debugElement . query ( By . css ( '.mat-form-field' ) ) . nativeElement ;
976
976
} ) ) ;
977
- /* TODO(mmalerba): Verify this is correct behavior
977
+
978
978
it ( 'should float the placeholder when the panel is open and unselected' , ( ) => {
979
979
expect ( formField . classList . contains ( 'mat-form-field-should-float' ) )
980
980
. toBe ( false , 'Expected placeholder to initially have a normal position.' ) ;
@@ -992,7 +992,7 @@ describe('MdSelect', () => {
992
992
expect ( formField . classList . contains ( 'mat-form-field-should-float' ) )
993
993
. toBe ( false , 'Expected placeholder to animate back down to normal position.' ) ;
994
994
} ) ;
995
- */
995
+
996
996
it ( 'should add a class to the panel when the menu is done animating' , fakeAsync ( ( ) => {
997
997
trigger . click ( ) ;
998
998
fixture . detectChanges ( ) ;
@@ -1037,7 +1037,7 @@ describe('MdSelect', () => {
1037
1037
const optionTop = options [ index ] . getBoundingClientRect ( ) . top ;
1038
1038
const triggerFontSize = parseInt ( window . getComputedStyle ( trigger ) [ 'font-size' ] ) ;
1039
1039
1040
- // TODO(mmalerba): not really sure where the "+1" is coming from here...
1040
+ /** TODO(mmalerba): not really sure where the "+1" is coming from here... */
1041
1041
expect ( Math . floor ( optionTop ) ) . toBe ( Math . floor ( triggerTop - triggerFontSize + 1 ) ,
1042
1042
`Expected trigger to align with option ${ index } .` ) ;
1043
1043
@@ -1151,8 +1151,8 @@ describe('MdSelect', () => {
1151
1151
fixture . whenStable ( ) . then ( ( ) => {
1152
1152
// The selected option should be scrolled to the center of the panel.
1153
1153
// This will be its original offset from the scrollTop - half the panel height + half the
1154
- // option height. 10 (option index + 3 group labels before it) * 48 (option height) = 480px.
1155
- // 480 (offset from scrollTop) - 256/2 + 48/2 = 376px
1154
+ // option height. 10 (option index + 3 group labels before it) * 48 (option height) =
1155
+ // 480px. 480 (offset from scrollTop) - 256/2 + 48/2 = 376px
1156
1156
expect ( Math . floor ( scrollContainer . scrollTop ) )
1157
1157
. toBe ( 376 , `Expected overlay panel to be scrolled to center the selected option.` ) ;
1158
1158
@@ -3153,7 +3153,6 @@ class BasicSelectWithTheming {
3153
3153
<md-option *ngFor="let food of foods" [value]="food.value">
3154
3154
{{ food.viewValue }}
3155
3155
</md-option>
3156
-
3157
3156
<md-option>None</md-option>
3158
3157
</md-select>
3159
3158
</md-form-field>
@@ -3199,12 +3198,10 @@ class FalsyValueSelect {
3199
3198
<md-select placeholder="Pokemon" [formControl]="control">
3200
3199
<md-optgroup *ngFor="let group of pokemonTypes" [label]="group.name"
3201
3200
[disabled]="group.disabled">
3202
-
3203
3201
<md-option *ngFor="let pokemon of group.pokemon" [value]="pokemon.value">
3204
3202
{{ pokemon.viewValue }}
3205
3203
</md-option>
3206
3204
</md-optgroup>
3207
-
3208
3205
<md-option value="mime-11">Mr. Mime</md-option>
3209
3206
</md-select>
3210
3207
</md-form-field>
@@ -3331,7 +3328,7 @@ class BasicSelectWithoutFormsPreselected {
3331
3328
}
3332
3329
3333
3330
@Component ( {
3334
- template : `
3331
+ template : `
3335
3332
<md-form-field>
3336
3333
<md-select placeholder="Food" [(value)]="selectedFoods" multiple>
3337
3334
<md-option *ngFor="let food of foods" [value]="food.value">
@@ -3355,8 +3352,8 @@ class BasicSelectWithoutFormsMultiple {
3355
3352
3356
3353
@Component ( {
3357
3354
selector : 'select-with-custom-trigger' ,
3358
- template : `
3359
- <md-form-field>
3355
+ template : `
3356
+ <md-form-field>
3360
3357
<md-select placeholder="Food" [formControl]="control" #select="mdSelect">
3361
3358
<md-select-trigger>
3362
3359
{{ select.selected?.viewValue.split('').reverse().join('') }}
0 commit comments