@@ -839,12 +839,12 @@ describe('$compile', function() {
839
839
} ) ) ;
840
840
841
841
if ( window . SVGAElement ) {
842
- it ( 'should support SVG templates using directive.type =svg' , function ( ) {
842
+ it ( 'should support SVG templates using directive.templateNamespace =svg' , function ( ) {
843
843
module ( function ( ) {
844
844
directive ( 'svgAnchor' , valueFn ( {
845
845
replace : true ,
846
846
template : '<a xlink:href="{{linkurl}}">{{text}}</a>' ,
847
- type : 'SVG' ,
847
+ templateNamespace : 'SVG' ,
848
848
scope : {
849
849
linkurl : '@svgAnchor' ,
850
850
text : '@?'
@@ -866,13 +866,13 @@ describe('$compile', function() {
866
866
// and even there, the browser does not export MathML element constructors globally.
867
867
// So the test is slightly limited in what it does. But as browsers begin to
868
868
// implement MathML natively, this can be tightened up to be more meaningful.
869
- it ( 'should support MathML templates using directive.type =math' , function ( ) {
869
+ it ( 'should support MathML templates using directive.templateNamespace =math' , function ( ) {
870
870
module ( function ( ) {
871
871
directive ( 'pow' , valueFn ( {
872
872
replace : true ,
873
873
transclude : true ,
874
874
template : '<msup><mn>{{pow}}</mn></msup>' ,
875
- type : 'MATH' ,
875
+ templateNamespace : 'MATH' ,
876
876
scope : {
877
877
pow : '@pow' ,
878
878
} ,
@@ -888,6 +888,7 @@ describe('$compile', function() {
888
888
$rootScope . $digest ( ) ;
889
889
var child = element . children ( ) . eq ( 0 ) ;
890
890
expect ( nodeName_ ( child ) ) . toMatch ( / m s u p / i) ;
891
+ expect ( child [ 0 ] . constructor ) . toBe ( Element ) ;
891
892
} ) ;
892
893
} ) ;
893
894
} ) ;
@@ -1736,12 +1737,12 @@ describe('$compile', function() {
1736
1737
} ) ) ;
1737
1738
1738
1739
if ( window . SVGAElement ) {
1739
- it ( 'should support SVG templates using directive.type =svg' , function ( ) {
1740
+ it ( 'should support SVG templates using directive.templateNamespace =svg' , function ( ) {
1740
1741
module ( function ( ) {
1741
1742
directive ( 'svgAnchor' , valueFn ( {
1742
1743
replace : true ,
1743
1744
templateUrl : 'template.html' ,
1744
- type : 'SVG' ,
1745
+ templateNamespace : 'SVG' ,
1745
1746
scope : {
1746
1747
linkurl : '@svgAnchor' ,
1747
1748
text : '@?'
@@ -1764,13 +1765,13 @@ describe('$compile', function() {
1764
1765
// and even there, the browser does not export MathML element constructors globally.
1765
1766
// So the test is slightly limited in what it does. But as browsers begin to
1766
1767
// implement MathML natively, this can be tightened up to be more meaningful.
1767
- it ( 'should support MathML templates using directive.type =math' , function ( ) {
1768
+ it ( 'should support MathML templates using directive.templateNamespace =math' , function ( ) {
1768
1769
module ( function ( ) {
1769
1770
directive ( 'pow' , valueFn ( {
1770
1771
replace : true ,
1771
1772
transclude : true ,
1772
1773
templateUrl : 'template.html' ,
1773
- type : 'MATH ' ,
1774
+ templateNamespace : 'math ' ,
1774
1775
scope : {
1775
1776
pow : '@pow' ,
1776
1777
} ,
@@ -1787,6 +1788,7 @@ describe('$compile', function() {
1787
1788
$rootScope . $digest ( ) ;
1788
1789
var child = element . children ( ) . eq ( 0 ) ;
1789
1790
expect ( nodeName_ ( child ) ) . toMatch ( / m s u p / i) ;
1791
+ expect ( child [ 0 ] . constructor ) . toBe ( window . Element ) ;
1790
1792
} ) ;
1791
1793
} ) ;
1792
1794
} ) ;
0 commit comments