@@ -88,13 +88,13 @@ describe('md-input-container directive', function() {
88
88
expect ( el ) . not . toHaveClass ( 'md-input-has-value' ) ;
89
89
} ) ) ;
90
90
91
- it ( 'should match label to given input id' , inject ( function ( $rootScope ) {
91
+ it ( 'should match label to given input id' , inject ( function ( ) {
92
92
var el = setup ( 'id="foo"' ) ;
93
93
expect ( el . find ( 'label' ) . attr ( 'for' ) ) . toBe ( 'foo' ) ;
94
94
expect ( el . find ( 'input' ) . attr ( 'id' ) ) . toBe ( 'foo' ) ;
95
95
} ) ) ;
96
96
97
- it ( 'should match label to automatic input id' , inject ( function ( $rootScope ) {
97
+ it ( 'should match label to automatic input id' , inject ( function ( ) {
98
98
var el = setup ( ) ;
99
99
expect ( el . find ( 'input' ) . attr ( 'id' ) ) . toBeTruthy ( ) ;
100
100
expect ( el . find ( 'label' ) . attr ( 'for' ) ) . toBe ( el . find ( 'input' ) . attr ( 'id' ) ) ;
@@ -164,7 +164,7 @@ describe('md-input-container directive', function() {
164
164
expect ( label . textContent ) . toEqual ( 'some placeholder' ) ;
165
165
} ) ) ;
166
166
167
- it ( 'should put ignore placeholder when a label element is present' , inject ( function ( $rootScope , $compile ) {
167
+ it ( 'should ignore placeholder when a label element is present' , inject ( function ( $rootScope , $compile ) {
168
168
var el = $compile ( '<md-input-container><label>Hello</label><input ng-model="foo" placeholder="some placeholder"></md-input-container>' ) ( $rootScope ) ;
169
169
var placeholder = el [ 0 ] . querySelector ( '.md-placeholder' ) ;
170
170
var label = el . find ( 'label' ) [ 0 ] ;
@@ -174,8 +174,7 @@ describe('md-input-container directive', function() {
174
174
expect ( label . textContent ) . toEqual ( 'Hello' ) ;
175
175
} ) ) ;
176
176
177
- it ( 'should expect an aria-label on the input when no label is present' , inject ( function ( $rootScope , $compile ) {
178
-
177
+ it ( 'should put an aria-label on the input when no label is present' , inject ( function ( $rootScope , $compile ) {
179
178
var el = $compile ( '<form name="form">' +
180
179
' <md-input-container md-no-float>' +
181
180
' <input placeholder="baz" md-maxlength="max" ng-model="foo" name="foo">' +
0 commit comments