From f9f0905f4ad7b1d0bb9b606a6d25fb1f88354a78 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Fri, 17 Jun 2011 19:43:53 +0200 Subject: 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 --- test/CompilerSpec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('
A
'); }).toThrow("Cannot compile multiple element roots: " + ie("
A
")); function ie(text) { - return msie ? uppercase(text) : text; + return msie && msie < 9 ? uppercase(text) : text; } }); -- cgit v1.2.3