diff options
| author | Igor Minar | 2012-06-08 11:53:17 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-06-08 15:27:04 -0700 |
| commit | 5c95b8cccc0d72f7ca3afb1162b9528c1222eb3c (patch) | |
| tree | 0f4f296e5f2d1ebe5c2864f3874e613458ad6151 /test/ng/compileSpec.js | |
| parent | 9be82d942fc6ab2772197c84a35a4c374c604cbc (diff) | |
| download | angular.js-5c95b8cccc0d72f7ca3afb1162b9528c1222eb3c.tar.bz2 | |
fix(startingTag): make tag name always lowercase
some browsers (IE) always provide the nodeName as upper-case
Diffstat (limited to 'test/ng/compileSpec.js')
| -rw-r--r-- | test/ng/compileSpec.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js index 655d48cc..d2b0360c 100644 --- a/test/ng/compileSpec.js +++ b/test/ng/compileSpec.js @@ -824,8 +824,8 @@ describe('$compile', function() { inject(function($compile){ expect(function() { $compile('<div><div class="sync async"></div></div>'); - }).toThrow('Multiple directives [sync, async] asking for template on: <'+ - (msie <= 8 ? 'DIV' : 'div') + ' class="sync async">'); + }).toThrow('Multiple directives [sync, async] asking for template on: '+ + '<div class="sync async">'); }); }); @@ -1212,8 +1212,7 @@ describe('$compile', function() { expect(function(){ $compile('<div class="iscope-a; scope-b"></div>'); }).toThrow('Multiple directives [iscopeA, scopeB] asking for isolated scope on: ' + - '<' + (msie < 9 ? 'DIV' : 'div') + - ' class="iscope-a; scope-b ng-isolate-scope ng-scope">'); + '<div class="iscope-a; scope-b ng-isolate-scope ng-scope">'); }) ); @@ -1223,8 +1222,7 @@ describe('$compile', function() { expect(function(){ $compile('<div class="iscope-a; iscope-b"></div>'); }).toThrow('Multiple directives [iscopeA, iscopeB] asking for isolated scope on: ' + - '<' + (msie < 9 ? 'DIV' : 'div') + - ' class="iscope-a; iscope-b ng-isolate-scope ng-scope">'); + '<div class="iscope-a; iscope-b ng-isolate-scope ng-scope">'); }) ); @@ -1978,8 +1976,8 @@ describe('$compile', function() { inject(function($compile) { expect(function() { $compile('<div class="first second"></div>'); - }).toThrow('Multiple directives [first, second] asking for transclusion on: <' + - (msie <= 8 ? 'DIV' : 'div') + ' class="first second ng-isolate-scope ng-scope">'); + }).toThrow('Multiple directives [first, second] asking for transclusion on: ' + + '<div class="first second ng-isolate-scope ng-scope">'); }); }); |
