Commit graph

4 commits

Author SHA1 Message Date
Umherirrender
ec7f8ca99a htmlform: Hard-deprecated HTMLForm::*Text functions
Bug: T325474
Change-Id: I89fc570f9238048b7eb58a6f4393e2b35000e133
2024-07-26 13:02:21 +02:00
Bartosz Dziewoński
dd992c1a7d Remove $wgHTMLFormAllowTableFormat and its uses
Described as "Evil hack for mobile :(", this config variable had been
overridden in the MobileFrontend extension for some time, but this has
been removed last year in Icb1711a0cef828dda0d99b8a7c7963bc409816c9.

Since it was introduced, most HTMLForms using the 'table' format have
been reworked to use 'ooui' (or 'codex', these days), so the hack is
no longer needed.

We recently removed $wgUseMediaWikiUIEverywhere for similar reasons
in aa7eeeeef9 / be135c0fc0.

Change-Id: Id507c0dc5a1c1cfb9737073bae97b14badc30a54
2024-03-26 22:49:55 +01:00
James D. Forrester
34965561cb tests: Add coverage for various trivial HTMLForm methods
- addPreHtml
- addPreText
- setIntro

- setPostHtml
- getPostHtml
- setPostText
- addPostText

- setCollapsibleOptions

Bug: T359166
Change-Id: Icd5b43721a87481bcf4fbffab8b2d4e681365cda
2024-03-10 13:23:07 -04:00
James D. Forrester
ff911bf2ff tests: Namespace and consolidate existing HTMLForm tests
This doesn't alter code coverage, but it puts all the tests in
one place so we can improve them consistently.

Change-Id: I5e2124704aa8dc4b45be17d61fbc2fbd606661b9
2024-03-08 08:11:16 -05:00
Renamed from tests/phpunit/includes/htmlform/HTMLFormTest.php (Browse further)