mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
Add more tests based on test/comments.html
This commit is contained in:
parent
77156c021a
commit
ab8a4b2847
@ -89,7 +89,7 @@ element: root
|
|||||||
#comment: Hello World! '
|
#comment: Hello World! '
|
||||||
|
|
||||||
test_output_equals \
|
test_output_equals \
|
||||||
'Parse comment combinations.' \
|
'Parse comment combinations. (I)' \
|
||||||
'<root><!-- <!-- -- > --><!--foo--><!----></root>' \
|
'<root><!-- <!-- -- > --><!--foo--><!----></root>' \
|
||||||
'
|
'
|
||||||
element: root
|
element: root
|
||||||
@ -97,12 +97,29 @@ element: root
|
|||||||
#comment: foo
|
#comment: foo
|
||||||
#comment: '
|
#comment: '
|
||||||
|
|
||||||
|
test_output_equals \
|
||||||
|
'Parse comment combinations. (II).' \
|
||||||
|
'<! -- comment -->s<!-->-->t<!----->u' \
|
||||||
|
'
|
||||||
|
#comment: comment
|
||||||
|
#text: s
|
||||||
|
#comment: >
|
||||||
|
#text: t
|
||||||
|
#comment: -
|
||||||
|
#text: u'
|
||||||
|
|
||||||
test_output_equals \
|
test_output_equals \
|
||||||
'Parse bad comment.' \
|
'Parse bad comment.' \
|
||||||
'<!--->s' \
|
'<!--->s' \
|
||||||
'
|
'
|
||||||
#comment: ->s'
|
#comment: ->s'
|
||||||
|
|
||||||
|
test_output_equals \
|
||||||
|
'Parse empty notation.' \
|
||||||
|
'<!>s' \
|
||||||
|
'
|
||||||
|
#text: s'
|
||||||
|
|
||||||
test_output_equals \
|
test_output_equals \
|
||||||
'Parse an enclosed CDATA section.' \
|
'Parse an enclosed CDATA section.' \
|
||||||
'<root><![CDATA[...] ]>...]]></root>' \
|
'<root><![CDATA[...] ]>...]]></root>' \
|
||||||
@ -284,9 +301,21 @@ test_output_equals \
|
|||||||
--print-lines
|
--print-lines
|
||||||
|
|
||||||
test_expect_incomplete \
|
test_expect_incomplete \
|
||||||
'Check incomplete comment.' \
|
'Check incomplete comment. (I)' \
|
||||||
|
'<!-'
|
||||||
|
|
||||||
|
test_expect_incomplete \
|
||||||
|
'Check incomplete comment. (II)' \
|
||||||
'<!-- ... '
|
'<!-- ... '
|
||||||
|
|
||||||
|
test_expect_incomplete \
|
||||||
|
'Check incomplete notation. (I)' \
|
||||||
|
'<!'
|
||||||
|
|
||||||
|
test_expect_incomplete \
|
||||||
|
'Check incomplete notation. (II)' \
|
||||||
|
'<!D'
|
||||||
|
|
||||||
test_expect_incomplete \
|
test_expect_incomplete \
|
||||||
'Check incomplete cdata section. (I)' \
|
'Check incomplete cdata section. (I)' \
|
||||||
'<![CDATA[ ... '
|
'<![CDATA[ ... '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user