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
This commit is contained in:
Vojta Jina 2011-06-17 19:43:53 +02:00
parent 92ebf11b2a
commit f9f0905f4a

View file

@ -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;
}
});