From 6b97c822726c98f9b3cbc821e631dc18e52489d2 Mon Sep 17 00:00:00 2001 From: Arlo Breault Date: Thu, 5 Jan 2017 13:20:18 -0800 Subject: [PATCH] Sync up with Parsoid parserTests. This now aligns with Parsoid commit 974dd5b3d70acf59bb15e057dc37e3702195f3e0 Change-Id: Ia45d8e2539e7fec23503706be1b40a6eaf1f5888 --- tests/parser/parserTests.txt | 42 +++++++++++++++++++++++++++++++----- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index f6b6bced07..56816e1127 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -530,6 +530,8 @@ Extra newlines between heading and content are swallowed !! test Heading with line break in nowiki +!! options +parsoid=wt2html !! wikitext == A B C == @@ -537,6 +539,9 @@ C ==

A B C[edit]

+!! html/parsoid +

A B +C

!! end !! test @@ -6476,6 +6481,14 @@ parsoid=wt2html,html2html ho">ha !! end +!! test +Break on | in element attribute name in template +!! wikitext +{{echo|
ha
}} +!! html/parsoid +

<div cla

+!! end + !! test Don't break on | in extension attribute in template !! wikitext @@ -10933,7 +10946,8 @@ BUG 553: link with two variables in a piped link !! html/parsoid - + +
[[{{{1}}}|{{{2}}}]]
[[{{{1}}}|{{{2}}}]]
!! end # See: T2553 @@ -11625,7 +11639,7 @@ parsoid=wt2html |c |} !!html/parsoid - +
c
!!end @@ -12514,11 +12528,16 @@ Templates: Ugly templates: 6. Template encapsulation test: Cyclical nesting of t Templates: Parameters substituted at the top-level !! wikitext {{{foo|''who'' {{echo|me}}? '''never!'''}}} + +{{{foo|bar|baz}}} !! html/php

who me? never! +

bar

!! html/parsoid -

who me? never!

+

who me? never!

+ +

bar

!! end !!test @@ -17689,6 +17708,8 @@ http://===r:::https://b # Known to produce bad XML for now !! test Fuzz testing: Parser24 +!! options +parsoid=wt2html !! wikitext {| {{{| @@ -17698,7 +17719,7 @@ Fuzz testing: Parser24 MOVE YOUR MOUSE CURSOR OVER THIS TEXT | -!! html +!! html/php {{{| }}}} > @@ -17711,6 +17732,14 @@ MOVE YOUR MOUSE CURSOR OVER THIS TEXT
+!! html/parsoid +

{{{| + +

MOVE YOUR MOUSE CURSOR OVER THIS TEXT

+ + + +
!! end # Note: the current result listed for this is not what the original one was, @@ -17729,9 +17758,12 @@ Fuzz testing: Parser25 (bug 6055)
  • }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE -!! html +!! html/php

    <LI CLASS=blah" onmouseover="alert('hello world');" align="left"MOVE MOUSE CURSOR OVER HERE

    +!! html/parsoid + +

    <LI CLASS=blah" onmouseover="alert('hello world');" align="left"MOVE MOUSE CURSOR OVER HERE

    !! end !!test -- 2.20.1