Removed spec guards for versions of Safari we no longer support
This commit is contained in:
committed by
Steve Gravrock
parent
419470e9df
commit
aaf226b9e3
@@ -48,8 +48,6 @@ describe("ExceptionFormatter", function() {
|
|||||||
|
|
||||||
describe("#stack", function() {
|
describe("#stack", function() {
|
||||||
it("formats stack traces", function() {
|
it("formats stack traces", function() {
|
||||||
if (jasmine.getEnv().safariVersion < 6) { return; }
|
|
||||||
|
|
||||||
var error;
|
var error;
|
||||||
try { throw new Error("an error") } catch(e) { error = e; }
|
try { throw new Error("an error") } catch(e) { error = e; }
|
||||||
|
|
||||||
|
|||||||
@@ -8,10 +8,6 @@
|
|||||||
return match ? parseFloat(match[1]) : void 0;
|
return match ? parseFloat(match[1]) : void 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
env.safariVersion = browserVersion(function(userAgent) {
|
|
||||||
return /Safari/.exec(userAgent) && /Version\/([0-9]{0,})/.exec(userAgent);
|
|
||||||
});
|
|
||||||
|
|
||||||
env.firefoxVersion = browserVersion(function(userAgent) {
|
env.firefoxVersion = browserVersion(function(userAgent) {
|
||||||
return /Firefox\/([0-9]{0,})/.exec(userAgent);
|
return /Firefox\/([0-9]{0,})/.exec(userAgent);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user