@@ -148,19 +148,19 @@ describe('tooltip', function() {
148
148
expect ( elmBody . children ( ) . length ) . toBe ( 0 ) ;
149
149
} ) ) ;
150
150
151
- it ( 'issue 1191 - isolate scope on the popup should always be child of correct element scope' , function ( ) {
151
+ it ( 'issue 1191 - scope on the popup should always be child of correct element scope' , function ( ) {
152
152
var ttScope ;
153
153
elm . trigger ( 'mouseenter' ) ;
154
154
155
- ttScope = angular . element ( elmBody . children ( ) [ 1 ] ) . isolateScope ( ) ;
155
+ ttScope = angular . element ( elmBody . children ( ) [ 1 ] ) . scope ( ) ;
156
156
expect ( ttScope . $parent ) . toBe ( tooltipScope ) ;
157
157
158
158
elm . trigger ( 'mouseleave' ) ;
159
159
160
160
// After leaving and coming back, the scope's parent should be the same
161
161
elm . trigger ( 'mouseenter' ) ;
162
162
163
- ttScope = angular . element ( elmBody . children ( ) [ 1 ] ) . isolateScope ( ) ;
163
+ ttScope = angular . element ( elmBody . children ( ) [ 1 ] ) . scope ( ) ;
164
164
expect ( ttScope . $parent ) . toBe ( tooltipScope ) ;
165
165
166
166
elm . trigger ( 'mouseleave' ) ;
@@ -349,7 +349,7 @@ describe('tooltip', function() {
349
349
var match = false ;
350
350
351
351
angular . forEach ( angular . element . cache , function ( item ) {
352
- if ( item . data && item . data . $isolateScope === tooltipScope ) {
352
+ if ( item . data && item . data . $scope === tooltipScope ) {
353
353
match = true ;
354
354
}
355
355
} ) ;
@@ -369,7 +369,7 @@ describe('tooltip', function() {
369
369
tooltipScope = elmScope . $$childTail . $$childTail ;
370
370
} ) ) ;
371
371
372
- it ( 'should not contain a cached reference when visible' , inject ( function ( $timeout ) {
372
+ it ( 'should not contain a cached reference when not visible' , inject ( function ( $timeout ) {
373
373
expect ( inCache ( ) ) . toBeTruthy ( ) ;
374
374
elmScope . $destroy ( ) ;
375
375
expect ( inCache ( ) ) . toBeFalsy ( ) ;
0 commit comments