@@ -581,8 +581,8 @@ describe('MdSelect', () => {
581
581
582
582
const options =
583
583
overlayContainerElement . querySelectorAll ( 'md-option' ) as NodeListOf < HTMLElement > ;
584
- expect ( options [ 1 ] . classList )
585
- . toContain ( 'mat-selected' , `Expected option with the control's new value to be selected.` ) ;
584
+ expect ( options [ 1 ] . classList ) . toContain ( 'mat-selected' ,
585
+ `Expected option with the control's new value to be selected.` ) ;
586
586
} ) ;
587
587
588
588
it ( 'should update the form value when the view changes' , ( ) => {
@@ -965,7 +965,7 @@ describe('MdSelect', () => {
965
965
trigger = fixture . debugElement . query ( By . css ( '.mat-select-trigger' ) ) . nativeElement ;
966
966
formField = fixture . debugElement . query ( By . css ( '.mat-form-field' ) ) . nativeElement ;
967
967
} ) ) ;
968
- /* TODO(mmalerba): Verify this is correct behavior
968
+
969
969
it ( 'should float the placeholder when the panel is open and unselected' , ( ) => {
970
970
expect ( formField . classList . contains ( 'mat-form-field-should-float' ) )
971
971
. toBe ( false , 'Expected placeholder to initially have a normal position.' ) ;
@@ -983,7 +983,7 @@ describe('MdSelect', () => {
983
983
expect ( formField . classList . contains ( 'mat-form-field-should-float' ) )
984
984
. toBe ( false , 'Expected placeholder to animate back down to normal position.' ) ;
985
985
} ) ;
986
- */
986
+
987
987
it ( 'should add a class to the panel when the menu is done animating' , fakeAsync ( ( ) => {
988
988
trigger . click ( ) ;
989
989
fixture . detectChanges ( ) ;
@@ -1028,7 +1028,7 @@ describe('MdSelect', () => {
1028
1028
const optionTop = options [ index ] . getBoundingClientRect ( ) . top ;
1029
1029
const triggerFontSize = parseInt ( window . getComputedStyle ( trigger ) [ 'font-size' ] ) ;
1030
1030
1031
- // TODO(mmalerba): not really sure where the "+1" is coming from here...
1031
+ /** TODO(mmalerba): not really sure where the "+1" is coming from here... */
1032
1032
expect ( Math . floor ( optionTop ) ) . toBe ( Math . floor ( triggerTop - triggerFontSize + 1 ) ,
1033
1033
`Expected trigger to align with option ${ index } .` ) ;
1034
1034
@@ -1142,8 +1142,8 @@ describe('MdSelect', () => {
1142
1142
fixture . whenStable ( ) . then ( ( ) => {
1143
1143
// The selected option should be scrolled to the center of the panel.
1144
1144
// This will be its original offset from the scrollTop - half the panel height + half the
1145
- // option height. 10 (option index + 3 group labels before it) * 48 (option height) = 480px.
1146
- // 480 (offset from scrollTop) - 256/2 + 48/2 = 376px
1145
+ // option height. 10 (option index + 3 group labels before it) * 48 (option height) =
1146
+ // 480px. 480 (offset from scrollTop) - 256/2 + 48/2 = 376px
1147
1147
expect ( Math . floor ( scrollContainer . scrollTop ) )
1148
1148
. toBe ( 376 , `Expected overlay panel to be scrolled to center the selected option.` ) ;
1149
1149
@@ -3068,7 +3068,6 @@ class BasicSelectWithTheming {
3068
3068
<md-option *ngFor="let food of foods" [value]="food.value">
3069
3069
{{ food.viewValue }}
3070
3070
</md-option>
3071
-
3072
3071
<md-option>None</md-option>
3073
3072
</md-select>
3074
3073
</md-form-field>
@@ -3114,12 +3113,10 @@ class FalsyValueSelect {
3114
3113
<md-select placeholder="Pokemon" [formControl]="control">
3115
3114
<md-optgroup *ngFor="let group of pokemonTypes" [label]="group.name"
3116
3115
[disabled]="group.disabled">
3117
-
3118
3116
<md-option *ngFor="let pokemon of group.pokemon" [value]="pokemon.value">
3119
3117
{{ pokemon.viewValue }}
3120
3118
</md-option>
3121
3119
</md-optgroup>
3122
-
3123
3120
<md-option value="mime-11">Mr. Mime</md-option>
3124
3121
</md-select>
3125
3122
</md-form-field>
@@ -3246,7 +3243,7 @@ class BasicSelectWithoutFormsPreselected {
3246
3243
}
3247
3244
3248
3245
@Component ( {
3249
- template : `
3246
+ template : `
3250
3247
<md-form-field>
3251
3248
<md-select placeholder="Food" [(value)]="selectedFoods" multiple>
3252
3249
<md-option *ngFor="let food of foods" [value]="food.value">
@@ -3269,8 +3266,8 @@ class BasicSelectWithoutFormsMultiple {
3269
3266
3270
3267
@Component ( {
3271
3268
selector : 'select-with-custom-trigger' ,
3272
- template : `
3273
- <md-form-field>
3269
+ template : `
3270
+ <md-form-field>
3274
3271
<md-select placeholder="Food" [formControl]="control" #select="mdSelect">
3275
3272
<md-select-trigger>
3276
3273
{{ select.selected?.viewValue.split('').reverse().join('') }}
0 commit comments