@@ -123,19 +123,19 @@ describe('MdTabGroup', () => {
123123 expect ( testComponent . focusEvent . index ) . toBe ( 0 ) ;
124124 } ) ) ;
125125
126- it ( 'should change tabs based on selectedIndex and update tab body positions ' , fakeAsync ( ( ) => {
126+ it ( 'should change tabs based on selectedIndex' , fakeAsync ( ( ) => {
127127 let component = fixture . componentInstance ;
128128 let tabComponent = fixture . debugElement . query ( By . css ( 'md-tab-group' ) ) . componentInstance ;
129- spyOn ( component , 'handleSelection' ) . and . callThrough ( ) ;
130129
131- fixture . detectChanges ( ) ;
130+ spyOn ( component , 'handleSelection' ) . and . callThrough ( ) ;
132131
133132 checkSelectedIndex ( 1 , fixture ) ;
134133
135134 tabComponent . selectedIndex = 2 ;
136- checkSelectedIndex ( 2 , fixture ) ;
137135
136+ checkSelectedIndex ( 2 , fixture ) ;
138137 tick ( ) ;
138+
139139 expect ( component . handleSelection ) . toHaveBeenCalledTimes ( 1 ) ;
140140 expect ( component . selectEvent . index ) . toBe ( 2 ) ;
141141 } ) ) ;
@@ -328,8 +328,8 @@ describe('MdTabGroup', () => {
328328 } ) ;
329329
330330 /**
331- * Checks that the `selectedIndex` has been updated; checks that the label and body have the
332- * `active` class
331+ * Checks that the `selectedIndex` has been updated; checks that the label and body have their
332+ * respective `active` classes
333333 */
334334 function checkSelectedIndex ( index : number , fixture : ComponentFixture < any > ) {
335335 fixture . detectChanges ( ) ;
0 commit comments