diff options
author | Pierre Ossman <ossman@cendio.se> | 2022-12-27 13:13:48 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2022-12-27 13:13:48 +0100 |
commit | 1ff2ecd9f0f8804fb0b56ea1349fc12e0e7d3eec (patch) | |
tree | bb9b57185bb86faf1fda559f4e039873099cbea7 /tests/test.localization.js | |
parent | e6fce71d6ac3ef4c5aaa22e3078f7f4994ca1db8 (diff) | |
parent | 5de478d6e7b70c080a4a64ec6deb590c773ca416 (diff) | |
download | novnc-1ff2ecd9f0f8804fb0b56ea1349fc12e0e7d3eec.tar.gz |
Merge branch 'ffscroll' of https://github.com/CendioOssman/noVNC
Diffstat (limited to 'tests/test.localization.js')
-rw-r--r-- | tests/test.localization.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/test.localization.js b/tests/test.localization.js index 311353a..7e8e6c1 100644 --- a/tests/test.localization.js +++ b/tests/test.localization.js @@ -13,18 +13,10 @@ describe('Localization', function () { origNavigator = Object.getOwnPropertyDescriptor(window, "navigator"); Object.defineProperty(window, "navigator", {value: {}}); - if (window.navigator.languages !== undefined) { - // Object.defineProperty() doesn't work properly in old - // versions of Chrome - this.skip(); - } - window.navigator.languages = []; }); afterEach(function () { - if (origNavigator !== undefined) { - Object.defineProperty(window, "navigator", origNavigator); - } + Object.defineProperty(window, "navigator", origNavigator); }); it('should use English by default', function () { |