From: Subramanya Sastry Date: Wed, 21 Nov 2012 21:33:17 +0000 (-0600) Subject: Additional tests to keep Parsoid in line (regressions + accuracy) X-Git-Tag: 1.31.0-rc.0~21548 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=67dac2c38197edd786875f7a3867f602d4894528;p=lhc%2Fweb%2Fwiklou.git 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 --- 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