aboutsummaryrefslogtreecommitdiffstats
path: root/test/CompilerSpec.js
diff options
context:
space:
mode:
authorVojta Jina2011-06-17 19:43:53 +0200
committerVojta Jina2011-06-17 19:48:49 +0200
commitf9f0905f4ad7b1d0bb9b606a6d25fb1f88354a78 (patch)
tree2e1467d6685293c9f53a7a0978dee227def7f162 /test/CompilerSpec.js
parent92ebf11b2aaaa357b7d3d91c297b747ae4b8fdf0 (diff)
downloadangular.js-f9f0905f4ad7b1d0bb9b606a6d25fb1f88354a78.tar.bz2
Fix compiler test for IE9
Older IEs serialize html uppercased, but IE9 does not... Would be better to expect case insensitive, unfortuntaly jasmine does not allow to user regexps for throw expectations. Closes #392
Diffstat (limited to 'test/CompilerSpec.js')
-rw-r--r--test/CompilerSpec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CompilerSpec.js b/test/CompilerSpec.js
index ff576581..7e636ec1 100644
--- a/test/CompilerSpec.js
+++ b/test/CompilerSpec.js
@@ -40,7 +40,7 @@ describe('compiler', function(){
compiler.compile('<div>A</div><span></span>');
}).toThrow("Cannot compile multiple element roots: " + ie("<div>A</div><span></span>"));
function ie(text) {
- return msie ? uppercase(text) : text;
+ return msie && msie < 9 ? uppercase(text) : text;
}
});