mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05: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! '
|
||||
|
||||
test_output_equals \
|
||||
'Parse comment combinations.' \
|
||||
'Parse comment combinations. (I)' \
|
||||
'<root><!-- <!-- -- > --><!--foo--><!----></root>' \
|
||||
'
|
||||
element: root
|
||||
@ -97,12 +97,29 @@ element: root
|
||||
#comment: foo
|
||||
#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 \
|
||||
'Parse bad comment.' \
|
||||
'<!--->s' \
|
||||
'
|
||||
#comment: ->s'
|
||||
|
||||
test_output_equals \
|
||||
'Parse empty notation.' \
|
||||
'<!>s' \
|
||||
'
|
||||
#text: s'
|
||||
|
||||
test_output_equals \
|
||||
'Parse an enclosed CDATA section.' \
|
||||
'<root><![CDATA[...] ]>...]]></root>' \
|
||||
@ -284,9 +301,21 @@ test_output_equals \
|
||||
--print-lines
|
||||
|
||||
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 \
|
||||
'Check incomplete cdata section. (I)' \
|
||||
'<![CDATA[ ... '
|
||||
|
Loading…
x
Reference in New Issue
Block a user