Resolve remaining test issues

This commit is contained in:
Greg Cobb and JR Boyens
2013-07-22 11:57:47 -07:00
parent 61a1f93488
commit 8c1881053c
5 changed files with 32 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
function isIE(version) {
var userAgent = jasmine.getGlobal().navigator.userAgent;
if (!userAgent) { return; }
var match = /MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(userAgent);
return match && version ? parseFloat(match[1]) === version : match;
}