Commit graph

4 commits

Author SHA1 Message Date
WMDE-Fisch 8f0ae21eca [qunit] Use strict and wrap test scope
Wrapping the test mainly to avoid that declared vars or functions
bleed into other tests.

Includes lint auto-fixes

Change-Id: Ia4577f7496ddecf4985525de674ade46f53e03a6
2024-12-19 18:30:11 +01:00
WMDE-Fisch 589e77cbfc [qunit] Use more stubs for test setup
Change-Id: I73883397f107aca92b8e1808ec1d8dacd391971f
2024-12-19 18:26:11 +01:00
Ed Sanders 5a2154de38 ESLint: Enforce prefer-arrow-callback
Change-Id: I8d96b69e8c15bc8ad84cfb0c511396e5b3e7ac20
2024-06-03 12:31:33 +01:00
Jon Robson dcb513eb0e Move reference previews to Cite extension
The ext.cite.referencePreviews module will transparently replace the
ext.popups.referencePreviews module after this patch.  Configuration
stays in Popups for now, we can migrate it in later work.

CSS classes may be renamed in the future but this will be handled
separately since it could be a breaking change for on-wiki
customizations.

A lot of fancy footwork happens in this patch to emulate a soft
dependency on Popups.  This mechanism doesn't exist explicitly in
either ResourceLoader or QUnit, so lots of workarounds are used, to
conditionally load the module and to dynamically skip dependent tests.

renderer.test.js is fully skipped for now, but can be wired up in
later work.

Bug: T355194
Change-Id: I0dc47abb59a40d4e41e7dda0eb7b415a2e1ae508
2024-03-12 17:43:51 +01:00