mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-29 20:40:29 +00:00
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:
parent
92ebf11b2a
commit
f9f0905f4a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue