From a016790d3573e89ecb270d494d855b6111e5e715 Mon Sep 17 00:00:00 2001 From: Andrew Sidwell Date: Fri, 11 Jul 2008 21:14:38 +0000 Subject: Add "after after body" and "after after frameset" testsuites. svn path=/trunk/hubbub/; revision=4623 --- test/data/tree-construction/INDEX | 2 + test/data/tree-construction/after-after-body.dat | 110 +++++++++++++++++++ .../tree-construction/after-after-frameset.dat | 120 +++++++++++++++++++++ 3 files changed, 232 insertions(+) create mode 100644 test/data/tree-construction/after-after-body.dat create mode 100644 test/data/tree-construction/after-after-frameset.dat diff --git a/test/data/tree-construction/INDEX b/test/data/tree-construction/INDEX index cdac5cb..719e000 100644 --- a/test/data/tree-construction/INDEX +++ b/test/data/tree-construction/INDEX @@ -14,3 +14,5 @@ tests9.dat html5lib tests tests10.dat html5lib tests tests11.dat html5lib tests tests12.dat html5lib tests +after-after-body.dat Tests "after after body" mode +after-after-frameset.dat Tests "after after frameset" mode diff --git a/test/data/tree-construction/after-after-body.dat b/test/data/tree-construction/after-after-body.dat new file mode 100644 index 0000000..978bac7 --- /dev/null +++ b/test/data/tree-construction/after-after-body.dat @@ -0,0 +1,110 @@ +#data + +#errors +#comments +This tests comment insertion in "after after body". +#document +| +| +| +| +| + +#data + +#errors +Unexpected DOCTYPE: +#comments +This tests DOCTYPE ignorance in "after after body". +This handling should be identical to "in body". +#document +| +| +| +| + +#data + + +#errors +#comments +This tests that whitespace in "after after body" is appended to the current +node, which in "after after body" is always the element. +#document +| +| +| +| +| " +" + +#data + +#errors +Second tag not allowed. +#comments +This tests that no new tag is added to the document. +This handling should be identical to "in body". +#document +| +| +| +| + +#data + +#errors +Second tag not allowed. +#comments +This tests that the attributes on tags in "after after body" are added +to the top element on the stack of open elements (e.g. the root tag.) +This handling should be identical to "in body". +#document +| +| +| bgcolor="red" +| +| + +#data +xxx +#errors +Unexpected text past tag. +#comments +This tests that "anything else" causes switching back to "in body" and +reprocessing of the token. (Character data) +#document +| +| +| +| +| "xxx" + +#data + +#errors +Unexpected tag after tag. +EOF in "in table" mode. +#comments +This tests that "anything else" causes switching back to "in body" and +reprocessing of the token. (Start tag) +#document +| +| +| +| +|
+ +#data +
+#errors +Unexpected end tag after tag. +End tag with no matching start tag. +#comments +This tests that "anything else" causes switching back to "in body" and +reprocessing of the token. (End tag) +#document +| +| +| +| diff --git a/test/data/tree-construction/after-after-frameset.dat b/test/data/tree-construction/after-after-frameset.dat new file mode 100644 index 0000000..e29b585 --- /dev/null +++ b/test/data/tree-construction/after-after-frameset.dat @@ -0,0 +1,120 @@ +#data + +#errors +#comments +Tests comments in "after after frameset" get appended to the Document object. +#document +| +| +| +| +| + +#data + +#errors +Unexpected DOCTYPE: +#comments +This tests DOCTYPE ignorance in "after after frameset". +This handling should be identical to "in body". +#document +| +| +| +| + +#data + + +#errors +#comments +This tests that whitespace in "after after" frameset is appended to the current +node, which in "after after frameset" is always the "html" element. +#document +| +| +| +| +| " +" + +#data + +#errors +Second tag not allowed. +#comments +This tests that no new "html" tag is added to the document. +This handling should be identical to "in body". +#document +| +| +| +| + +#data + +#errors +Second tag not allowed. +#comments +This tests that the attributes on tags in "after after frameset" are added +to the top element on the stack of open elements (e.g. the root tag.) +This handling should be identical to "in body". +#document +| +| +| bgcolor="red" +| +| + +#data + +#errors +#comments +Test EOF in "after after frameset". +#document +| +| +| +| + +#data +xx +#errors +Text after tag. +Text in frameset. +#comments +Test non-space character in "after after frameset". +This handling should be identical to "in frameset". +#document +| +| +| +| + +#data + +#errors +Tag after . +
not allowed in . +#comments +Test non-html start tag in "after after frameset". +This handling should be identical to "in frameset". +#document +| +| +| +| + +#data + +#errors +End tag after . + when the current node is the root "html" element. +#comments +Test non-html start tag in "after after frameset". +This handling should be identical to "in frameset". +#document +| +| +| +| -- cgit v1.2.3