@@ -589,8 +589,8 @@ describe('MdSelect', () => {
589
589
590
590
const options =
591
591
overlayContainerElement . querySelectorAll ( 'md-option' ) as NodeListOf < HTMLElement > ;
592
- expect ( options [ 1 ] . classList )
593
- . toContain ( 'mat-selected' , `Expected option with the control's new value to be selected.` ) ;
592
+ expect ( options [ 1 ] . classList ) . toContain ( 'mat-selected' ,
593
+ `Expected option with the control's new value to be selected.` ) ;
594
594
} ) ;
595
595
596
596
it ( 'should update the form value when the view changes' , ( ) => {
@@ -973,7 +973,7 @@ describe('MdSelect', () => {
973
973
trigger = fixture . debugElement . query ( By . css ( '.mat-select-trigger' ) ) . nativeElement ;
974
974
formField = fixture . debugElement . query ( By . css ( '.mat-form-field' ) ) . nativeElement ;
975
975
} ) ) ;
976
- /* TODO(mmalerba): Verify this is correct behavior
976
+
977
977
it ( 'should float the placeholder when the panel is open and unselected' , ( ) => {
978
978
expect ( formField . classList . contains ( 'mat-form-field-should-float' ) )
979
979
. toBe ( false , 'Expected placeholder to initially have a normal position.' ) ;
@@ -991,7 +991,7 @@ describe('MdSelect', () => {
991
991
expect ( formField . classList . contains ( 'mat-form-field-should-float' ) )
992
992
. toBe ( false , 'Expected placeholder to animate back down to normal position.' ) ;
993
993
} ) ;
994
- */
994
+
995
995
it ( 'should add a class to the panel when the menu is done animating' , fakeAsync ( ( ) => {
996
996
trigger . click ( ) ;
997
997
fixture . detectChanges ( ) ;
@@ -1036,7 +1036,7 @@ describe('MdSelect', () => {
1036
1036
const optionTop = options [ index ] . getBoundingClientRect ( ) . top ;
1037
1037
const triggerFontSize = parseInt ( window . getComputedStyle ( trigger ) [ 'font-size' ] ) ;
1038
1038
1039
- // TODO(mmalerba): not really sure where the "+1" is coming from here...
1039
+ /** TODO(mmalerba): not really sure where the "+1" is coming from here... */
1040
1040
expect ( Math . floor ( optionTop ) ) . toBe ( Math . floor ( triggerTop - triggerFontSize + 1 ) ,
1041
1041
`Expected trigger to align with option ${ index } .` ) ;
1042
1042
@@ -1150,8 +1150,8 @@ describe('MdSelect', () => {
1150
1150
fixture . whenStable ( ) . then ( ( ) => {
1151
1151
// The selected option should be scrolled to the center of the panel.
1152
1152
// This will be its original offset from the scrollTop - half the panel height + half the
1153
- // option height. 10 (option index + 3 group labels before it) * 48 (option height) = 480px.
1154
- // 480 (offset from scrollTop) - 256/2 + 48/2 = 376px
1153
+ // option height. 10 (option index + 3 group labels before it) * 48 (option height) =
1154
+ // 480px. 480 (offset from scrollTop) - 256/2 + 48/2 = 376px
1155
1155
expect ( Math . floor ( scrollContainer . scrollTop ) )
1156
1156
. toBe ( 376 , `Expected overlay panel to be scrolled to center the selected option.` ) ;
1157
1157
@@ -3144,7 +3144,6 @@ class BasicSelectWithTheming {
3144
3144
<md-option *ngFor="let food of foods" [value]="food.value">
3145
3145
{{ food.viewValue }}
3146
3146
</md-option>
3147
-
3148
3147
<md-option>None</md-option>
3149
3148
</md-select>
3150
3149
</md-form-field>
@@ -3190,12 +3189,10 @@ class FalsyValueSelect {
3190
3189
<md-select placeholder="Pokemon" [formControl]="control">
3191
3190
<md-optgroup *ngFor="let group of pokemonTypes" [label]="group.name"
3192
3191
[disabled]="group.disabled">
3193
-
3194
3192
<md-option *ngFor="let pokemon of group.pokemon" [value]="pokemon.value">
3195
3193
{{ pokemon.viewValue }}
3196
3194
</md-option>
3197
3195
</md-optgroup>
3198
-
3199
3196
<md-option value="mime-11">Mr. Mime</md-option>
3200
3197
</md-select>
3201
3198
</md-form-field>
@@ -3322,7 +3319,7 @@ class BasicSelectWithoutFormsPreselected {
3322
3319
}
3323
3320
3324
3321
@Component ( {
3325
- template : `
3322
+ template : `
3326
3323
<md-form-field>
3327
3324
<md-select placeholder="Food" [(value)]="selectedFoods" multiple>
3328
3325
<md-option *ngFor="let food of foods" [value]="food.value">
@@ -3346,8 +3343,8 @@ class BasicSelectWithoutFormsMultiple {
3346
3343
3347
3344
@Component ( {
3348
3345
selector : 'select-with-custom-trigger' ,
3349
- template : `
3350
- <md-form-field>
3346
+ template : `
3347
+ <md-form-field>
3351
3348
<md-select placeholder="Food" [formControl]="control" #select="mdSelect">
3352
3349
<md-select-trigger>
3353
3350
{{ select.selected?.viewValue.split('').reverse().join('') }}
0 commit comments