Resolve remaining test issues
This commit is contained in:
8
spec/helpers/BrowserFlags.js
Normal file
8
spec/helpers/BrowserFlags.js
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user