From d27cce60f3658fd6016aba6e337bf38a211cf754 Mon Sep 17 00:00:00 2001
From: "C. Scott Ananian"
Date: Thu, 8 Aug 2013 22:56:42 -0400
Subject: [PATCH] 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
---
tests/parser/parserTests.txt | 58 ++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
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
+
+
+!! 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
+
+
+!! end
+
!! test
Bug 529: Uncovered bullet
!! input
--
2.20.1