@@ -1488,16 +1488,6 @@ describe('$compile', function() {
14881488 ) ;
14891489
14901490
1491- it ( 'should not allow more then one isolate scope creation per element' , inject (
1492- function ( $rootScope , $compile ) {
1493- expect ( function ( ) {
1494- $compile ( '<div class="iscope-a; iscope-b"></div>' ) ;
1495- } ) . toThrowMinErr ( '$compile' , 'multidir' , 'Multiple directives [iscopeA, iscopeB] asking for isolated scope on: ' +
1496- '<div class="iscope-a; iscope-b ng-isolate-scope ng-scope">' ) ;
1497- } )
1498- ) ;
1499-
1500-
15011491 it ( 'should create new scope even at the root of the template' , inject (
15021492 function ( $rootScope , $compile , log ) {
15031493 element = $compile ( '<div scope-a></div>' ) ( $rootScope ) ;
@@ -1824,24 +1814,6 @@ describe('$compile', function() {
18241814 } ) ;
18251815 } ) ;
18261816
1827- it ( 'should allow setting of attributes' , function ( ) {
1828- module ( function ( ) {
1829- directive ( {
1830- setter : valueFn ( function ( scope , element , attr ) {
1831- attr . $set ( 'name' , 'abc' ) ;
1832- attr . $set ( 'disabled' , true ) ;
1833- expect ( attr . name ) . toBe ( 'abc' ) ;
1834- expect ( attr . disabled ) . toBe ( true ) ;
1835- } )
1836- } ) ;
1837- } ) ;
1838- inject ( function ( $rootScope , $compile ) {
1839- element = $compile ( '<div setter></div>' ) ( $rootScope ) ;
1840- expect ( element . attr ( 'name' ) ) . toEqual ( 'abc' ) ;
1841- expect ( element . attr ( 'disabled' ) ) . toEqual ( 'disabled' ) ;
1842- } ) ;
1843- } ) ;
1844-
18451817
18461818 it ( 'should create new instance of attr for each template stamping' , function ( ) {
18471819 module ( function ( $provide ) {
@@ -2055,32 +2027,15 @@ describe('$compile', function() {
20552027
20562028 $rootScope . name = 'misko' ;
20572029 $rootScope . $apply ( ) ;
2058- expect ( componentScope . ref ) . toBe ( $rootScope . name ) ;
2059- expect ( componentScope . refAlias ) . toBe ( $rootScope . name ) ;
2060-
2061- $rootScope . name = { } ;
2062- $rootScope . $apply ( ) ;
2063- expect ( componentScope . ref ) . toBe ( $rootScope . name ) ;
2064- expect ( componentScope . refAlias ) . toBe ( $rootScope . name ) ;
2065- } ) ) ;
2066-
2067-
2068- it ( 'should update local when origin changes' , inject ( function ( ) {
2069- compile ( '<div><span my-component ref="name">' ) ;
2070- expect ( componentScope . ref ) . toBe ( undefined ) ;
2071- expect ( componentScope . refAlias ) . toBe ( componentScope . ref ) ;
20722030
2073- componentScope . ref = 'misko' ;
2074- $rootScope . $apply ( ) ;
20752031 expect ( $rootScope . name ) . toBe ( 'misko' ) ;
20762032 expect ( componentScope . ref ) . toBe ( 'misko' ) ;
2077- expect ( $rootScope . name ) . toBe ( componentScope . ref ) ;
2078- expect ( componentScope . refAlias ) . toBe ( componentScope . ref ) ;
2033+ expect ( componentScope . refAlias ) . toBe ( 'misko' ) ;
20792034
2080- componentScope . name = { } ;
2035+ $rootScope . name = { } ;
20812036 $rootScope . $apply ( ) ;
2082- expect ( $rootScope . name ) . toBe ( componentScope . ref ) ;
2083- expect ( componentScope . refAlias ) . toBe ( componentScope . ref ) ;
2037+ expect ( componentScope . ref ) . toBe ( $rootScope . name ) ;
2038+ expect ( componentScope . refAlias ) . toBe ( $rootScope . name ) ;
20842039 } ) ) ;
20852040
20862041
@@ -3379,7 +3334,7 @@ describe('$compile', function() {
33793334 } ) ) ;
33803335
33813336
3382- it ( 'should group on nested groups' , inject ( function ( $compile , $rootScope ) {
3337+ it ( 'should group on nested groups of same directive ' , inject ( function ( $compile , $rootScope ) {
33833338 $rootScope . show = false ;
33843339 element = $compile (
33853340 '<div></div>' +
@@ -3427,7 +3382,7 @@ describe('$compile', function() {
34273382 } ) ;
34283383
34293384
3430- it ( 'should throw error if unterminated' , function ( ) {
3385+ it ( 'should throw error if unterminated (containing termination as a child) ' , function ( ) {
34313386 module ( function ( $compileProvider ) {
34323387 $compileProvider . directive ( 'foo' , function ( ) {
34333388 return {
0 commit comments