diff options
| author | Vojta Jina | 2011-06-17 19:43:53 +0200 |
|---|---|---|
| committer | Vojta Jina | 2011-06-17 19:48:49 +0200 |
| commit | f9f0905f4ad7b1d0bb9b606a6d25fb1f88354a78 (patch) | |
| tree | 2e1467d6685293c9f53a7a0978dee227def7f162 | |
| parent | 92ebf11b2aaaa357b7d3d91c297b747ae4b8fdf0 (diff) | |
| download | angular.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
| -rw-r--r-- | test/CompilerSpec.js | 2 |
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; } }); |
