From 6cff81981569412ec779495370dfe9566cc175c9 Mon Sep 17 00:00:00 2001 From: Subramanya Sastry Date: Thu, 30 Jun 2016 17:39:24 -0500 Subject: [PATCH] Sync up with Parsoid parserTests. This now aligns with Parsoid commit dd8e644d320aec076f76da4e2bd70a8527e0dfd8 Change-Id: Id41989ae0973804c51ed10353d0ac81cef5a6211 --- tests/parser/parserTests.txt | 45 ++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index be9ccaf297..f45c666bf0 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -6572,13 +6572,15 @@ T107652: s in templates that also generate table cell attributes should be !! test Table with row followed by newlines and table heading +!! options +parsoid=wt2html,html2html !! wikitext {| |- ! foo |} -!! html +!! html/* @@ -6590,13 +6592,15 @@ Table with row followed by newlines and table heading !! test Table with empty line following the start tag +!! options +parsoid=wt2html,html2html !! wikitext {| |- | foo |} -!! html +!! html/*
@@ -7082,8 +7086,9 @@ parsoid=wt2html
!! end +# T137406: Whitespace in the HTML !! test -Strip unsupported table tags, but introduce row wikitext as required +1. Generate correct wikitext for tables with thead/tbody/tfoot !! options parsoid=html2wt !! html/parsoid @@ -7115,22 +7120,17 @@ parsoid=html2wt !! wikitext {| |+Test - !Month !Savings - |- |January |$100 - |- |February |$80 - |- |Sum |$180 - |} !! html/php+tidy @@ -7154,6 +7154,21 @@ parsoid=html2wt
!! end +# T137406: No whitespace in the HTML +!! test +2. Generate correct wikitext for tables with thead/tbody/tfoot +!! options +parsoid=html2wt +!! html/parsoid +
heading
foo
+!! wikitext +{| +!heading +|- +|foo +|} +!! end + !! test Testing serialization after deletion in references !! options @@ -8335,8 +8350,6 @@ parsoid=wt2html,wt2wt,html2html !! test Interlanguage link -!! options -parsoid=wt2html,wt2wt,html2html !! wikitext Blah blah blah [[zh:Chinese]] @@ -8365,8 +8378,6 @@ Blah blah blah !! test Double interlanguage link -!! options -parsoid=wt2html,wt2wt,html2html !! wikitext Blah blah blah [[es:Spanish]] @@ -23165,14 +23176,12 @@ Tables: 2c. Nested in td -- no escaping needed parsoid=html2wt !! html/* -
foo!!bar
!! wikitext {| - |foo!!bar |} !! end @@ -23183,14 +23192,12 @@ Tables: 3a. Nested in th parsoid=html2wt !! html/* -
foo!bar
!! wikitext {| - !foo!bar |} !! end @@ -23257,7 +23264,6 @@ Tables: 4a. Escape - parsoid=html2wt !! html/* - @@ -23267,9 +23273,7 @@ parsoid=html2wt !! wikitext {| - !-bar - |- |-bar |} @@ -23281,7 +23285,6 @@ Tables: 4b. Escape + parsoid=html2wt !! html/*
-bar
- @@ -23291,9 +23294,7 @@ parsoid=html2wt !! wikitext {| - !+bar - |- |+bar |} -- 2.20.1
+bar