From 8544cbe0a2092b753572cb6d0e22d143d69fe5f4 Mon Sep 17 00:00:00 2001 From: Leo Koppelkamm Date: Thu, 14 Apr 2011 17:46:59 +0000 Subject: [PATCH] Adding some parser test for tables. Fixing one parser test, which broke due to changes in a string in MessagesSr_ec.php --- tests/parser/parserTests.txt | 136 ++++++++++++++++++++++++++++++++++- 1 file changed, 135 insertions(+), 1 deletion(-) 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 -- 2.20.1