aboutsummaryrefslogtreecommitdiffstats
path: root/tests/parser/magicWords.txt
Commit message (Collapse)AuthorAgeFilesLines
* Sync up core repo with ParsoidC. Scott Ananian2025-01-231-0/+37
| | | | | | This now aligns with Parsoid commit 3c3e96d168b5b5a5fe90520ea23f938a7a59181d Change-Id: Iadbe23dcc4b9ee68ad10220623ad9edae0b41b40
* parser: Add a new {{USERLANGUAGE}} magic word for use in wikitextdvorapa2024-09-071-0/+30
| | | | | | | | Depending on configuration, this returns either the interface language code of the current user or the current page language. Bug: T4085 Change-Id: Iab7fda272ec81af88c74612727ff6bed014d4a81
* Sync up core repo with ParsoidArlo Breault2024-07-101-0/+37
| | | | | | This now aligns with Parsoid commit 3e10bb7a56619fe3881ea7c759ada21b96dc592e Change-Id: Iff282e927bdcdb1feef00ba630e33c54c63bec5f
* Add a file to the ParserTestRunnerArlo Breault2024-04-251-2/+2
| | | | | Bug: T363520 Change-Id: I0d5b577d19f98d4fc6f22930c9199a24fc459b9a
* Allow only local pages on pagesize parser functionUmherirrender2024-02-121-0/+26
| | | | | | | | | | | | | Handle them as invalid pages and return 0. Do the same for revision... parser functions. These parser function would add the interwiki link target to ParserOutput::addTemplate and get stored (without the interwiki prefix) in the templatelinks table, which is wrong. Just keep them out and handle them as invalid. Bug: T355706 Change-Id: Ife799789ff5e5953471a28ce37f4dfa7f763299e
* Sync up core repo with ParsoidArlo Breault2023-04-261-0/+99
| | | | | | This now aligns with Parsoid commit eb7a6ce7afac292b7e8a43c622fea6ac65791fc1 Change-Id: Ie704588c71bff4525632e6aa918ae6d0bd3364fb
* ParserTestRunner: handle metadata output as separate sectionC. Scott Ananian2023-02-281-20/+40
| | | | | | | | | | | | | | | | | | | | | | | | If a ParserTest mixes HTML output and metadata properties, it can complicate HTML normalization and other test processes, especially for Parsoid-mode bidirectional tests. Support splitting metadata output into a separate section, named `!! metadata`, with the standard options for legacy and parsoid variants, like `!! metadata/php` and `!! metadata/parsoid` and `!! metadata/parsoid+integrated` etc. For compatibility, if the metadata flags are present on the test and the new section is not present, we'll continue to handle the metadata output as we have before, aka append or prepend the metadata to the HTML. Code search for uses of these options (uses in parsoid and core can be ignored; uses of 'pst' are harmless when they are not combined with another option): https://codesearch.wmcloud.org/search/?q=%28%5E%7C%20%29%28%28showtitle%7Cshowindicators%7Cill%7Ccat%7Cpst%7Cshowflags%29%28%20%7C%24%29%7C%28extension%3D%7Cproperty%3D%29%29&i=nope&files=%5Etests%2Fparser%2F.*%5C.txt&excludeFiles=&repos= Change-Id: I845694d4f2109a8b9125410e8533ca69bbea50fa
* ParserTestRunner: Move 'showflags' handling inside ::addParserOutputInfo()C. Scott Ananian2023-02-221-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is just a clean up refactor to keep the option handling code in one place, and to allow Parsoid to share it when running in integrated mode. But in the process we tweaked a few other things for consistency: * The 'pst' option now can add all of the parser output metadata flags (not just 'showflags') * The 'ill' and 'cat' options append to, instead of replacing, the parser output. * A new 'nohtml' option was added to allow suppressing the HTML in cases where replacing, rather than appending to, the HTML is desired. * 'showflags' doesn't emit an 'extra' newline at the start of its output any more. The appropriate changes to parser tests were performed to accomodate these tweaks. Code search for uses of these options (uses in parsoid and core can be ignored; uses of 'pst' are largely unchanged): https://codesearch.wmcloud.org/search/?q=%28%5E%7C%20%29%28pst%7Cill%7Ccat%7Cshowflags%29%28%20%7C%24%29&i=nope&files=%5Etests%2Fparser%2F.*%5C.txt&excludeFiles=&repos= Depends-On: I5c22f456a3ae5ea25b59c4246d68965099c465cc Depends-On: If307de5d683829beb552663c72288d065827cfb6 Change-Id: I61a67a0e6928463e3872be9a42ff6992c6754662
* Sync up core repo with ParsoidSubramanya Sastry2023-01-061-1/+6
| | | | | | This now aligns with Parsoid commit f4a186b9b63f9216b2d7a363aa1ed45aef59b0c4 Change-Id: Ie48f0c03a1539a575389f766b994c54a75bfb3e1
* Sync up core repo with ParsoidSubramanya Sastry2022-10-191-1/+1
| | | | | | This now aligns with Parsoid commit 00d6c00c5972705c0f88d398e4b78f757ef86f4b Change-Id: I051d1b29e480292078f681fc722a63d0d1588d15
* Sync up core repo with ParsoidC. Scott Ananian2022-10-121-0/+1037
This now aligns with Parsoid commit a3d35adf78c3c7e6a8f04e9a55b76f3efefaedb8 The monolithic parserTests.txt have been split up into a number of smaller test files (more splitting to come) and three existing parser test files have been renamed: mediaParserTests.txt => media.txt legacyMediaParserTests.txt => legacyMedia.txt extraParserTests.txt => badCharacters.txt This reduces redundancy and filename length now that we've got a dozen or so of these. Change-Id: I2c1461341fcb3f3cef8e49b5575cd30f3a38e500