From fb22c45886c6b63062dd45101a208294888e7ba9 Mon Sep 17 00:00:00 2001
From: "C. Scott Ananian"
Date: Thu, 10 Jul 2014 13:46:45 -0400
Subject: [PATCH] Sync up with Parsoid parserTests.
This now aligns with Parsoid commit 29cdb1ddab0ee8884abe1062c5f9510855988ed4
Change-Id: If25a2e8472ef7660470d0760938a5cb54fe2a0c2
---
tests/parser/parserTests.txt | 174 +++++++++++++++++++++++++----------
1 file changed, 127 insertions(+), 47 deletions(-)
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
: æ§éå±±
-
-â¥
-â
-â¶
+â¥
+â
+â¶
!! 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)
+!! 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}}}
!! end
!! test
@@ -19622,6 +19681,16 @@ parsoid
!! 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
+