From: C. Scott Ananian Date: Fri, 9 Aug 2013 02:56:42 +0000 (-0400) Subject: Add parserTests for language converter markup. X-Git-Tag: 1.31.0-rc.0~18253^2 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=d27cce60f3658fd6016aba6e337bf38a211cf754;p=lhc%2Fweb%2Fwiklou.git Add parserTests for language converter markup. This test demonstrates a bug with image link, list item, and table cell parsing when language converter markup is present. The test is disabled until the bug is fixed. Bug: 52661 Change-Id: I2da85ab6ba58639d6959f1abb41461c76b3bf177 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 41d49d1e16..984580a51b 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -13982,6 +13982,64 @@ language=sr

!!end +!! test +Don't break link parsing if language converter markup is in the caption. +!! options +language=sr variant=sr-ec +!! input +[[Main Page|-{R|main page}-]] +!! result +

main page +

+!! end + +# This test is currently broken in the PHP parser (bug 52661) +!! test +Don't break image parsing if language converter markup is in the caption. +!! options +language=sr +disabled +!! input +[[File:Foobar.jpg|-{R|caption}-]] +!! result +

caption +

+!! end + +# This test is currently broken in the PHP parser (bug 52661) +!! test +Don't break list handling if language converter markup is in the item. +!! options +language=zh variant=zh-cn +disabled +!! input +;-{zh-cn:AAA;zh-tw:BBB}- +!! result +
AAA +
+ +!! end + +# This test is currently broken in the PHP parser (bug 52661) +!! test +Don't break table handling if language converter markup is in the cell. +!! options +language=sr variant=sr-ec +disabled +!! input +{| +|- +| -{R|B}- +|} +!! result + + + +
B +
+ +!! end + !! test Bug 529: Uncovered bullet !! input