diff --git a/spec/core/ExceptionFormatterSpec.js b/spec/core/ExceptionFormatterSpec.js index 7e3d5835..2366c353 100644 --- a/spec/core/ExceptionFormatterSpec.js +++ b/spec/core/ExceptionFormatterSpec.js @@ -41,7 +41,7 @@ describe("ExceptionFormatter", function() { describe("#stack", function() { it("formats stack traces from Webkit, Firefox, node.js or IE10+", function() { - if (jasmine.getGlobal().ieVersion < 10) { return; } + if (jasmine.getEnv().ieVersion < 10) { return; } var error; try { throw new Error("an error") } catch(e) { error = e; } @@ -53,4 +53,4 @@ describe("ExceptionFormatter", function() { expect(new j$.ExceptionFormatter().stack()).toBeNull(); }); }); -}); \ No newline at end of file +}); diff --git a/spec/core/matchers/matchersUtilSpec.js b/spec/core/matchers/matchersUtilSpec.js index 3ab01e47..11b398f6 100644 --- a/spec/core/matchers/matchersUtilSpec.js +++ b/spec/core/matchers/matchersUtilSpec.js @@ -111,7 +111,7 @@ describe("matchersUtil", function() { }); it("passes for equivalent frozen objects (GitHub issue #266)", function() { - if (jasmine.getGlobal().ieVersion < 9) { return; } + if (jasmine.getEnv().ieVersion < 9) { return; } var a = { foo: 1 }, b = {foo: 1 }; @@ -216,4 +216,4 @@ describe("matchersUtil", function() { expect(message).toEqual("Expected 'foo' to bar 'quux', 'corge'."); }); }); -}); \ No newline at end of file +}); diff --git a/spec/helpers/BrowserFlags.js b/spec/helpers/BrowserFlags.js index afa13b7c..d6463e1c 100644 --- a/spec/helpers/BrowserFlags.js +++ b/spec/helpers/BrowserFlags.js @@ -1,5 +1,5 @@ -(function(global) { - global.ieVersion = (function() { +(function(env) { + env.ieVersion = (function() { var userAgent = jasmine.getGlobal().navigator.userAgent; if (!userAgent) { return Number.MAX_VALUE; } @@ -7,4 +7,4 @@ return match ? parseFloat(match[1]) : Number.MAX_VALUE; })(); -})(jasmine.getGlobal()); \ No newline at end of file +})(jasmine.getEnv());