Commit graph

2567 commits

Author SHA1 Message Date
Umherirrender 7a8d5b9dc4 tests: Make some PHPUnit data providers static
Initally used a new sniff with autofix (T333745)

Bug: T332865
Change-Id: I73d2903fed7523826b71fc452a846dc4c6e85802
2023-05-21 11:00:48 +02:00
rrana-wmf 5926f42b52 Use MultiHttpClient instead of VirtualRESTService.
This fixes the problems with If208753edfdb301 which was reverted
and adds a new test.

Bug: T335347
Co-Authored-By: <rrana-ctr@wikimedia.org>
Change-Id: I7ddb7b294cbccc4dab42e286fc270f438385bee5
2023-05-20 16:57:46 +00:00
jenkins-bot edc480ae62 Merge "Revert "Revert "Add getMultiHttpClient function to make HTTP requests to Mathoid.""" 2023-05-17 13:56:41 +00:00
Translation updater bot a0e0668726 Localisation updates from https://translatewiki.net.
Change-Id: I1f73c9df0ff9f22d1dcd91032a475da65155e3b2
2023-05-17 08:49:38 +02:00
Subramanya Sastry de76f99d3d Revert "Revert "Add getMultiHttpClient function to make HTTP requests to Mathoid.""
This reverts commit a38e56c3fc and
reapplies 38c73d9b7a

Bug: T335347
Change-Id: Ib5f82c022d6ff435a807f8f4128a308f3dacc455
2023-05-16 13:07:32 +00:00
Translation updater bot 865dc23a38 Localisation updates from https://translatewiki.net.
Change-Id: I37a10aed577279f9b37d81f401351d612a034681
2023-05-15 08:33:05 +02:00
Daniel Kinzler a38e56c3fc Revert "Add getMultiHttpClient function to make HTTP requests to Mathoid."
This reverts commit 38c73d9b7a.

Reason for revert: Breaks math on Beta, shouldn't go live.

Change-Id: I62c63e20c94ddc25c5c291ba42afd28e153b34a6
2023-05-12 10:23:31 +00:00
rrana-wmf 38c73d9b7a Add getMultiHttpClient function to make HTTP requests to Mathoid.
This add new function named "getMultiHttpClient" to the
MathRestbaseInterface.
The function creates a MultiHttpClient object using the HTTP
request factory.

This function will be useful for making HTTP requests to Mathoid.

Add test case for getUrl() method.

Bug: T335347
Change-Id: If208753edfdb3017f722c97cea7653170d05f8a5
2023-05-11 17:58:50 +00:00
daniel 3fa7837cee Add test case for MathRestbaseInterface::batchEvaluate
This test case ensures that responses from RESTbase are processed
correctly.

Change-Id: I5fbd45ac5e61a6294817617a6784846ae815fd6e
2023-05-11 19:58:26 +02:00
daniel 38e649c722 Math: test usage of URL in HttpMultiClient
Change-Id: I063319ad1b12d66d2054846e6c3b27c715ca3d31
Co-Authored-By: <rrana-ctr@wikimedia.org>
2023-05-08 18:19:30 +00:00
Umherirrender 35660f4e78 Replace deprecated Hooks::run
Bug: T335536
Change-Id: I6968c26df6819f0c83105e92c03d1d204f90db27
2023-05-06 23:11:13 +02:00
Translation updater bot 037830b2d4 Localisation updates from https://translatewiki.net.
Change-Id: I304a347139f9789a02d9182b2dc69b9d6bb99e81
2023-05-05 10:39:51 +02:00
libraryupgrader 6f89b61bca build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: I561ffafc759f6d42f1203e99c62fa33aff6bde97
2023-05-04 06:05:24 +00:00
Translation updater bot cc4e91ed7f Localisation updates from https://translatewiki.net.
Change-Id: I93f4f009c3f3492493f09a49661b22f24f977a7f
2023-05-03 08:43:48 +02:00
jenkins-bot b17eec1bf5 Merge "Replace deprecated Hooks::run" 2023-05-02 14:11:46 +00:00
jenkins-bot 16b50090d4 Merge "build: Upgrade api-testing from 1.5.0 to 1.6.0" 2023-04-30 12:33:03 +00:00
libraryupgrader 7c267e83ff build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.0 → 0.12.1

npm:
* grunt-eslint: 24.0.0 → 24.0.1

Change-Id: I9cd23b8344fed2c69014b618f96f122823f4bed9
2023-04-29 06:56:04 +00:00
James D. Forrester 1211b68919 build: Upgrade api-testing from 1.5.0 to 1.6.0
Bug: T333134
Change-Id: I5eb7e7f2462b7cb116423b1f504bbaa50a5fa70b
2023-04-28 15:49:02 +00:00
Umherirrender b654cc2b0a Replace deprecated Hooks::run
Bug: T335536
Change-Id: I6ef724346dd82147ef22af23833c6a0af8bc9054
2023-04-27 22:51:38 +02:00
jenkins-bot be27ddb2f1 Merge "Fix issues with DQ" 2023-04-20 16:07:27 +00:00
Stegmujo b1edd31543
Fix issues with DQ
Bug: T315978
Change-Id: I04c9178ce5785f29ab79de6dc82070465efca611
2023-04-20 10:57:04 +02:00
gerritbot e492f9189e Update moved class TitleFactory
See T321882
Moved in Iac1688172ee457

Bug: T321681
Change-Id: I713374ad7f9cfe1ba476d2b8729b2164cb5a4f56
2023-04-19 17:16:36 +00:00
Translation updater bot ff9b622f62 Localisation updates from https://translatewiki.net.
Change-Id: I70d6599cdcfa2734348418268d3fae4930578e1f
2023-04-17 09:14:33 +02:00
Translation updater bot 9674a4ed36 Localisation updates from https://translatewiki.net.
Change-Id: I05552344203438a0bd1879fb0a2937850633ce6c
2023-04-11 09:14:03 +02:00
Translation updater bot d78ddf4768 Localisation updates from https://translatewiki.net.
Change-Id: I34a495d8e00af91fc1ebcb44fcc8136063a24245
2023-04-10 09:22:04 +02:00
Stegmujo 6e0427c2ba
Fix for attributes in named Operator
Bug: T315978
Change-Id: I7277d03bae031ffcb2995c097f92c795cc2637dd
2023-04-06 13:44:58 +02:00
Stegmujo c9cf3814ac
Fix for carriage return
Bug: T315978
Change-Id: I06728d45daa060655e655bb07717f23eef61a955
2023-04-06 11:40:54 +02:00
jenkins-bot df0fbc7ebd Merge "Fix style tag imbalance" 2023-04-06 07:10:30 +00:00
Stegmujo fa1a5a4b3f
Fix style tag imbalance
* sometimes there have been more start-tags than end style tags

Bug: T315978
Change-Id: I6b20d45d7561b084376a54f4d6273a2ff5ed7bb4
2023-04-05 15:48:03 +02:00
Stegmujo 08b16c99df
Fix preceding subscript
* example: "{}_1^2\!\Omega_3^4"
* MMLFullcoverageTest cases: 119, 381
* Add isEmpty method to TexNode
* Add empty mrow for prescripts

Bug: T327391
Change-Id: If60e5211bf43e50465072c049d8c432e621832b8
2023-04-05 13:00:06 +02:00
Translation updater bot 92cc8205b2 Localisation updates from https://translatewiki.net.
Change-Id: I985f2cf039f5451e9c125f1368c90be62d9a309b
2023-04-04 09:17:36 +02:00
jenkins-bot db160076f0 Merge "Improve performance: remove redundant inputPreparation calls" 2023-03-31 09:27:46 +00:00
jenkins-bot 39bb32ae2e Merge "Remove images from native MathML" 2023-03-31 09:09:42 +00:00
Moritz Schubotz (physikerwelt) 8c6eeae82e
Remove images from native MathML
In native MathML we only display MathML, also get
rid of enclosing <div / <span container.

Bug: T182041
Change-Id: I26bc4ea88d360d53cc7a34a89bef78812b84b2ea
2023-03-31 08:57:55 +02:00
libraryupgrader aa15ec51ce build: Updating npm dependencies
* grunt: 1.5.3 → 1.6.1
* stylelint-config-wikimedia: 0.13.0 → 0.14.0

Change-Id: I7e34276eb21557c2c2e3e64fb919431b1e1039fc
2023-03-31 00:33:23 +00:00
jenkins-bot 8e3007bd72 Merge "build: Updating npm dependencies" 2023-03-30 12:59:22 +00:00
Umherirrender 4e08e000e0 build: Updating npm dependencies
* eslint-config-wikimedia: 0.22.1 → 0.24.0

Resolve newly detected error:
* mediawiki/no-nodelist-unsupported-methods

Change-Id: If43479e88a3d39f507541f3f6b53f23004bd0e1e
2023-03-29 21:24:34 +00:00
Translation updater bot 04dfc54493 Localisation updates from https://translatewiki.net.
Change-Id: Idd70fc2e75a084a4f8c17113d17d44ba0cd83548
2023-03-29 09:04:38 +02:00
Stegmujo 9213f93b88 Improve performance: arrange methods by call probability
* checked this with: EnWikiFormulaeTest.php
* remove finding chem macro from BaseMethods::checkAndParse, because
  this will be used somewhere else
* minor: remove mi from mathFont parsing function

Bug: T321599
Change-Id: I472e3ebdebfc91f97c9391268a384f788571612e
2023-03-28 17:29:03 +00:00
Stegmujo 7cd58420f7 Improve performance: remove redundant inputPreparation calls
Bug: T321599
Change-Id: I215b8883ace411933e7cbcd59b97df10dcc68d38
2023-03-28 12:39:08 +00:00
Stegmujo 5de6683c05
Fix colors
* some tests for checking colors

Bug: T327391
Change-Id: I437f8d72834f3cca7c21f97841ee4da2f1f36ed5
2023-03-27 14:42:27 +02:00
jenkins-bot 41eddd141b Merge "Fix texstyle when rendering limits" 2023-03-27 10:31:20 +00:00
Translation updater bot 3cb6aea1cb Localisation updates from https://translatewiki.net.
Change-Id: I6ac6f138df1aa2a091f20f4e8a8b35491f7a0d64
2023-03-27 08:41:23 +02:00
Stegmujo 030143cf14
Fix texstyle when rendering limits
* case index in FullCoverageTest: 144

Bug: T332183
Change-Id: I4bc427c00ffc83d53a91b094c7bde05a816f0f98
2023-03-24 16:15:45 +01:00
jenkins-bot 0b151e25dc Merge "Fix derivatives" 2023-03-24 12:04:08 +00:00
Stegmujo 0df4e38547
Fix derivatives
* indices in FullCoverageTest: 114, 124

Bug: T331998
Change-Id: I99724427b77e14044070d330758fb38a55032a10
2023-03-24 11:42:29 +01:00
Translation updater bot e1d29e3313 Localisation updates from https://translatewiki.net.
Change-Id: I18defa98d94ef3ad4e4d4f1872b0d42364139471
2023-03-23 09:26:04 +01:00
Umherirrender 83a00d41f8 build: Remove unneeded inline stylelint-disable-next-line
modules/ve-math/ve.ce.MWLatexNode.css
 6:59  ✖  Needless disable for "media-feature-name-no-vendor-prefix"
--report-needless-disables

Change-Id: Icb4738d7435cb7cc744a3d82b5e8130111f9b567
2023-03-22 21:57:19 +01:00
jenkins-bot c8cdfcadcc Merge "Fix spaces defined by tilde and backslash" 2023-03-22 16:13:52 +00:00
Stegmujo 426a67fbd7
Fix P rendered as pilcrow
* contains a minor fix for spacings, so that they are rendered by spacer
* and some minor fixes for section sign
* MMLFullCoverageTest cases: 216

Bug: T327391
Change-Id: I124e7aec5552dec98a8292e5bdb9449a3009560a
2023-03-22 14:28:57 +01:00