From b7035782cde737a609e1c1b6c34a1c3af221a7a9 Mon Sep 17 00:00:00 2001
From: Subramanya Sastry
Date: Tue, 9 Oct 2012 12:23:19 -0500
Subject: [PATCH] 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
---
tests/parser/parserTests.txt | 56 ++++++++++++++++++++++++++++--------
1 file changed, 44 insertions(+), 12 deletions(-)
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
--
2.20.1