From d94003a6453e038e6eb49bcf3bbf4c4f8070bd6b Mon Sep 17 00:00:00 2001
From: Gabriel Wicke
Date: Wed, 21 Nov 2012 13:06:52 -0800
Subject: [PATCH] Test handling HTML tag like structures
* Add a (disabled for the PHP parser) test for bug 40670. Passing in Parsoid.
* Add another test for html-like text.
Change-Id: I2026fb09a5e32062cec0b7f0d45dc6643d4885a9
---
tests/parser/parserTests.txt | 42 ++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index f6091b4159..305d0f1590 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -12757,6 +12757,48 @@ Escaping nowikis
!! end
+!! test
+Tag-like HTML structures are passed through as text
+!! input
+
+
+
+
+
+
+1>2
+
+xb
+
+1f
+!! result
+<x y>
+
<x.y>
+
<x-y>
+
1>2
+
x<y
+
a>b
+
1<d e>f
+
+!! end
+
+
+# This fails in the PHP parser (see bug 40670,
+# https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
+!! test
+Tag names followed by punctuation should not be recognized as tags
+!! options
+disabled
+!! input
+ text
+!! result
+<s.ome> text
+
+!! end
+
+
TODO:
more images
more tables
--
2.20.1