From: Subramanya Sastry
Date: Tue, 9 Oct 2012 17:23:19 +0000 (-0500)
Subject: Updated/added include/template tests to reflect Parsoid support.
X-Git-Tag: 1.31.0-rc.0~22082^2
X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/?a=commitdiff_plain;h=b7035782cde737a609e1c1b6c34a1c3af221a7a9;p=lhc%2Fweb%2Fwiklou.git
Updated/added include/template tests to reflect Parsoid support.
* This is primarily a spec for what Parsoid will support around
uncommon uses of templates and include-tags.
Change-Id: Ic869da7ee6e89cae2f04beaeec7520b1f83f4e97
---
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index 3a15ed5a3b..e55cc83071 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -4326,16 +4326,7 @@ section=1
### and in attributes
###
!!test
-1. includeonly around the entire attribute
-!!input
-id="v1"id="v2">bar
-!!result
-bar
-
-!!end
-
-!!test
-2. includeonly in html attr key
+1. includeonly in html attr key
!!input
idabout="foo">bar
!!result
@@ -4344,7 +4335,7 @@ section=1
!!end
!!test
-3. includeonly in html attr value
+2. includeonly in html attr value
!!input
bar
"v1""v2">bar
@@ -4355,7 +4346,7 @@ section=1
!!end
!!test
-4. includeonly in part of an attr value
+3. includeonly in part of an attr value
!!input
bar
!!result
@@ -11130,6 +11121,47 @@ HttP://MediaWiki.Org/
!! end
+###
+### Parsoids-specific tests
+### Parsoid-PHP parser incompatibilities
+###
+
+!!test
+1. includeonly around the entire attribute
+!!options
+disabled
+!!input
+id="v1"id="v2">bar
+!!result
+bar
+
+!!end
+
+!!test
+2. template around the entire attribute
+!!options
+disabled
+!!input
+bar
+!!result
+bar
+
+!!end
+
+!!test
+3. SOL-sensitive wikitext tokens as template-args
+!!options
+disabled
+!!input
+{{echo|*a}}
+{{echo|#a}}
+{{echo|:a}}
+!!result
+*a
+#a
+:a
+
+!!end
TODO:
more images