From: Subramanya Sastry
Date: Tue, 19 Aug 2014 21:19:24 +0000 (-0500)
Subject: Sync up with Parsoid parserTests.
X-Git-Tag: 1.31.0-rc.0~14337^2
X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/voir.php?a=commitdiff_plain;h=13a85541fccca12ead97c0bb393b505c201f4f59;p=lhc%2Fweb%2Fwiklou.git
Sync up with Parsoid parserTests.
This now aligns with Parsoid commit 13c31fc815749a6239dd357672d39de0a51d51ce
Change-Id: I929e1c195801a9055ad2847994e050836262a896
---
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index 08637c6b0b..1d17fc4379 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -4357,7 +4357,7 @@ External links: wiki links within external link (Bug 3695)
!! end
###
@@ -6657,6 +6657,8 @@ Different interwiki prefixes mapping to the same URL
[[wikipedia:en:Foo]]
[[:wikipedia:en:Foo]]
+
+[[ wikiPEdia :Foo]]
!! html/parsoid
!! end
+!! test
+Template with just whitespace in it, bug #68421
+!! wikitext
+{{echo|{{ }}}}
+!! html/parsoid
+
{{ }}
+!! end
+
!! article
Template:test
!! text
@@ -9526,6 +9561,17 @@ Templates: Block Tags: 2. Back-to-back template uses
!!end
+# This is an edge case relating to paragraph wrapping.
+!!test
+Templates: Correctly encapsulate templates producing tag without a corresponding
!! end
@@ -13074,6 +13120,31 @@ parsoid
!! end
+!! test
+div with multiple empty attribute values
+!! options
+parsoid
+!! wikitext
+
HTML rocks
+!! html
+
HTML rocks
+
+!! end
+
+!! test
+table with multiple empty attribute values
+!! options
+parsoid
+!! wikitext
+{| title= id=
+| hi
+|}
+!! html
+
+
hi
+
+!! end
+
# The PHP parser escapes the opening brace to { for some reason, so
# disabled this test for it.
!! test
@@ -13456,7 +13527,7 @@ Bug 2095: link with three closing brackets
!! end
@@ -13513,13 +13584,16 @@ Bug 2304: HTML attribute safety (safe template; regression bug 2309)
!! end
+# Parsoid has enough context to handle this case
!! test
Bug 2304: HTML attribute safety (dangerous template; 2309)
!! wikitext
-!! html
+!! html/php
+!! html/parsoid
+
!! end
!! test
@@ -18777,10 +18851,10 @@ A
!! html
-
@@ -20430,9 +20504,12 @@ HTML tag with 'unnecessary' entity encoding in attributes
HTML tag with broken attribute value quoting
!! wikitext
Foo
+
!! end
!! test
@@ -20452,12 +20529,18 @@ Table with broken attribute value quoting
{|
| title="Hello world|Foo
|}
-!! html
+!! html/php