This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -4552,6 +4552,13 @@ describe('$compile', function() {
4552
4552
$scope . code = 'blue' ;
4553
4553
} ) ;
4554
4554
} ) ;
4555
+ $compileProvider . directive ( 'isolateRed' , function ( ) {
4556
+ return {
4557
+ restrict : 'A' ,
4558
+ scope : { } ,
4559
+ template : '<div red></div>'
4560
+ } ;
4561
+ } ) ;
4555
4562
$compileProvider . directive ( 'red' , function ( ) {
4556
4563
return {
4557
4564
restrict : 'A' ,
@@ -4568,7 +4575,7 @@ describe('$compile', function() {
4568
4575
'<div ng-controller="Leak">' +
4569
4576
'<div ng-switch="code">' +
4570
4577
'<div ng-switch-when="red">' +
4571
- '<div red></div>' +
4578
+ '<div isolate- red></div>' +
4572
4579
'</div>' +
4573
4580
'</div>' +
4574
4581
'</div>' ) ;
@@ -5169,7 +5176,7 @@ describe('$compile', function() {
5169
5176
expect ( countScopes ( $rootScope ) ) . toEqual ( 1 ) ;
5170
5177
} ) ) ;
5171
5178
5172
- it ( 'should destroy mark as destroyed all sub scopes of the scope being destroyed' ,
5179
+ it ( 'should mark as destroyed all sub scopes of the scope being destroyed' ,
5173
5180
inject ( function ( $compile , $rootScope ) {
5174
5181
5175
5182
element = $compile (
You can’t perform that action at this time.
0 commit comments