From c2d29bf3738182f147b01ef2b526ed79fbbe6d7b Mon Sep 17 00:00:00 2001 From: Arlo Breault Date: Wed, 5 Oct 2016 15:22:46 -0700 Subject: [PATCH] Sync up with Parsoid parserTests. This now aligns with Parsoid commit 5ce2da6623fbf6716d57f2cd25083ddfea97fe66 Change-Id: I3020cbbe620be05dd76778185f739f907fe5699b --- tests/parser/parserTests.txt | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 2d7fc3d8fc..ba7b0d462a 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -14730,8 +14730,10 @@ Simple category cat !! wikitext [[Category:MediaWiki User's Guide]] -!! html +!! html/php cat=MediaWiki_User's_Guide sort= +!! html/parsoid + !! end !! test @@ -14749,8 +14751,10 @@ Category with different sort key cat !! wikitext [[Category:MediaWiki User's Guide|Foo]] -!! html +!! html/php cat=MediaWiki_User's_Guide sort=Foo +!! html/parsoid + !! end !! test @@ -14759,8 +14763,10 @@ Category with identical sort key cat !! wikitext [[Category:MediaWiki User's Guide|MediaWiki User's Guide]] -!! html +!! html/php cat=MediaWiki_User's_Guide sort=MediaWiki User's Guide +!! html/parsoid + !! end !! test @@ -14785,22 +14791,15 @@ pst [[Category:Foo (bar)|Foo]] !! end -## We used to, but no longer wt2wt this test since the default serializer -## will normalize all categories to serialize on their own line. -## This wikitext usage is going to be fairly uncommon in production and -## selser will take care of preserving formatting in those scenarios. !! test Category with link tail !! options cat pst -parsoid=wt2html !! wikitext 123[[Category:Foo]]456 !! html/php 123[[Category:Foo]]456 -!! html/parsoid -

123456

!! end !! test @@ -19864,18 +19863,18 @@ language=sr

!! end - !! test Simple category in language variants !! options language=sr cat !! wikitext [[Category:МедиаWики Усер'с Гуиде]] -!! html +!! html/php cat=МедиаWики_Усер'с_Гуиде sort= +!! html/parsoid + !! end - !! article Category:分类 !! text @@ -24824,9 +24823,16 @@ Improperly nested inline or quotes tags with whitespace in between Encapsulate protected attributes from wt !! wikitext
foo
+ +{| typeof="mw:placeholder stuff" data-mw="whoo" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true" +| ok +|} !! html/parsoid -
foo
- +
foo
+ + + +
ok
!!end ## Currently the p-wrapper is fragile in how it adds / removes transformations. -- 2.20.1