[ZPT] CVS: Zope/lib/python/TAL/tests - test_htmltalparser.py:1.25.32.3
Matthew T. Kromer
matt@zope.com
Tue, 14 May 2002 11:22:50 -0400
Update of /cvs-repository/Zope/lib/python/TAL/tests
In directory cvs.zope.org:/tmp/cvs-serv12835
Modified Files:
Tag: Zope-2_5-branch
test_htmltalparser.py
Log Message:
update test for cdata mode to include two end tags
=== Zope/lib/python/TAL/tests/test_htmltalparser.py 1.25.32.2 => 1.25.32.3 ===
def check_cdata_mode(self):
- """This routine should NOT detect an error with an end tag </a> not
+ """This routine should NOT detect an error with an end tag </a></b> not
matching the start <script> tag. The contents are within a
HTML comment, and should be ignored.
"""
@@ -113,7 +113,7 @@
# be recognized as an improperly nested end tag. See:
# http://www.w3.org/TR/html401/types.html#type-cdata
#
- s = """<script>\n<!--\ndocument.write("</a>");\n// -->\n</script>"""
+ s = """<html><script>\n<!--\ndocument.write("</a></b>");\n// -->\n</script></html>"""
output = [
rawtext(s),
]