Commit graph

2209 commits

Author SHA1 Message Date
Ed Sanders 94d6b81d2f tests: Use ve.test.utils.newMwEnvironment()
Depends-On: Ib20c1f5277c5d5a99f5117c82b7cbdeab75d3279
Change-Id: Id551b4c8ae3a857f1318d4b7f5e5518c889bc9d2
2022-03-04 13:52:59 +00:00
Translation updater bot 3bc83aa25f Localisation updates from https://translatewiki.net.
Change-Id: Id7b187ed6f2a8ca8f96df6196edae4a54aadf641
2022-03-04 08:29:43 +01:00
Translation updater bot 268d87cc54 Localisation updates from https://translatewiki.net.
Change-Id: I5a3844970fd6d7015e8709c0e30f2609ac737fde
2022-03-03 08:22:52 +01:00
Translation updater bot 04f5decc61 Localisation updates from https://translatewiki.net.
Change-Id: I748a998ef3d149c71ad159c3ae57df63aad7219d
2022-02-25 09:44:32 +01:00
Translation updater bot 556c3de316 Localisation updates from https://translatewiki.net.
Change-Id: Idad341161500d5a7ac655ced443661ec112447ce
2022-02-21 08:16:10 +01:00
Translation updater bot 19560b6bbb Localisation updates from https://translatewiki.net.
Change-Id: Id0ce4e1e5f6cb6af3e278cc6a3980457e1c062e9
2022-02-16 08:13:14 +01:00
Translation updater bot 6b1c3d7e47 Localisation updates from https://translatewiki.net.
Change-Id: If7c759928ef2a223e095f7326b24c156ba6d9ddd
2022-02-14 08:14:41 +01:00
Translation updater bot c04849e590 Localisation updates from https://translatewiki.net.
Change-Id: I6c1d54ad3d860fcd4f1f763e6e8975004d80811d
2022-02-11 08:41:55 +01:00
Ed Sanders 73cbed9cd1 eslint: Lint Gruntile.js using server rules
Change-Id: I87efd77d71d8787300539813da04d8679dca764b
2022-02-07 16:35:42 +00:00
jenkins-bot 0c5b32c270 Merge "selenium: Refactor WebdriverIO tests from sync to async mode" 2022-02-07 14:47:16 +00:00
Translation updater bot a27b595616 Localisation updates from https://translatewiki.net.
Change-Id: Id2eb492946bdf9ea7406ee98e133aa51ded5c767
2022-02-07 08:22:24 +01:00
Translation updater bot 8e3bee350f Localisation updates from https://translatewiki.net.
Change-Id: Ic3ec39f7bbdf132bd94650c4193f9848226c2a96
2022-02-03 08:44:18 +01:00
Translation updater bot 5a4a4757fb Localisation updates from https://translatewiki.net.
Change-Id: Icd1eb1fb40a4a9017ed9bc7bcb9cecd98e9fb622
2022-02-01 08:27:13 +01:00
osamaahmed17 099e327cc6 selenium: Refactor WebdriverIO tests from sync to async mode
WebdriverIO has dropped support of sync mode due to breaking changes in Chromium, hence all tests have been changed to async.

Update npm packages: @wdio/*, wdio-mediawiki and webdriverio because async mode needs at least webdriverio v7.9.

Remove npm package: @wdio/sync.

Bug: T293076
Change-Id: I35b3b29c09e80306d14a12c5194efeead22a9804
2022-02-01 01:24:19 +11:00
Translation updater bot 984acafb23 Localisation updates from https://translatewiki.net.
Change-Id: I39275e47ce1d332a32a8b0790d241a43ae9d4303
2022-01-31 08:22:19 +01:00
Translation updater bot 4912e4a89c Localisation updates from https://translatewiki.net.
Change-Id: Ic29cb8bb1b1acf0b29a66569599f1e9c7227e0c3
2022-01-27 08:39:00 +01:00
Translation updater bot e720c89802 Localisation updates from https://translatewiki.net.
Change-Id: Id33a4926ec5eb3cf654cc4db94be86ddbfa4b7c7
2022-01-25 08:32:56 +01:00
Translation updater bot 8fb24c9731 Localisation updates from https://translatewiki.net.
Change-Id: I56acc10790fca59ae2431039368c4b824a336cad
2022-01-24 08:27:29 +01:00
Translation updater bot b519c1072d Localisation updates from https://translatewiki.net.
Change-Id: Ib69b5d84f98923cab533221238ea3b88b396eded
2022-01-20 09:17:53 +01:00
Translation updater bot 7530a0f484 Localisation updates from https://translatewiki.net.
Change-Id: I1553fc4e10f4fdcb3c1e0bfacb48e8f2134d70c7
2022-01-17 08:12:28 +01:00
Translation updater bot 1829187b69 Localisation updates from https://translatewiki.net.
Change-Id: Ia2326d16a5086f38fbe88e6971af49a9d3d879be
2022-01-04 08:28:02 +01:00
Alexander Vorwerk 1f8553bc3a Replace usage of deprecated global function wfReadOnly()
The global function wfReadOnly() has been deprecated in favor of the
new ReadOnlyMode service. Its usages should be replaced.

Bug: T283978
Change-Id: I8f7c026961a6b65e2e45a675c54f0481ccdf09e0
2021-12-26 00:03:40 +01:00
Umherirrender e2e4f1cb6b Use ParserOptions::newFromAnon instead of ParserOptions::newCanonical
ParserOptions::newCanonical is deprecated.

Change-Id: I8e709cd4e1b2dbf86f10176a3bbc5854d463ede0
2021-12-18 20:10:48 +01:00
Translation updater bot 3487168224 Localisation updates from https://translatewiki.net.
Change-Id: I2f4db19aa636e517365994c1ced3ac210e38063f
2021-12-16 08:29:46 +01:00
Translation updater bot 3aaa69d3d3 Localisation updates from https://translatewiki.net.
Change-Id: Ia45318cf00ca637011a3ad5d2696eb323e47a3c1
2021-12-09 08:22:34 +01:00
Translation updater bot 6979cb88f5 Localisation updates from https://translatewiki.net.
Change-Id: I741ff1ba8706c8e631e342ba1e088ae77a4c4baf
2021-11-30 08:21:49 +01:00
Translation updater bot c9fbfe3064 Localisation updates from https://translatewiki.net.
Change-Id: I5fdbf3b0bbef116e020e0a90abd0f9c73605420e
2021-11-29 08:12:05 +01:00
Translation updater bot 36ab3abe5b Localisation updates from https://translatewiki.net.
Change-Id: Ic65d31cf503400a0f99a278371abcd7e6b36a79a
2021-11-24 08:22:08 +01:00
Ed Sanders a5e976baee build: Update eslint-config-wikimedia to 0.21.0
Change-Id: Ia97b44767e31fe1c2d075e3627c7f7bea0845751
2021-11-15 16:27:57 +00:00
Translation updater bot 5ff7bc8eda Localisation updates from https://translatewiki.net.
Change-Id: Ib5ed76499b839930edf27d4b855ce1e882df4370
2021-11-15 08:12:01 +01:00
Translation updater bot a1823887cd Localisation updates from https://translatewiki.net.
Change-Id: I1ed5119806275b3c0d2dcf3f5389ee1d56ab7364
2021-11-08 08:17:10 +01:00
Umherirrender da9a7bfc17 doc: Cleanup @param documentation
No extra sign needed between variable and description

Change-Id: I870cb71b6304ff1760499541190fd4cd44bf1a87
2021-11-04 22:29:36 +01:00
libraryupgrader 5fec6f17ba build: Updating validator to 13.7.0
* https://npmjs.com/advisories/1004784 (CVE-2021-3765)

Change-Id: I118bddb2f89096d8a3014294b48714a9ae067533
2021-11-04 17:06:41 +00:00
Translation updater bot 0ed53eabcb Localisation updates from https://translatewiki.net.
Change-Id: I5bb580695361fdd54e755c0a479d9d584194e6bf
2021-11-03 08:20:54 +01:00
Translation updater bot a29e5e1f80 Localisation updates from https://translatewiki.net.
Change-Id: I03e62178c9be2c241e032d7142cba8f9665cbea7
2021-11-01 09:34:07 +01:00
Translation updater bot 49e30a6779 Localisation updates from https://translatewiki.net.
Change-Id: I39c7e48f596e6b2d43dc7b347b937e9d38e41d73
2021-10-25 08:51:56 +02:00
libraryupgrader fc47763ac4 build: Updating mediawiki/mediawiki-codesniffer to 38.0.0
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.PropertyDocumentation.WrongStyle

Change-Id: I781fda9f89d43caa32243fc7d26ff579062b0f70
2021-10-24 07:33:00 +00:00
Translation updater bot 98c3640e90 Localisation updates from https://translatewiki.net.
Change-Id: I47b0267998d64ea15fce74f0d2818a0ec89e332c
2021-10-21 08:22:09 +02:00
Translation updater bot b7e363ffeb Localisation updates from https://translatewiki.net.
Change-Id: I30033d79ebef3d46ca72f26e4315a21060957bce
2021-10-20 08:37:18 +02:00
Translation updater bot b16603d107 Localisation updates from https://translatewiki.net.
Change-Id: I803518d790211edf0f061238dbd6a661fbb1338b
2021-10-18 15:20:40 +02:00
Alexander Vorwerk ee2867db2d MediaWikiTestCase -> MediaWikiIntegrationTestCase
MediaWikiTestCase has been renamed to MediaWikiIntegrationTestCase in 1.34.

Bug: T293043
Change-Id: Icef9bbb1c515b775ccdcf6bc692c8c2cab4ae503
2021-10-12 00:51:10 +02:00
libraryupgrader bc39807052 build: Updating npm dependencies
* @wdio/mocha-framework: 7.5.3 → 7.14.1
  * https://npmjs.com/advisories/1002401 (CVE-2021-3807)
* ansi-regex: 5.0.0 → 5.0.1
  * https://npmjs.com/advisories/1002401 (CVE-2021-3807)

Additional changes:
* composer.json: Updated phpcs command in composer test (T280592).
* composer.json: Added phpcs command to scripts (T280592).

Change-Id: I0db8f640048bf8ea25367776d7d05ef508668974
2021-10-09 07:27:19 +00:00
Translation updater bot fb12c0f9be Localisation updates from https://translatewiki.net.
Change-Id: Id5f070e7a6cb301a4e18bcd0d846ba98e1f7c363
2021-10-08 09:21:11 +02:00
Ed Sanders 1091cf6458 Move var declarations inline
Change-Id: Ib550a7443daea339d3e40f3ff1d9c0febf5159f8
2021-10-05 17:04:47 +01:00
physikerwelt (Moritz Schubotz) b51408c4aa Remove empty string workaround
Old versions of Math returned

<dl>
<dd>iso-8859-1</dd>
</dl>

for empty math tags. This is no longer the case today.

Moreover, a problem in the png2svg conversion was fixed
in mathoid recently Iaf41f61335b4af51f758b64427c6e661ee36fb1b
This version of mathoid is now used in production.

Therefore, we can remove the handling of the special case.

Bug: T10372
Change-Id: Id835f7041a19f9519e7d5640b69a02b4b8a3397e
2021-10-03 14:42:25 +02:00
Reedy df89742072 Remove global namespace class aliases
Depends-On: I7e8e7f5ec0ac2f995489a559e88fc55ab877e06e
Change-Id: Ie3f5d5880363777eda4608fe8753a69e7ff3c5f9
2021-10-01 16:30:09 +00:00
Petr Pchelko cfc2f4f319 Register 'math' parser option
Instead of modifying a page rendering hash,
use the proper mechanism of parser option
registration. The cache is still split on parser
option value. The 'math' option is lazy, since
not all pages contain 'math' tag and we want to
avoid an user preference lookup for every parse.

WARNING: this will invalidate ParserCache for
all pages that contain <math> tags, but according
to Moritz, this is about 1% of all pages, so we
should be fine.

Setting up the test is still rather hard and weird
due to very hacky rendering mode to user option
converter, and math renderer interaction with the DB.
This will be cleaned up later.

Depends-On: I92b3e18fabef4eecac2ec2a4844f1be2716e5d89
Change-Id: I3bce04684070ad306685dabbc51267def25773cd
2021-09-30 06:55:54 -07:00
Petr Pchelko b458303fed Move rendering modes name resolution to MathConfig
Change-Id: Ie1926f1da02f6ab585d3efbc71abe1716dac66e5
2021-09-30 06:29:36 -07:00
Petr Pchelko a3306b24df Clean up handling of user preferences
Change-Id: I3e8f0a0be16d92a411de796b8e25df3a7760099f
2021-09-29 10:28:03 -07:00
Petr Pchelko 9b7205599c Move math configuration methods into a service
This is doing a bulk of the job of creating a service
for working with math modes configuration. There's
still things to do, like moving math mode names,
and perhaps depending on default user options to
provide a bit more convenience, but that will be the
next step.

Change-Id: I1259a93651920f44104f2f5135e3e620c858be8d
2021-09-28 13:31:08 -07:00