diff options
Diffstat (limited to 'tests/test.helper.js')
-rw-r--r-- | tests/test.helper.js | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/tests/test.helper.js b/tests/test.helper.js index ed65770..ff83c53 100644 --- a/tests/test.helper.js +++ b/tests/test.helper.js @@ -71,18 +71,10 @@ describe('Helpers', function () { origNavigator = Object.getOwnPropertyDescriptor(window, "navigator"); Object.defineProperty(window, "navigator", {value: {}}); - if (window.navigator.platform !== undefined) { - // Object.defineProperty() doesn't work properly in old - // versions of Chrome - this.skip(); - } - window.navigator.platform = "Mac x86_64"; }); afterEach(function () { - if (origNavigator !== undefined) { - Object.defineProperty(window, "navigator", origNavigator); - } + Object.defineProperty(window, "navigator", origNavigator); }); it('should respect ContextMenu on modern browser', function () { @@ -196,19 +188,11 @@ describe('Helpers', function () { origNavigator = Object.getOwnPropertyDescriptor(window, "navigator"); Object.defineProperty(window, "navigator", {value: {}}); - if (window.navigator.platform !== undefined) { - // Object.defineProperty() doesn't work properly in old - // versions of Chrome - this.skip(); - } - window.navigator.platform = "Windows"; }); afterEach(function () { - if (origNavigator !== undefined) { - Object.defineProperty(window, "navigator", origNavigator); - } + Object.defineProperty(window, "navigator", origNavigator); }); const keys = { 'Zenkaku': 0xff2a, 'Hankaku': 0xff2a, |