From: Leo Koppelkamm Date: Thu, 14 Apr 2011 17:46:59 +0000 (+0000) Subject: Adding some parser test for tables. Fixing one parser test, which broke due to change... X-Git-Tag: 1.31.0-rc.0~30841 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=8544cbe0a2092b753572cb6d0e22d143d69fe5f4;p=lhc%2Fweb%2Fwiklou.git Adding some parser test for tables. Fixing one parser test, which broke due to changes in a string in MessagesSr_ec.php --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 3853f8595b..6be8e2435d 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -1270,6 +1270,140 @@ Simple table !! end +!! test +Table with thead +!! input +{| +! Number !! Another number +|- +| 1 || 2 +|- +| 3 || 4 +|} +!! result + + + + + + + + + + + + + + + +
Number +Another number +
1 +2 +
3 +4 +
+ +!! end +!! test +Table with multiple thead +!! input +{| +! Number !! Another number +|- +| 1 || 2 +|- +! Some other number !! Another number +|- +| 3 || 4 +|} +!! result + + + + + + + + + + + + + + + + + + + + + +
Number +Another number +
1 +2 +
Some other number +Another number +
3 +4 +
+ +!! end +!! test +Table with thead & tfoot +!! input +{| +! Number !! Another number +|- +| 1 || 2 +|- +! Some other number !! Another number +|- +| 3 || 4 +|- +! Total: 4 !! Total: 6 +|} +!! result + + + + + + + + + + + + + + + + + + + + + + + + + + +
Number +Another number +
1 +2 +
Some other number +Another number +
3 +4 +
Total: 4 +Total: 6 +
+ +!! end !! test Multiplication table !! input @@ -7777,7 +7911,7 @@ language=sr variant=sr-ec !! input == -{Naslov}- == !! result -

[уреди] Naslov

+

[уреди] Naslov

!! end