From: Subramanya Sastry Date: Tue, 2 Apr 2013 16:42:51 +0000 (-0500) Subject: 5 new tests (3 Parsoid serializer, 2 parser) & fixed 4 tests. X-Git-Tag: 1.31.0-rc.0~20002^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=2670ed1fe841e3a30971c34d1afcad30e52bd80f;p=lhc%2Fweb%2Fwiklou.git 5 new tests (3 Parsoid serializer, 2 parser) & fixed 4 tests. * Updated html output of two parsoid-centric tests to reflect changes in parsoid output. * Updated 'disabled parsoid' options on two tests to 'parsoid'. * Added three more tests for the Parsoid serializer. * Added two tests documenting differences in PHP and Parsoid output for overlapping HTML tags (sometimes seen on wikipedia pages). Change-Id: Id72fc5de5a09490028b64a522db3461970008960 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 0165cb2753..809e3d6822 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -3530,7 +3530,6 @@ parsoid -
foo
!! end @@ -4246,7 +4245,7 @@ Horizontal ruler -- eats additional dashes on the same line !! end !! test -Horizontal ruler -- does not collaps dashes on consecutive lines +Horizontal ruler -- does not collapse dashes on consecutive lines !! input ---- ---- @@ -11510,6 +11509,27 @@ bar !! end +!!test +Parsing of overlapping (improperly nested) inline html tags (PHP parser) +!!options +php +!!input +x +!!result +

x</span> +

+!!end + +!!test +Parsing of overlapping (improperly nested) inline html tags (Parsoid) +!!options +parsoid +!!input +x +!!result +

x +

+!!end ### ### Language variants related tests @@ -14272,7 +14292,7 @@ RT-ed inter-element separators should be valid separators Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out (Parsoid-only since PHP parser relies on Tidy for correct output) !!options -disabled parsoid +parsoid !!input {| |foo @@ -14304,11 +14324,30 @@ Empty TD followed by TD with tpl-generated attribute !!end +!!test +Indented table with an empty td +!!input + {| + |- + | + |foo + |} +!!result + + + + +
+foo +
+ +!!end + !!test Empty TR followed by a template-generated TR (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext) !!options -disabled parsoid +parsoid !!input {| |- @@ -14318,11 +14357,35 @@ disabled parsoid - +
foo
!!end +## PHP and parsoid output differ for this, and since this is primarily +## for testing Parsoid's serializer, marking this Parsoid only +!!test +Empty TR followed by mixed-ws-comment line should RT correctly +!!options +parsoid +!!input +{| +|- + +|- + +|} +!!result + + + + + + +
+ +!!end + !!test Multi-line image caption generated by templates with/without trailing newlines !!options @@ -14336,6 +14399,21 @@ parsoid !!end +## PHP emits broken html for this, and since this is primarily +## a Parsoid serializer test, marking this Parsoid only +!!test +Improperly nested inline or quotes tags with whitespace in between +!!options +parsoid +!!input + x +''' ''x''' '' +!!result +

x + x +

+!!end + TODO: more images more tables