More tests for mismatched attr quotes + entities in nowiki & pre.
authorSubramanya Sastry <ssastry@wikimedia.org>
Fri, 25 Jan 2013 20:56:35 +0000 (12:56 -0800)
committerSubramanya Sastry <ssastry@wikimedia.org>
Fri, 25 Jan 2013 20:57:29 +0000 (12:57 -0800)
Change-Id: I16af0fc6027bd2c51318af6117162e01be9f6d35

tests/parser/parserTests.txt

index e6d6c2c..365ace1 100644 (file)
@@ -549,6 +549,15 @@ nowiki 3
 
 !! end
 
+!! test
+Entities inside <nowiki>
+!! input
+<nowiki>&lt;</nowiki>
+!! result
+<p>&lt;
+</p>
+!! end
+
 
 ###
 ### Comments
@@ -907,6 +916,15 @@ Bug 6200: Preformatted in <blockquote>
 
 !! end
 
+!! test
+Entities inside <pre>
+!! input
+<pre>&lt;</pre>
+!! result
+<pre>&lt;</pre>
+
+!! end
+
 !! test
 <pre> with forbidden attribute values (bug 3202)
 !! input
@@ -13577,6 +13595,17 @@ HTML tag with broken attribute value quoting
 </p>
 !! end
 
+!! test
+Parsoid-only: HTML tag with broken attribute value quoting
+!! options
+disabled
+!! input
+<span title="Hello world>Foo</span>
+!! result
+<p><span title="Hello world">Foo</span>
+</p>
+!! end
+
 !! test
 Table with broken attribute value quoting
 !! input
@@ -13591,6 +13620,41 @@ Table with broken attribute value quoting
 
 !! end
 
+!! test
+Table with broken attribute value quoting on consecutive lines
+!! input
+{|
+| title="Hello world|Foo
+| style="color:red|Bar
+|}
+!! result
+<table>
+<tr>
+<td>Foo
+</td>
+<td>Bar
+</td></tr></table>
+
+!! end
+
+!! test
+Parsoid-only: Table with broken attribute value quoting on consecutive lines
+!! options
+disabled
+!! input
+{|
+| title="Hello world|Foo
+| style="color:red|Bar
+|}
+!! result
+<table>
+<tr>
+<td title="Hello world">Foo
+</td><td style="color: red;">Bar
+</td></tr></table>
+
+!! end
+
 TODO:
 more images
 more tables