From 002e63c94b00104f1098f8bc490ad75c8ac8fc8c Mon Sep 17 00:00:00 2001
From: Arlo Breault
Date: Tue, 5 Apr 2016 13:54:26 -0700
Subject: [PATCH] Sync up with Parsoid parserTests.
This now aligns with Parsoid commit d206ffe4026dcbce9ef27f1546d023a7027ea7e9
Change-Id: I9f7f0ddf87bf3ee14a1929599e72c5d837e15fbf
---
tests/parser/parserTests.txt | 47 +++++++++++++++---------------------
1 file changed, 19 insertions(+), 28 deletions(-)
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index e2d4f14cb5..691113db66 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -1540,9 +1540,9 @@ parsoid=html2wt
!! wikitext
{{echo|a [ b}}
-{{echo|a }} b}}
+{{echo|a }} b }}
{{echo|a [[ b }}
-{{echo|a {{!}} {{ ]] }}
+{{echo|a | {{ ]] }}
{{echo|a } }}
!! end
@@ -10274,7 +10274,7 @@ Template with just whitespace in it, bug #68421
!! wikitext
{{echo|{{ }}}}
!! html/parsoid
-{{ }}
+{{ }}
!! end
!! article
@@ -13846,6 +13846,17 @@ language=es
caption
!! end
+!! test
+Localized image handling (3).
+!! options
+language=fa
+parsoid=html2wt
+!! html/parsoid
+
+!! wikitext
+[[File:Foobar.jpg|بÙداÙگشتÛ]]
+!! end
+
!! test
"border", "frameless" and "class" attributes on an image.
!! options
@@ -21787,7 +21798,7 @@ A [ foo {{echo|] B C}}
!! html/parsoid
-A [1] B C}}
+A [1] B C}}
â foo {{echo|
@@ -22130,8 +22141,8 @@ X{{echo|[foo {{echo|]bar }} and {{echo|baz}} boo}}
# This test only works in wt2html now as the are always generated
# unless selser is active. Once T72722 is fixed, we should add a changes test
-# here to ensure that unrelated changes don't add the new in
-# wt2wt.
+# here to ensure that unrelated changes don't add the new
+# when selser is active.
!! test
References: 9. Generate missing references list at the end
!! wikitext
@@ -22139,10 +22150,10 @@ A [foo]
B [bar]
!! html/parsoid
A [1] B [inexistent 1]
-
+
â foo
-
+
â bar
!! end
@@ -24044,26 +24055,6 @@ parsoid=wt2html,html2html
!! end
-!! test
-2. Parsoid-only: Don't wrap broken template tags in on wt2wt (Bug 42353)
-!! options
-parsoid
-!! wikitext
-{{}}
-!! html
-{{}}
-!! end
-
-!! test
-1. Parsoid-only: Don't wrap broken template tags in on wt2wt (Bug 42353)
-!! options
-parsoid
-!! wikitext
-}}{{
-!! html
-}}{{
-!! end
-
!!test
Accept empty td cell attribute
!! wikitext
--
2.20.1