mediawiki-extensions-Multim.../tests/qunit/mmv/ui
Timo Tijhof 5e1dece304 tests: Make mmv.ui.metadataPanel.js pass with non-English locale
My browser is configured with en-GB as its locale. This meant that
when qqx was passed down, it fell back to my browser's default locale
and thus made the tests fail, as the expected data was set against
lang=en.

Ironically, MMV actually prefers the en-GB date format, and outside
tests even replaces 'en' with 'en-GB' when formatting dates in the
user interface. It was only in the tests that it asserted the 'en'
format that would otherwise never be used by MMV.

Ironically, the reason my locale is affecting the test is because
we switched from hardcoded lang=en to hardcoded lang=qqx which is
meant to disable any influence from localisation. However, when
passed to browser-native Intl API, qqx is not valid and thus
caused us to not have a hardcoded 'en' but a completely variable
UI language based on the developer's browser settings.

Bug: T250045
Change-Id: I94ad25cc7060ac5e9db41c6b6767aa9fd687a0db
2022-05-13 21:49:51 +01:00
..
mmv.ui.canvas.test.js Avoid ableist language in comments and test names 2021-12-09 19:48:17 -05:00
mmv.ui.canvasButtons.test.js Remove obsolete aliases from closures 2018-11-12 16:33:24 +00:00
mmv.ui.description.test.js Avoid ableist language in comments and test names 2021-12-09 19:48:17 -05:00
mmv.ui.download.pane.test.js Avoid ableist language in comments and test names 2021-12-09 19:48:17 -05:00
mmv.ui.metadataPanel.test.js tests: Make mmv.ui.metadataPanel.js pass with non-English locale 2022-05-13 21:49:51 +01:00
mmv.ui.metadataPanelScroller.test.js tests: Remove use of QUnit 1.x setup()/teardown() 2022-05-13 21:41:15 +01:00
mmv.ui.permission.test.js tests: Remove use of QUnit 1.x setup()/teardown() 2022-05-13 21:41:15 +01:00
mmv.ui.progressBar.test.js Avoid ableist language in comments and test names 2021-12-09 19:48:17 -05:00
mmv.ui.reuse.dialog.test.js Avoid ableist language in comments and test names 2021-12-09 19:48:17 -05:00
mmv.ui.reuse.embed.test.js Avoid ableist language in comments and test names 2021-12-09 19:48:17 -05:00
mmv.ui.reuse.share.test.js Avoid ableist language in comments and test names 2021-12-09 19:48:17 -05:00
mmv.ui.reuse.tab.test.js Remove obsolete aliases from closures 2018-11-12 16:33:24 +00:00
mmv.ui.reuse.utils.test.js Avoid ableist language in comments and test names 2021-12-09 19:48:17 -05:00
mmv.ui.stripeButtons.test.js Avoid ableist language in comments and test names 2021-12-09 19:48:17 -05:00
mmv.ui.test.js tests: Remove use of QUnit 1.x setup()/teardown() 2022-05-13 21:41:15 +01:00
mmv.ui.tipsyDialog.test.js tests: Remove use of QUnit 1.x setup()/teardown() 2022-05-13 21:41:15 +01:00
mmv.ui.truncatableTextField.test.js eslint: Update eslint-config-wikimedia to 0.16.2 2020-06-26 12:14:27 +01:00
mmv.ui.viewingOptions.test.js Avoid ableist language in comments and test names 2021-12-09 19:48:17 -05:00