From 67dac2c38197edd786875f7a3867f602d4894528 Mon Sep 17 00:00:00 2001 From: Subramanya Sastry Date: Wed, 21 Nov 2012 15:33:17 -0600 Subject: [PATCH] Additional tests to keep Parsoid in line (regressions + accuracy) * Added a td-cell wikitext syntax variant to spec PHP parser behavior. * Added an image parsing test to prevent rt regressions. Change-Id: I414d0f7368f520df4e02f310d6c82037d3c96d45 --- tests/parser/parserTests.txt | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 305d0f1590..03a184b124 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -2578,6 +2578,31 @@ A table with nothing but a caption !! end +!! test +Table td-cell syntax variations +!! input +{| +| foo bar foo | baz +| foo bar foo || baz +| style='color:red;' | baz +| style='color:red;' || baz +|} +!! result + + + + + + + +
baz + foo bar foo baz + baz + style='color:red;' baz +
+ +!! end + !! test Simple table !! input @@ -6093,6 +6118,19 @@ Image with multiple captions -- only last one is accepted !! end +!! test +Image with width attribute at different positions +!! input +[[Image:foobar.jpg|200px|right|Caption]] +[[Image:foobar.jpg|right|200px|Caption]] +[[Image:foobar.jpg|right|Caption|200px]] +!! result +
Caption
+
Caption
+
Caption
+ +!! end + !! test Image with link parameter, wiki target !! input -- 2.20.1