summaryrefslogtreecommitdiff
path: root/tests/test.localization.js
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2022-12-27 13:13:48 +0100
committerPierre Ossman <ossman@cendio.se>2022-12-27 13:13:48 +0100
commit1ff2ecd9f0f8804fb0b56ea1349fc12e0e7d3eec (patch)
treebb9b57185bb86faf1fda559f4e039873099cbea7 /tests/test.localization.js
parente6fce71d6ac3ef4c5aaa22e3078f7f4994ca1db8 (diff)
parent5de478d6e7b70c080a4a64ec6deb590c773ca416 (diff)
downloadnovnc-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.js10
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 () {