From: C. Scott Ananian Date: Thu, 10 Jul 2014 17:46:45 +0000 (-0400) Subject: Sync up with Parsoid parserTests. X-Git-Tag: 1.31.0-rc.0~15007 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=fb22c45886c6b63062dd45101a208294888e7ba9;p=lhc%2Fweb%2Fwiklou.git Sync up with Parsoid parserTests. This now aligns with Parsoid commit 29cdb1ddab0ee8884abe1062c5f9510855988ed4 Change-Id: If25a2e8472ef7660470d0760938a5cb54fe2a0c2 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 6097370612..4a3889d10b 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -1155,11 +1155,10 @@ Ruby markup (W3C-style) : 東京(とうきょう) ; Double-sided ruby : 旧金山jiùjīnshānSan Francisco - -♥HeartCœur -☘ShamrockTrèfle -✶StarÉtoile +♥HeartCœur +☘ShamrockTrèfle +✶StarÉtoile !! html
Mono-ruby for individual base characters
@@ -2623,41 +2622,28 @@ File:foobar.jpg !!end !! test -Leading pipes outside of tables -!! options -parsoid -!! wikitext -| foo -!! html -

| foo

-!! end - -!! test -Leading pipes outside of tables 2 -!! options -parsoid -!! wikitext -a -| foo -b -!! html -

a -| foo -b

-!! end - -!! test -Leading pipes outside of tables 3 -!! options -parsoid +Table wikitext syntax outside wiki-tables !! wikitext a +! not a table heading +|- not a table row +| not a table cell | class="foo bar" | baz b +|} +|- +c !! html

a +! not a table heading +|- not a table row +| not a table cell | class="foo bar" | baz -b

+b +|} +|- +c +

!! end !!test @@ -6169,6 +6155,16 @@ Link with multiple ":" in a subpage-supporting namespace (bug 63636)

Test

!! end +!! test +Purely hash wikilink +!! options +title=[[User:test/123]] +!! wikitext +[[#a|b]] +!! html/parsoid +

b

+!! end + !! test 1. Interaction of linktrail and template encapsulation !! options @@ -6406,9 +6402,12 @@ Interlanguage link !! wikitext Blah blah blah [[zh:Chinese]] -!! html +!! html/php

Blah blah blah

+!! html/parsoid +

Blah blah blah +

!! end !! test @@ -6417,9 +6416,13 @@ Double interlanguage link Blah blah blah [[es:Spanish]] [[zh:Chinese]] -!! html +!! html/php

Blah blah blah

+!! html/parsoid +

Blah blah blah + +

!! end !! test @@ -6429,9 +6432,12 @@ language=ln !! wikitext Blah blah blah [[zh:Chinese]] -!! html +!! html/php

Blah blah blah

+!! html/parsoid +

Blah blah blah +

!! end !! test @@ -6442,19 +6448,26 @@ language=ln Blah blah blah [[es:Spanish]] [[zh:Chinese]] -!! html +!! html/php

Blah blah blah

+!! html/parsoid +

Blah blah blah + +

!! end !! test "Extra" interlanguage links (bug 32189 / gerrit 111390) !! wikitext Blah blah blah -[[mul:Multilingual]] -!! html +[[mul:Article]] +!! html/php

Blah blah blah

+!! html/parsoid +

Blah blah blah +

!! end !! test @@ -8714,6 +8727,42 @@ Un-closed !! html !! end +!! test +Includes and comments at SOL +!! wikitext +== hu == + + +some +* stuff +* here + +can have stuff=== here === + +!! html/php +

hu

+

some +

+
  • stuff
  • +
  • here
+

here

+ +!! html/parsoid + +

hu

+ + + +

some

+ +
    +
  • stuff
  • + +
  • here
+ +

here

+!! end + # TODO: test with DOM fragment reuse! !! test Parsoid: DOM fragment reuse @@ -8883,9 +8932,10 @@ parsoid=wt2html,wt2wt |c |} !!html/parsoid -{{{b}}} +
c
+ !!end ### @@ -11926,15 +11976,19 @@ parsoid ### Inter-language links ### !! test -Inter-language links +Interlanguage links !! options ill !! wikitext [[es:Alimento]] [[fr:Nourriture]] -[[zh:食品]] -!! html +[[zh:食品]] +!! html/php es:Alimento fr:Nourriture zh:食品 +!! html/parsoid +

+ +

!! end !! test @@ -11946,8 +12000,13 @@ ill [[es:2]] [[fr:1]] [[fr:2]] -!! html +!! html/php es:1 fr:1 +!! html/parsoid +

+ + +

!! end ### @@ -18476,12 +18535,12 @@ B foo !! html -

A [2] -B [X 1]

+

A [1] +B [X 1]

-
  1. ↑ foo
  2. ↑ foo bar for a
+
  1. ↑ foo bar for a
-
  1. ↑
+
  1. ↑ foo
!! end !! test @@ -19622,6 +19681,16 @@ parsoid
caption
!! end +!! test +5. Nowiki escaping should account for indent-pres +!! options +parsoid=html2wt +!! html +
==foo==
+!! wikitext + ==foo== +!! end + #### --------------- Behavior Switches -------------------- !! test 1. Valid behavior switches should be escaped @@ -20414,6 +20483,17 @@ parsoid=html2wt # All these tests are marked Parsoid html2wt and html2html only # ---------------------------------------------------------------- +!! test +Serialize interwiki links pointing to the current wiki as plain wiki links (bug 65869) +!! options +parsoid=html2wt +language=es +!! wikitext +[[Foo]] +!! html +

Foo

+!! end + !! test Image: Modifying size of an image (1) !! options