GWicke has submitted this change and it was merged. Change subject: Run colon escape tests in all modes ......................................................................
Run colon escape tests in all modes With a bit of tweaking these tests can actually run in all modes, so that we get better test coverage out of them. Change-Id: I57de0ca8eee8348d5ab1c2d9c83a986e9e40b450 --- M js/tests/parserTests.txt 1 file changed, 9 insertions(+), 12 deletions(-) Approvals: GWicke: Verified; Looks good to me, approved jenkins-bot: Verified diff --git a/js/tests/parserTests.txt b/js/tests/parserTests.txt index 0b69e79..2f0c471 100644 --- a/js/tests/parserTests.txt +++ b/js/tests/parserTests.txt @@ -8516,46 +8516,43 @@ !! test Parsoid: Serialize link to category page with colon escape !! options -parsoid=html2wt +parsoid !! input [[:Category:Foo]] [[:Category:Foo|Bar]] !! result <p> -<a href="Category:Foo" rel="mw:WikiLink">Category:Foo</a> -<a href="Category:Foo" rel="mw:WikiLink">Bar</a> +<a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a> +<a rel="mw:WikiLink" href="Category:Foo">Bar</a> </p> !! end !! test Parsoid: Serialize link to file page with colon escape !! options -parsoid=html2wt +parsoid !! input [[:File:Foo.png]] [[:File:Foo.png|Bar]] !! result <p> -<a href="File:Foo.png" rel="mw:WikiLink">File:Foo.png</a> -<a href="File:Foo.png" rel="mw:WikiLink">Bar</a> +<a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a> +<a rel="mw:WikiLink" href="File:Foo.png">Bar</a> </p> !! end !! test Parsoid: Serialize a genuine category link without colon escape !! options -parsoid=html2wt +parsoid !! input - [[Category:Foo]] [[Category:Foo|Bar]] !! result -<p> -<link href="Category:Foo" rel="mw:WikiLink/Category"> -<link href="Category:Foo#Bar" rel="mw:WikiLink/Category"> -</p> +<link rel="mw:WikiLink/Category" href="Category:Foo"> +<link rel="mw:WikiLink/Category" href="Category:Foo#Bar"> !! end ### -- To view, visit https://gerrit.wikimedia.org/r/70826 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I57de0ca8eee8348d5ab1c2d9c83a986e9e40b450 Gerrit-PatchSet: 3 Gerrit-Project: mediawiki/extensions/Parsoid Gerrit-Branch: master Gerrit-Owner: GWicke <gwi...@wikimedia.org> Gerrit-Reviewer: GWicke <gwi...@wikimedia.org> Gerrit-Reviewer: Subramanya Sastry <ssas...@wikimedia.org> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits