@@ -176,17 +176,17 @@ describe('ngBind*', function() {
176
176
element = $compile ( '<div ng-bind-html="html"></div>' ) ( $rootScope ) ;
177
177
$rootScope . html = '<div onclick="">hello</div>' ;
178
178
$rootScope . $digest ( ) ;
179
- expect ( angular . lowercase ( element . html ( ) ) ) . toEqual ( '<div onclick="">hello</div>' ) ;
179
+ expect ( lowercase ( element . html ( ) ) ) . toEqual ( '<div onclick="">hello</div>' ) ;
180
180
} ) ) ;
181
181
182
182
it ( 'should update html' , inject ( function ( $rootScope , $compile , $sce ) {
183
183
element = $compile ( '<div ng-bind-html="html"></div>' ) ( $rootScope ) ;
184
184
$rootScope . html = 'hello' ;
185
185
$rootScope . $digest ( ) ;
186
- expect ( angular . lowercase ( element . html ( ) ) ) . toEqual ( 'hello' ) ;
186
+ expect ( lowercase ( element . html ( ) ) ) . toEqual ( 'hello' ) ;
187
187
$rootScope . html = 'goodbye' ;
188
188
$rootScope . $digest ( ) ;
189
- expect ( angular . lowercase ( element . html ( ) ) ) . toEqual ( 'goodbye' ) ;
189
+ expect ( lowercase ( element . html ( ) ) ) . toEqual ( 'goodbye' ) ;
190
190
} ) ) ;
191
191
192
192
it ( 'should one-time bind if the expression starts with two colons' , inject ( function ( $rootScope , $compile ) {
@@ -220,17 +220,17 @@ describe('ngBind*', function() {
220
220
element = $compile ( '<div ng-bind-html="html"></div>' ) ( $rootScope ) ;
221
221
$rootScope . html = $sce . trustAsHtml ( '<div onclick="">hello</div>' ) ;
222
222
$rootScope . $digest ( ) ;
223
- expect ( angular . lowercase ( element . html ( ) ) ) . toEqual ( '<div onclick="">hello</div>' ) ;
223
+ expect ( lowercase ( element . html ( ) ) ) . toEqual ( '<div onclick="">hello</div>' ) ;
224
224
} ) ) ;
225
225
226
226
it ( 'should update html' , inject ( function ( $rootScope , $compile , $sce ) {
227
227
element = $compile ( '<div ng-bind-html="html"></div>' ) ( $rootScope ) ;
228
228
$rootScope . html = $sce . trustAsHtml ( 'hello' ) ;
229
229
$rootScope . $digest ( ) ;
230
- expect ( angular . lowercase ( element . html ( ) ) ) . toEqual ( 'hello' ) ;
230
+ expect ( lowercase ( element . html ( ) ) ) . toEqual ( 'hello' ) ;
231
231
$rootScope . html = $sce . trustAsHtml ( 'goodbye' ) ;
232
232
$rootScope . $digest ( ) ;
233
- expect ( angular . lowercase ( element . html ( ) ) ) . toEqual ( 'goodbye' ) ;
233
+ expect ( lowercase ( element . html ( ) ) ) . toEqual ( 'goodbye' ) ;
234
234
} ) ) ;
235
235
236
236
it ( 'should not cause infinite recursion for trustAsHtml object watches' ,
@@ -243,7 +243,7 @@ describe('ngBind*', function() {
243
243
return $sce . trustAsHtml ( '<div onclick="">hello</div>' ) ;
244
244
} ;
245
245
$rootScope . $digest ( ) ;
246
- expect ( angular . lowercase ( element . html ( ) ) ) . toEqual ( '<div onclick="">hello</div>' ) ;
246
+ expect ( lowercase ( element . html ( ) ) ) . toEqual ( '<div onclick="">hello</div>' ) ;
247
247
} ) ) ;
248
248
249
249
it ( 'should handle custom $sce objects' , function ( ) {
@@ -266,10 +266,10 @@ describe('ngBind*', function() {
266
266
var html = 'hello' ;
267
267
$rootScope . getHtml = function ( ) { return $sce . trustAsHtml ( html ) ; } ;
268
268
$rootScope . $digest ( ) ;
269
- expect ( angular . lowercase ( element . html ( ) ) ) . toEqual ( 'hello' ) ;
269
+ expect ( lowercase ( element . html ( ) ) ) . toEqual ( 'hello' ) ;
270
270
html = 'goodbye' ;
271
271
$rootScope . $digest ( ) ;
272
- expect ( angular . lowercase ( element . html ( ) ) ) . toEqual ( 'goodbye' ) ;
272
+ expect ( lowercase ( element . html ( ) ) ) . toEqual ( 'goodbye' ) ;
273
273
} ) ;
274
274
} ) ;
275
275
@@ -280,7 +280,7 @@ describe('ngBind*', function() {
280
280
element = $compile ( '<div ng-bind-html="html"></div>' ) ( $rootScope ) ;
281
281
$rootScope . html = '<div onclick="">hello</div>' ;
282
282
$rootScope . $digest ( ) ;
283
- expect ( angular . lowercase ( element . html ( ) ) ) . toEqual ( '<div>hello</div>' ) ;
283
+ expect ( lowercase ( element . html ( ) ) ) . toEqual ( '<div>hello</div>' ) ;
284
284
} ) ) ;
285
285
} ) ;
286
286
} ) ;
0 commit comments