Commit graph

2987 commits

Author SHA1 Message Date
physikerwelt db81c96062
Fix heuristic that adds bold-italic
As indicated in the comment the code intents
to add "additional italic mathvariant
when bold already". However, effectively it
always added an additional -italic when
any mathvariant was given.

* Only add '-italic' if mathvariant is 'bold'

Bug: T375244
Change-Id: Iafb375753a98ff41c3d076819288345a9e2efb0c
2024-09-20 08:59:27 +02:00
Umherirrender ebecba2ab9 Pass function name to HttpRequestFactory::create
Change-Id: Ic8e7aa35aea9164b4a9ae44549550d49b062361e
2024-09-19 23:20:16 +02:00
Umherirrender 9a0dccd41f specials: Get global via IContextSource::getConfig
Change-Id: I8fd45a5bf8f17e3025a80dc899a80375d7624ae8
2024-09-17 22:07:39 +02:00
jenkins-bot 3652e8697e Merge "Make native MathML rendering default" 2024-09-17 10:46:54 +00:00
physikerwelt 8cce9d88c1
Make native MathML rendering default
* Add native to default valid modes.
* Remove old Mathoid mode from the default valid modes.
* Set native as the default choice, replacing Mathoid.
* Adjust fallback mechanism.

Bug: T373705
Change-Id: Ie6412623577e3f954c1302417d1b1b667f88863e
2024-09-17 11:21:03 +02:00
Translation updater bot f42c424d46
Localisation updates from https://translatewiki.net.
Change-Id: I70dac4d95ca527757b494b8c76636d570290a6cc
2024-09-16 09:27:14 +02:00
Translation updater bot de9c3f05d9
Localisation updates from https://translatewiki.net.
Change-Id: I9eea6ac552e5a67b6385a528942bf7c7f10c243c
2024-09-09 09:22:45 +02:00
Translation updater bot fec77a981f
Localisation updates from https://translatewiki.net.
Change-Id: Ic565a5ad37cf5a49a709219a80a60d8a058ce409
2024-09-02 09:21:03 +02:00
jenkins-bot 35cccd5528 Merge "Make use of actual @dataProviders in tests" 2024-09-02 06:58:13 +00:00
jenkins-bot 8fb503be7d Merge "Add missing documentation to class properties" 2024-09-02 06:58:12 +00:00
thiemowmde cd4ce78d31 Make use of actual @dataProviders in tests
Instead of manually crafted $this->testCase properties.

Also make use of the dedicated PHPUnit feature to mark as test as
passed. While assertTrue( true ) is a very common hack it can be
confusing.

Change-Id: Ic071bf561929c2a79537111bee18631865f91366
2024-08-31 11:49:04 +00:00
Umherirrender 419ce56d27 Add missing documentation to class properties
Add doc-typehints to class properties found by the PropertyDocumentation
sniff to improve the documentation and to remove the exclusion of the
sniff.
The activated sniff avoids that new code is missing doc-typehints or
real-typehints.

Change-Id: Id7fcfd086cdbb3f040091e1d1a81472e7a524091
2024-08-31 11:48:46 +00:00
Željko Filipin d35c815517 selenium: Delete unneeded @wdio/dot-reporter npm package
As far as I can see, the package was introduced by mistake in 951dec1.

CI works just fine when the package is removed.

Bug: T280331
Change-Id: I17330cb7786df0739a18c482360a56d733a67f41
2024-08-30 17:43:47 +02:00
jenkins-bot 7574e7acc0 Merge "tests: Remove unused class properties from AllText" 2024-08-28 10:14:13 +00:00
Translation updater bot 1d749ccf09
Localisation updates from https://translatewiki.net.
Change-Id: I70668e5169b4ea074f118e47d49780fa07900541
2024-08-28 09:39:02 +02:00
physikerwelt 89e45815e8
Fix selenium tests
Update test to find MathML element instead of image.

This is required since the default in labs in now MathML.

Bug: T372872
Change-Id: I4e9500effaca9cef704f06ec003a0e01bdcfb3f1
2024-08-27 13:28:46 +02:00
Translation updater bot 22c58675be
Localisation updates from https://translatewiki.net.
Change-Id: Icad04307597ebba1f7d8ad70aeadae948e7289ef
2024-08-27 09:48:07 +02:00
Umherirrender 3e37c4e5a0 tests: Remove unused class properties from AllText
Change-Id: Id1864671a653777d6957593eddf65398eaad183b
2024-08-25 14:19:37 +02:00
libraryupgrader e09a1672f0 build: Updating micromatch to 4.0.8
* https://github.com/advisories/GHSA-952p-6rrq-rcjv

Change-Id: I1c0cef6e3e954b003c95ce3b94481f4f6cb75ed6
2024-08-25 05:08:50 +00:00
Translation updater bot f2ab79f5ef
Localisation updates from https://translatewiki.net.
Change-Id: I481676fd314fb16e1d61af11d12105f02efc72e9
2024-08-23 09:46:30 +02:00
James D. Forrester 8e5a74e876 build: Update MediaWiki requirement to 1.43
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: Iddc3516611d4cb3517ed5f386662883e55fcfb68
2024-08-22 17:40:54 -04:00
Translation updater bot fc66f84faf
Localisation updates from https://translatewiki.net.
Change-Id: I1702bccdf952ba693894118c15cfa81e568a24ec
2024-08-19 09:23:58 +02:00
jenkins-bot 4f39420988 Merge "Remove unused return values from MMLTestUtil" 2024-08-13 16:24:05 +00:00
jenkins-bot 9432157a0e Merge "Utilize modern ?: and ?? and ??= operators where possible" 2024-08-13 16:03:45 +00:00
Translation updater bot f03a24a136
Localisation updates from https://translatewiki.net.
Change-Id: I66030f3ee930bfba4d2a85ab93e864712adc6eac
2024-08-12 09:22:50 +02:00
thiemowmde 10e2e17bb1 Remove unused return values from MMLTestUtil
Just removing unused code that never did anything. Note this is only
in a test. As long as all tests still succeed this can't really cause
any problems, I believe.

Change-Id: I272803353eed9de0ecf98c55b75710df16da2c44
2024-08-12 08:50:22 +02:00
thiemowmde 927e0d7f96 Utilize modern ?: and ?? and ??= operators where possible
The code does the same as before. The main benefit is that we avoid
repetition.

Change-Id: I1f62d33a4d51956288afffed9c6bbc715b7cbe50
2024-08-12 08:48:46 +02:00
libraryupgrader 20c618d695 build: Updating mediawiki/mediawiki-codesniffer to 44.0.0
The following sniffs now pass and were enabled:
* MediaWiki.WhiteSpace.SpaceBeforeClassBrace.BraceNotOnOwnLine

Change-Id: I45423c35f407881dfc774708ac6eeab69a094913
2024-08-11 20:06:52 +00:00
Translation updater bot f2ff50f1f5
Localisation updates from https://translatewiki.net.
Change-Id: I55a77e7ca4dd2f6006ce9cf395846cbde8648712
2024-08-09 09:35:46 +02:00
Translation updater bot db97c7d815
Localisation updates from https://translatewiki.net.
Change-Id: I1f4287164adb2d78d1888d8ca881648d7e76b11f
2024-08-08 09:20:07 +02:00
Translation updater bot 8e70be8f3d
Localisation updates from https://translatewiki.net.
Change-Id: Ie3633a49855687e0eccdbf812bad08739d3c0003
2024-07-31 09:23:01 +02:00
Translation updater bot b2cfe6c75e
Localisation updates from https://translatewiki.net.
Change-Id: I8d11b1cdd96297a09e1f0da3f8f9bf0a92521b88
2024-07-29 09:27:41 +02:00
Fomafix 62a8ce1d48 Inject service UserOptionsManager into Hooks
Change-Id: I39f7e113a74fa9e15259638ee1900da98eaa4a3a
2024-07-26 06:02:26 +00:00
Fomafix 5f0100872d Inject services into SpecialMathWikibase
Change-Id: I1a887a522be3227600f8261dc59cd67ac9b3ea7d
2024-07-26 05:53:52 +00:00
Fomafix 3f905c2747 Use $this->getServiceContainer() in maintenance
Change-Id: I723fa230e525970d7e7600dee37fbfae62911a49
2024-07-24 16:30:10 +00:00
Fomafix 363abd4afb Use overrideConfigValue instead of setMwGlobals
Change-Id: Id53db757cf0c2f0601cc34a9403edf3bbb1f7298
2024-07-24 16:22:59 +00:00
Translation updater bot 3ee9495853
Localisation updates from https://translatewiki.net.
Change-Id: I440ccec27be9cde52b8c36d1cd2eec859cb1a835
2024-07-22 09:25:05 +02:00
Translation updater bot dd494f12ad
Localisation updates from https://translatewiki.net.
Change-Id: I82d3e3e831a50d5dfc7da0c284b2fd18c2b4d90b
2024-07-19 09:41:10 +02:00
Translation updater bot 08c41eacc6
Localisation updates from https://translatewiki.net.
Change-Id: I838a5d4efeab6b4d8a40edecded06c899e367f93
2024-07-18 09:23:21 +02:00
Translation updater bot 971d5848a4
Localisation updates from https://translatewiki.net.
Change-Id: Ie3b4c211bead7b6588a80712ab720e6365e39bb4
2024-07-16 09:40:37 +02:00
Translation updater bot 549ed5806b
Localisation updates from https://translatewiki.net.
Change-Id: Id0bc4282652936e0fadddc0d21d0b0451fa26a2b
2024-07-15 09:24:20 +02:00
Translation updater bot 70dbf0636b
Localisation updates from https://translatewiki.net.
Change-Id: I2b5f4809651ed46ee8b61754aad93503fc970c39
2024-07-12 09:41:26 +02:00
jenkins-bot 7b99c85b3f Merge "Localisation updates from https://translatewiki.net." 2024-07-11 07:34:15 +00:00
Translation updater bot ce049efb95
Localisation updates from https://translatewiki.net.
Change-Id: I83dbf09ee45b46083e1828a5ea93534d7ac40c87
2024-07-11 09:31:01 +02:00
jenkins-bot ba51f899fe Merge "Abort test execution on unsuccessful rendering" 2024-07-11 07:26:31 +00:00
jenkins-bot eb1a4bc788 Merge "Remove unreachable grammar rules for 4 byte chars" 2024-07-11 07:23:02 +00:00
Translation updater bot 3ca4d7537a
Localisation updates from https://translatewiki.net.
Change-Id: Id120f6751d02d2a3f02e11cfce90b01aa94b6025
2024-07-09 09:44:31 +02:00
Translation updater bot 7dcbd429fc
Localisation updates from https://translatewiki.net.
Change-Id: I5b29fa1fc5fec74dcc34d951e5b00bd13ab1e2f2
2024-07-08 09:33:22 +02:00
physikerwelt 28df29d388 Remove unreachable grammar rules for 4 byte chars
When converting from JS to PHP the grammar rules for 4 byte UTF-8
chars were converted in a way that makes the code unreachable.

* Remove the unreachable code for now code

Bug: T319521
Change-Id: Icdb3c71bb738e8f55ce190daef0534794de35eec
2024-07-04 21:26:46 +00:00
physikerwelt a5b9cffb09
Abort test execution on unsuccessful rendering
The SpecialPage MathStatus tried to get the HTML output even if the rendering was not successful. This did lead to logged errors.

* Skip the rest of the tests if the rendering
is not successful.

Bug: T366293
Change-Id: Id7396fcdc1df96fa3c19e36b56068da4aba3d18f
2024-07-04 18:01:26 +02:00