Cleanup toThrowError constructor lookup to work in older IE

- Also use the existing browser detection for phantom
This commit is contained in:
Gregg Van Hove
2017-03-14 14:26:17 -07:00
parent e1f7ca51da
commit 75e652d6a7
4 changed files with 58 additions and 44 deletions

View File

@@ -20,4 +20,8 @@
return /Firefox\/([0-9]{0,})/.exec(userAgent);
});
env.phantomVersion = browserVersion(function(userAgent) {
return /PhantomJs\/([0-9.]{0,})+/.exec(userAgent);
});
})(jasmine.getEnv());