mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-12-11 15:56:14 +00:00
5e1dece304
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 |
||
---|---|---|
.. | ||
mmv.ui.canvas.test.js | ||
mmv.ui.canvasButtons.test.js | ||
mmv.ui.description.test.js | ||
mmv.ui.download.pane.test.js | ||
mmv.ui.metadataPanel.test.js | ||
mmv.ui.metadataPanelScroller.test.js | ||
mmv.ui.permission.test.js | ||
mmv.ui.progressBar.test.js | ||
mmv.ui.reuse.dialog.test.js | ||
mmv.ui.reuse.embed.test.js | ||
mmv.ui.reuse.share.test.js | ||
mmv.ui.reuse.tab.test.js | ||
mmv.ui.reuse.utils.test.js | ||
mmv.ui.stripeButtons.test.js | ||
mmv.ui.test.js | ||
mmv.ui.tipsyDialog.test.js | ||
mmv.ui.truncatableTextField.test.js | ||
mmv.ui.viewingOptions.test.js |