From a24acf238f09593812fd1ee536752cea360a696c Mon Sep 17 00:00:00 2001 From: Arlo Breault Date: Wed, 4 Feb 2015 15:46:08 -0800 Subject: [PATCH] Sync up with Parsoid parserTests. This now aligns with Parsoid commit 028a41e2c1a52476c0d5607ab5c3c6235efd9e3e Change-Id: I476508ebce3dc9c783f466d190f26e2ed84c8d96 --- tests/parser/parserTests.txt | 69 +++++++++++++++++++++++++++++------- 1 file changed, 56 insertions(+), 13 deletions(-) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 18aeabb540..5c580e11d3 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -3911,7 +3911,7 @@ Definition Lists: Weird Ones: Test 1
-
foo 
+
foo 
bar (who uses this?)
@@ -5548,7 +5548,6 @@ Invalid attributes in table cell (bug 1830) !! end - # The "|}" to close the table is missing from the input, so parsoid's # *2wt modes will fail. !! test @@ -5573,6 +5572,25 @@ parsoid=wt2html,html2html " onmouseover="alert(document.cookie)">test !! end +# FIXME: The php output is broken. +!! test +! and || in td attributes should not be parsed as / +!! wikitext +{| +| style="color: red !important;" data-contrived="put this here ||" | foo +|} +!! html/php + + + +
style="color: red !important;" data-contrived="put this here foo +
+ +!! html/parsoid + + +
foo
+!! end !! test Indented table markup mixed with indented pre content (proposed in bug 6200) @@ -8787,6 +8805,17 @@ Aoeu

!! end +# From plwiki:PLOS_ONE +!! test +Parsoid: Page property magic word with magic word contents +!! options +parsoid +!! wikitext +{{DISPLAYTITLE:''{{PAGENAME}}''}} +!! html + +!! end + !! test Namespace 1 {{ns:1}} !! wikitext @@ -8918,7 +8947,7 @@ Magic Word: prioritize type info over data-parsoid !! options parsoid=html2wt !! html - + !! wikitext __FORCETOC__ !! end @@ -8943,7 +8972,7 @@ language=de !! wikitext __NOEDITSECTION__ !! html - + !! end ### @@ -9898,7 +9927,7 @@ parsoid=wt2html,wt2wt |c |} !!html/parsoid - +
c
@@ -14973,7 +15002,6 @@ Punctuation: CSS ! important (bug 11874; with space after) !!end - !! test HTML bullet list, closed tags (bug 5497) !! wikitext @@ -18797,10 +18825,10 @@ Play a bit with r67090 and bug 3158
 
!! html/parsoid -
 
-
 
-
 
-
 
+
 
+
 
+
 
+
 
!! end @@ -20031,7 +20059,7 @@ parsoid !! wikitext hi !! html -

[1]

+

[1]

!! end # This test is wt2html only because we're permitting the serializer to produce @@ -22275,7 +22303,7 @@ Properly encapsulate empty-content transclusions in fosterable positions }} !! html/parsoid - +
!! end @@ -22748,6 +22776,21 @@ parsoid=html2wt == baz == !! end +!! test +Headings: Force metas to serialize before/after +!! options +parsoid=html2wt +!! html +

hello there

+

hi pal

+!! wikitext +== hello there == +[[Category:A1]] + +[[Category:A2]] +== hi pal == +!! end + !! test Parsoid: Serialize positional parameters with = in them as named parameter !! options @@ -23085,7 +23128,7 @@ Edited Redirect link should emit a non-piped wikitext link !! options parsoid=html2wt !! html - + !! wikitext #REDIRECT [[Bar]] !! end -- 2.20.1