Skip to content

Commit eea8b56

Browse files
committed
Add a test case to ensure that this continues to work
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40952
1 parent ce54311 commit eea8b56

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_parser2.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ def test_assertDoctypeCloneable(self):
1212
doc = parser.parse('<!DOCTYPE HTML>')
1313
self.assert_(doc.cloneNode(True))
1414

15+
def test_line_counter(self):
16+
# http://groups.google.com/group/html5lib-discuss/browse_frm/thread/f4f00e4a2f26d5c0
17+
parser = html5parser.HTMLParser(tree=dom.TreeBuilder)
18+
parser.parse("<pre>\nx\n&gt;\n</pre>")
19+
1520
def buildTestSuite():
1621
return unittest.defaultTestLoader.loadTestsFromName(__name__)
1722

0 commit comments

Comments
 (0)