@@ -148,19 +148,19 @@ describe('tooltip', function() {
148148 expect ( elmBody . children ( ) . length ) . toBe ( 0 ) ;
149149 } ) ) ;
150150
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 ( ) {
152152 var ttScope ;
153153 elm . trigger ( 'mouseenter' ) ;
154154
155- ttScope = angular . element ( elmBody . children ( ) [ 1 ] ) . isolateScope ( ) ;
155+ ttScope = angular . element ( elmBody . children ( ) [ 1 ] ) . scope ( ) ;
156156 expect ( ttScope . $parent ) . toBe ( tooltipScope ) ;
157157
158158 elm . trigger ( 'mouseleave' ) ;
159159
160160 // After leaving and coming back, the scope's parent should be the same
161161 elm . trigger ( 'mouseenter' ) ;
162162
163- ttScope = angular . element ( elmBody . children ( ) [ 1 ] ) . isolateScope ( ) ;
163+ ttScope = angular . element ( elmBody . children ( ) [ 1 ] ) . scope ( ) ;
164164 expect ( ttScope . $parent ) . toBe ( tooltipScope ) ;
165165
166166 elm . trigger ( 'mouseleave' ) ;
@@ -349,7 +349,7 @@ describe('tooltip', function() {
349349 var match = false ;
350350
351351 angular . forEach ( angular . element . cache , function ( item ) {
352- if ( item . data && item . data . $isolateScope === tooltipScope ) {
352+ if ( item . data && item . data . $scope === tooltipScope ) {
353353 match = true ;
354354 }
355355 } ) ;
@@ -369,7 +369,7 @@ describe('tooltip', function() {
369369 tooltipScope = elmScope . $$childTail . $$childTail ;
370370 } ) ) ;
371371
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 ) {
373373 expect ( inCache ( ) ) . toBeTruthy ( ) ;
374374 elmScope . $destroy ( ) ;
375375 expect ( inCache ( ) ) . toBeFalsy ( ) ;
0 commit comments