Update template element tests
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Apr 2016 04:22:58 +0000 (04:22 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Apr 2016 04:22:58 +0000 (04:22 +0000)
https://bugs.webkit.org/show_bug.cgi?id=154996

Reviewed by Daniel Bates.

LayoutTests/imported/w3c:

Reimported W3C tests for template elements as of d5a4c5bdf8a1837b4fcf50bbd2efd4150ddafa99.
Also moved the parser tests from html-templates to web-platform-tests/html/syntax to match the upstream directory structure.

* html-templates: Removed.
* html-templates/parsing-html-templates: Removed.
* html-templates/parsing-html-templates/additions-to-foster-parenting: Removed.
* html-templates/parsing-html-templates/additions-to-foster-parenting/template-is-a-foster-parent-element-expected.txt: Removed.
* html-templates/parsing-html-templates/additions-to-foster-parenting/template-is-a-foster-parent-element.html: Removed.
* html-templates/parsing-html-templates/additions-to-foster-parenting/template-is-not-a-foster-parent-element-expected.txt: Removed.
* html-templates/parsing-html-templates/additions-to-foster-parenting/template-is-not-a-foster-parent-element.html: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/generating-of-implied-end-tags-expected.txt: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/generating-of-implied-end-tags.html: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-body-token-expected.txt: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-body-token.html: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-frameset-token-expected.txt: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-frameset-token.html: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-head-token-expected.txt: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-head-token.html: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-html-token-expected.txt: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-html-token.html: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/start-tag-body-expected.txt: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/start-tag-body.html: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/start-tag-html-expected.txt: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/start-tag-html.html: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/template-end-tag-without-start-one-expected.txt: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/template-end-tag-without-start-one.html: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-frameset-insertion-mode: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-frameset-insertion-mode/end-tag-frameset-expected.txt: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-frameset-insertion-mode/end-tag-frameset.html: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-head-insertion-mode: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-head-insertion-mode/generating-of-implied-end-tags-expected.txt: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-head-insertion-mode/generating-of-implied-end-tags.html: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-head-insertion-mode/template-end-tag-without-start-one-expected.txt: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-head-insertion-mode/template-end-tag-without-start-one.html: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-table-insertion-mode: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-table-insertion-mode/end-tag-table-expected.txt: Removed.
* html-templates/parsing-html-templates/additions-to-the-in-table-insertion-mode/end-tag-table.html: Removed.
* html-templates/parsing-html-templates/appending-to-a-template: Removed.
* html-templates/parsing-html-templates/appending-to-a-template/template-child-nodes-expected.txt: Removed.
* html-templates/parsing-html-templates/appending-to-a-template/template-child-nodes.html: Removed.
* html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context: Removed.
* html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-body-context-expected.txt: Removed.
* html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-body-context.html: Removed.
* html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-context-expected.txt: Removed.
* html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-context.html: Removed.
* html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-row-context-expected.txt: Removed.
* html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-row-context.html: Removed.
* html-templates/parsing-html-templates/creating-an-element-for-the-token: Removed.
* html-templates/parsing-html-templates/creating-an-element-for-the-token/template-owner-document-expected.txt: Removed.
* html-templates/parsing-html-templates/creating-an-element-for-the-token/template-owner-document.html: Removed.
* html-templates/resources: Removed.
* html-templates/resources/end-template-tag-in-body.html: Removed.
* html-templates/resources/end-template-tag-in-head.html: Removed.
* html-templates/resources/frameset-end-tag.html: Removed.
* html-templates/resources/head-template-contents-div-no-end-tag.html: Removed.
* html-templates/resources/head-template-contents-table-no-end-tag.html: Removed.
* html-templates/resources/html-start-tag.html: Removed.
* html-templates/resources/template-child-nodes-div.xhtml: Removed.
* html-templates/resources/template-child-nodes-nested.xhtml: Removed.
* html-templates/resources/template-contents-attribute.html: Removed.
* html-templates/resources/template-contents-body.html: Removed.
* html-templates/resources/template-contents-div-no-end-tag.html: Removed.
* html-templates/resources/template-contents-empty.html: Removed.
* html-templates/resources/template-contents-frameset.html: Removed.
* html-templates/resources/template-contents-head.html: Removed.
* html-templates/resources/template-contents-html.html: Removed.
* html-templates/resources/template-contents-nested.html: Removed.
* html-templates/resources/template-contents-table-no-end-tag.html: Removed.
* html-templates/resources/template-contents-text.html: Removed.
* html-templates/resources/template-contents.html: Removed.
* html-templates/resources/template-descendant-body.html: Removed.
* html-templates/resources/template-descendant-frameset.html: Removed.
* html-templates/resources/template-descendant-head.html: Removed.
* html-templates/resources/two-templates.html: Removed.
* html-templates/testcommon.js: Removed.
* web-platform-tests/html/syntax: Added.
* web-platform-tests/html/syntax/parsing: Added.
* web-platform-tests/html/syntax/parsing/template: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/template-is-a-foster-parent-element-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/template-is-a-foster-parent-element.html: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/template-is-not-a-foster-parent-element-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/template-is-not-a-foster-parent-element.html: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/w3c-import.log: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/generating-of-implied-end-tags-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/generating-of-implied-end-tags.html: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-body-token-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-body-token.html: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-frameset-token-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-frameset-token.html: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-head-token-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-head-token.html: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-html-token-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-html-token.html: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/start-tag-body-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/start-tag-body.html: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/start-tag-html-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/start-tag-html.html: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/template-end-tag-without-start-one-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/template-end-tag-without-start-one.html: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/w3c-import.log: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-frameset-insertion-mode: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-frameset-insertion-mode/end-tag-frameset-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-frameset-insertion-mode/end-tag-frameset.html: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-frameset-insertion-mode/w3c-import.log: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/generating-of-implied-end-tags-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/generating-of-implied-end-tags.html: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/template-end-tag-without-start-one-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/template-end-tag-without-start-one.html: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/w3c-import.log: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode/end-tag-table-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode/end-tag-table.html: Added.
* web-platform-tests/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode/w3c-import.log: Added.
* web-platform-tests/html/syntax/parsing/template/appending-to-a-template: Added.
* web-platform-tests/html/syntax/parsing/template/appending-to-a-template/template-child-nodes-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/appending-to-a-template/template-child-nodes.html: Added.
* web-platform-tests/html/syntax/parsing/template/appending-to-a-template/w3c-import.log: Added.
* web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context: Added.
* web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-body-context-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-body-context.html: Added.
* web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-context-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-context.html: Added.
* web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-row-context-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-row-context.html: Added.
* web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/w3c-import.log: Added.
* web-platform-tests/html/syntax/parsing/template/creating-an-element-for-the-token: Added.
* web-platform-tests/html/syntax/parsing/template/creating-an-element-for-the-token/template-owner-document-expected.txt: Added.
* web-platform-tests/html/syntax/parsing/template/creating-an-element-for-the-token/template-owner-document.html: Added.
* web-platform-tests/html/syntax/parsing/template/creating-an-element-for-the-token/w3c-import.log: Added.

LayoutTests:

* platform/mac/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@200072 268f45cc-cd09-0410-ab3c-d52691b4dbfc

75 files changed:
LayoutTests/ChangeLog
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-frameset-insertion-mode/end-tag-frameset-expected.txt [deleted file]
LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-frameset-insertion-mode/end-tag-frameset.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/end-template-tag-in-body.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/end-template-tag-in-head.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/frameset-end-tag.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/head-template-contents-div-no-end-tag.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/head-template-contents-table-no-end-tag.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/html-start-tag.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/template-child-nodes-div.xhtml [deleted file]
LayoutTests/imported/w3c/html-templates/resources/template-child-nodes-nested.xhtml [deleted file]
LayoutTests/imported/w3c/html-templates/resources/template-contents-attribute.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/template-contents-body.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/template-contents-div-no-end-tag.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/template-contents-empty.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/template-contents-frameset.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/template-contents-head.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/template-contents-html.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/template-contents-nested.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/template-contents-table-no-end-tag.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/template-contents-text.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/template-contents.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/template-descendant-body.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/template-descendant-frameset.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/template-descendant-head.html [deleted file]
LayoutTests/imported/w3c/html-templates/resources/two-templates.html [deleted file]
LayoutTests/imported/w3c/html-templates/testcommon.js [deleted file]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/template-is-a-foster-parent-element-expected.txt [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-foster-parenting/template-is-a-foster-parent-element-expected.txt with 100% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/template-is-a-foster-parent-element.html [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-foster-parenting/template-is-a-foster-parent-element.html with 87% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/template-is-not-a-foster-parent-element-expected.txt [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-foster-parenting/template-is-not-a-foster-parent-element-expected.txt with 100% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/template-is-not-a-foster-parent-element.html [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-foster-parenting/template-is-not-a-foster-parent-element.html with 89% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/generating-of-implied-end-tags-expected.txt [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/generating-of-implied-end-tags-expected.txt with 100% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/generating-of-implied-end-tags.html [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/generating-of-implied-end-tags.html with 86% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-body-token-expected.txt [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-body-token-expected.txt with 100% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-body-token.html [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-body-token.html with 93% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-frameset-token-expected.txt [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-frameset-token-expected.txt with 100% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-frameset-token.html [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-frameset-token.html with 90% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-head-token-expected.txt [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-head-token-expected.txt with 100% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-head-token.html [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-head-token.html with 91% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-html-token-expected.txt [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-html-token-expected.txt with 100% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-html-token.html [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-html-token.html with 92% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/start-tag-body-expected.txt [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/start-tag-body-expected.txt with 100% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/start-tag-body.html [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/start-tag-body.html with 93% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/start-tag-html-expected.txt [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/start-tag-html-expected.txt with 100% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/start-tag-html.html [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/start-tag-html.html with 82% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/template-end-tag-without-start-one-expected.txt [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/template-end-tag-without-start-one-expected.txt with 100% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/template-end-tag-without-start-one.html [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/template-end-tag-without-start-one.html with 91% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-frameset-insertion-mode/end-tag-frameset-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-frameset-insertion-mode/end-tag-frameset.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-frameset-insertion-mode/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/generating-of-implied-end-tags-expected.txt [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-head-insertion-mode/generating-of-implied-end-tags-expected.txt with 100% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/generating-of-implied-end-tags.html [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-head-insertion-mode/generating-of-implied-end-tags.html with 86% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/template-end-tag-without-start-one-expected.txt [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-head-insertion-mode/template-end-tag-without-start-one-expected.txt with 100% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/template-end-tag-without-start-one.html [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-head-insertion-mode/template-end-tag-without-start-one.html with 91% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode/end-tag-table-expected.txt [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-table-insertion-mode/end-tag-table-expected.txt with 100% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode/end-tag-table.html [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-table-insertion-mode/end-tag-table.html with 83% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/appending-to-a-template/template-child-nodes-expected.txt [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/appending-to-a-template/template-child-nodes-expected.txt with 100% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/appending-to-a-template/template-child-nodes.html [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/appending-to-a-template/template-child-nodes.html with 89% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/appending-to-a-template/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-body-context-expected.txt [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-body-context-expected.txt with 100% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-body-context.html [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-body-context.html with 96% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-context-expected.txt [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-context-expected.txt with 100% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-context.html [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-context.html with 92% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-row-context-expected.txt [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-row-context-expected.txt with 100% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-row-context.html [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-row-context.html with 90% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/creating-an-element-for-the-token/template-owner-document-expected.txt [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/creating-an-element-for-the-token/template-owner-document-expected.txt with 99% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/creating-an-element-for-the-token/template-owner-document.html [moved from LayoutTests/imported/w3c/html-templates/parsing-html-templates/creating-an-element-for-the-token/template-owner-document.html with 83% similarity]
LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/creating-an-element-for-the-token/w3c-import.log [new file with mode: 0644]
LayoutTests/platform/mac/TestExpectations

index 60e8827..55ecf9e 100644 (file)
@@ -1,3 +1,12 @@
+2016-04-25  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Update template element tests
+        https://bugs.webkit.org/show_bug.cgi?id=154996
+
+        Reviewed by Daniel Bates.
+
+        * platform/mac/TestExpectations:
+
 2016-04-25  Myles C. Maxfield  <mmaxfield@apple.com>
 
         Cloning a textarea does not clone the textarea's value
index 7a0e59f..7c940f9 100644 (file)
@@ -1,3 +1,144 @@
+2016-04-25  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Update template element tests
+        https://bugs.webkit.org/show_bug.cgi?id=154996
+
+        Reviewed by Daniel Bates.
+
+        Reimported W3C tests for template elements as of d5a4c5bdf8a1837b4fcf50bbd2efd4150ddafa99.
+        Also moved the parser tests from html-templates to web-platform-tests/html/syntax to match the upstream directory structure.
+
+        * html-templates: Removed.
+        * html-templates/parsing-html-templates: Removed.
+        * html-templates/parsing-html-templates/additions-to-foster-parenting: Removed.
+        * html-templates/parsing-html-templates/additions-to-foster-parenting/template-is-a-foster-parent-element-expected.txt: Removed.
+        * html-templates/parsing-html-templates/additions-to-foster-parenting/template-is-a-foster-parent-element.html: Removed.
+        * html-templates/parsing-html-templates/additions-to-foster-parenting/template-is-not-a-foster-parent-element-expected.txt: Removed.
+        * html-templates/parsing-html-templates/additions-to-foster-parenting/template-is-not-a-foster-parent-element.html: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/generating-of-implied-end-tags-expected.txt: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/generating-of-implied-end-tags.html: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-body-token-expected.txt: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-body-token.html: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-frameset-token-expected.txt: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-frameset-token.html: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-head-token-expected.txt: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-head-token.html: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-html-token-expected.txt: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/ignore-html-token.html: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/start-tag-body-expected.txt: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/start-tag-body.html: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/start-tag-html-expected.txt: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/start-tag-html.html: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/template-end-tag-without-start-one-expected.txt: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-body-insertion-mode/template-end-tag-without-start-one.html: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-frameset-insertion-mode: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-frameset-insertion-mode/end-tag-frameset-expected.txt: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-frameset-insertion-mode/end-tag-frameset.html: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-head-insertion-mode: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-head-insertion-mode/generating-of-implied-end-tags-expected.txt: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-head-insertion-mode/generating-of-implied-end-tags.html: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-head-insertion-mode/template-end-tag-without-start-one-expected.txt: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-head-insertion-mode/template-end-tag-without-start-one.html: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-table-insertion-mode: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-table-insertion-mode/end-tag-table-expected.txt: Removed.
+        * html-templates/parsing-html-templates/additions-to-the-in-table-insertion-mode/end-tag-table.html: Removed.
+        * html-templates/parsing-html-templates/appending-to-a-template: Removed.
+        * html-templates/parsing-html-templates/appending-to-a-template/template-child-nodes-expected.txt: Removed.
+        * html-templates/parsing-html-templates/appending-to-a-template/template-child-nodes.html: Removed.
+        * html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context: Removed.
+        * html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-body-context-expected.txt: Removed.
+        * html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-body-context.html: Removed.
+        * html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-context-expected.txt: Removed.
+        * html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-context.html: Removed.
+        * html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-row-context-expected.txt: Removed.
+        * html-templates/parsing-html-templates/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-row-context.html: Removed.
+        * html-templates/parsing-html-templates/creating-an-element-for-the-token: Removed.
+        * html-templates/parsing-html-templates/creating-an-element-for-the-token/template-owner-document-expected.txt: Removed.
+        * html-templates/parsing-html-templates/creating-an-element-for-the-token/template-owner-document.html: Removed.
+        * html-templates/resources: Removed.
+        * html-templates/resources/end-template-tag-in-body.html: Removed.
+        * html-templates/resources/end-template-tag-in-head.html: Removed.
+        * html-templates/resources/frameset-end-tag.html: Removed.
+        * html-templates/resources/head-template-contents-div-no-end-tag.html: Removed.
+        * html-templates/resources/head-template-contents-table-no-end-tag.html: Removed.
+        * html-templates/resources/html-start-tag.html: Removed.
+        * html-templates/resources/template-child-nodes-div.xhtml: Removed.
+        * html-templates/resources/template-child-nodes-nested.xhtml: Removed.
+        * html-templates/resources/template-contents-attribute.html: Removed.
+        * html-templates/resources/template-contents-body.html: Removed.
+        * html-templates/resources/template-contents-div-no-end-tag.html: Removed.
+        * html-templates/resources/template-contents-empty.html: Removed.
+        * html-templates/resources/template-contents-frameset.html: Removed.
+        * html-templates/resources/template-contents-head.html: Removed.
+        * html-templates/resources/template-contents-html.html: Removed.
+        * html-templates/resources/template-contents-nested.html: Removed.
+        * html-templates/resources/template-contents-table-no-end-tag.html: Removed.
+        * html-templates/resources/template-contents-text.html: Removed.
+        * html-templates/resources/template-contents.html: Removed.
+        * html-templates/resources/template-descendant-body.html: Removed.
+        * html-templates/resources/template-descendant-frameset.html: Removed.
+        * html-templates/resources/template-descendant-head.html: Removed.
+        * html-templates/resources/two-templates.html: Removed.
+        * html-templates/testcommon.js: Removed.
+        * web-platform-tests/html/syntax: Added.
+        * web-platform-tests/html/syntax/parsing: Added.
+        * web-platform-tests/html/syntax/parsing/template: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/template-is-a-foster-parent-element-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/template-is-a-foster-parent-element.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/template-is-not-a-foster-parent-element-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/template-is-not-a-foster-parent-element.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/w3c-import.log: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/generating-of-implied-end-tags-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/generating-of-implied-end-tags.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-body-token-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-body-token.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-frameset-token-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-frameset-token.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-head-token-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-head-token.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-html-token-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-html-token.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/start-tag-body-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/start-tag-body.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/start-tag-html-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/start-tag-html.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/template-end-tag-without-start-one-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/template-end-tag-without-start-one.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/w3c-import.log: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-frameset-insertion-mode: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-frameset-insertion-mode/end-tag-frameset-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-frameset-insertion-mode/end-tag-frameset.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-frameset-insertion-mode/w3c-import.log: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/generating-of-implied-end-tags-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/generating-of-implied-end-tags.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/template-end-tag-without-start-one-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/template-end-tag-without-start-one.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/w3c-import.log: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode/end-tag-table-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode/end-tag-table.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode/w3c-import.log: Added.
+        * web-platform-tests/html/syntax/parsing/template/appending-to-a-template: Added.
+        * web-platform-tests/html/syntax/parsing/template/appending-to-a-template/template-child-nodes-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/appending-to-a-template/template-child-nodes.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/appending-to-a-template/w3c-import.log: Added.
+        * web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context: Added.
+        * web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-body-context-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-body-context.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-context-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-context.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-row-context-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-row-context.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/w3c-import.log: Added.
+        * web-platform-tests/html/syntax/parsing/template/creating-an-element-for-the-token: Added.
+        * web-platform-tests/html/syntax/parsing/template/creating-an-element-for-the-token/template-owner-document-expected.txt: Added.
+        * web-platform-tests/html/syntax/parsing/template/creating-an-element-for-the-token/template-owner-document.html: Added.
+        * web-platform-tests/html/syntax/parsing/template/creating-an-element-for-the-token/w3c-import.log: Added.
+
 2016-04-24  Chris Dumez  <cdumez@apple.com>
 
         Unreviewed, revert part of r199970 that shouldn't have been committed.
diff --git a/LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-frameset-insertion-mode/end-tag-frameset-expected.txt b/LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-frameset-insertion-mode/end-tag-frameset-expected.txt
deleted file mode 100644 (file)
index 9f43f9f..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-
-PASS </frameset> tag should be ignored if there's TEMPLATE element in the stack of open elements 
-
diff --git a/LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-frameset-insertion-mode/end-tag-frameset.html b/LayoutTests/imported/w3c/html-templates/parsing-html-templates/additions-to-the-in-frameset-insertion-mode/end-tag-frameset.html
deleted file mode 100644 (file)
index 9dadb24..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<title>HTML Templates: additions to 'in frameset' insertion mode</title>
-<meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
-<meta name="assert" content="If parser is in 'in frameset' insertion mode and meets frameset end tag then if the stack of open elements has a template element in html scope then this is a parse error; ignore the token">
-<link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#in-head-addition">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="../../../../../resources/testharness.css">
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-testInIFrame('../../resources/frameset-end-tag.html', function(context) {
-    var doc = context.iframes[0].contentDocument;
-
-    var frameset = doc.querySelector('frameset');
-    assert_equals(frameset.children.length, 1, 'Wrong number of frameset children elements');
-
-    var template = frameset.querySelector('template');
-    assert_equals(template.tagName, 'TEMPLATE', 'FRAMESET should contain template element');
-    assert_equals(template.content.childNodes.length, 0,
-            'Template content should be empty');
-
-}, '</frameset> tag should be ignored if there\'s TEMPLATE element in '
-    + 'the stack of open elements');
-
-</script>
-</body>
-</html>
diff --git a/LayoutTests/imported/w3c/html-templates/resources/end-template-tag-in-body.html b/LayoutTests/imported/w3c/html-templates/resources/end-template-tag-in-body.html
deleted file mode 100644 (file)
index 2cb1498..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <title>The file contains several &lt;/template&gt; tag in HTML body without start one</title>
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
-</head>
-<body>
-    </template>
-    <div>The file contains several &lt;/template&gt; tag in HTML body without start one</div>
-    </template></template>
-</body>
-</html>
diff --git a/LayoutTests/imported/w3c/html-templates/resources/end-template-tag-in-head.html b/LayoutTests/imported/w3c/html-templates/resources/end-template-tag-in-head.html
deleted file mode 100644 (file)
index 02d0c7b..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    </template>
-    <title>The file contains several &lt;/template&gt; tag in HTML head without start one</title>
-    </template></template>
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
-    </template>
-</head>
-<body>
-</body>
-</html>
diff --git a/LayoutTests/imported/w3c/html-templates/resources/frameset-end-tag.html b/LayoutTests/imported/w3c/html-templates/resources/frameset-end-tag.html
deleted file mode 100644 (file)
index b84d555..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <title>The file contains frameset with the template and frameset end tag in it</title>
-    <link rel="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
-</head>
-<frameset>
-    <template></frameset></template>
-</frameset>
-</html>
diff --git a/LayoutTests/imported/w3c/html-templates/resources/head-template-contents-div-no-end-tag.html b/LayoutTests/imported/w3c/html-templates/resources/head-template-contents-div-no-end-tag.html
deleted file mode 100644 (file)
index e4e45bc..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <title>The file contains template element with open div tag, but without end div tag, in the head</title>
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
-    <template>
-        <div>Hello, template
-    </template>
-</head>
-<body>
-</body>
-</html>
diff --git a/LayoutTests/imported/w3c/html-templates/resources/head-template-contents-table-no-end-tag.html b/LayoutTests/imported/w3c/html-templates/resources/head-template-contents-table-no-end-tag.html
deleted file mode 100644 (file)
index 9db2b4a..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-  <title>The file contains template element with open table, tr, td tags, but without end td, tr, table tags, in the head</title>
-  <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
-  <template>
-    <table>
-      <tr>
-        <td>Hello, cell one!
-  </template>
-</head>
-<body>
-</body>
-</html>
diff --git a/LayoutTests/imported/w3c/html-templates/resources/html-start-tag.html b/LayoutTests/imported/w3c/html-templates/resources/html-start-tag.html
deleted file mode 100644 (file)
index 0de652c..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<html tabindex="5">
-<head>
-    <title>The file contains html root element with attributes and some in the body</title>
-    <link rel="author" title="Sergey G. Grekhovv" href="mailto:sgrekhov@unipro.ru">
-</head>
-<body>
-<template id="tmpl"><html class="htmlClass"></html></template><html id="htmlId" tabindex="5">
-</body>
-</html>
diff --git a/LayoutTests/imported/w3c/html-templates/resources/template-child-nodes-div.xhtml b/LayoutTests/imported/w3c/html-templates/resources/template-child-nodes-div.xhtml
deleted file mode 100644 (file)
index 297c3bc..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
-<html xmlns="http://www.w3.org/1999/xhtml">\r
-<head>\r
-       <title>Template tag with children div tags inside</title>\r
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru"/>\r
-</head>\r
-<body>\r
-       <p>Template tag with div tags inside</p>\r
-       <template>\r
-               <div>This is div inside template</div>\r
-               <div>This is another div inside template</div>\r
-       </template>\r
-</body>\r
-</html>\r
diff --git a/LayoutTests/imported/w3c/html-templates/resources/template-child-nodes-nested.xhtml b/LayoutTests/imported/w3c/html-templates/resources/template-child-nodes-nested.xhtml
deleted file mode 100644 (file)
index 2015949..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
-<html xmlns="http://www.w3.org/1999/xhtml">\r
-<head>\r
-       <title>Template tag with children div tags inside another template tag</title>\r
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru"/>\r
-</head>\r
-<body>\r
-       <p>Template tag with children div tags inside another template tag</p>\r
-       <template>\r
-               <template>\r
-                       <div>This is div inside template</div>\r
-                       <div>This is another div inside template</div>\r
-               </template>\r
-       </template>\r
-</body>\r
-</html>\r
diff --git a/LayoutTests/imported/w3c/html-templates/resources/template-contents-attribute.html b/LayoutTests/imported/w3c/html-templates/resources/template-contents-attribute.html
deleted file mode 100644 (file)
index 9e650d1..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>\r
-<html>\r
-<head>\r
-    <title>Empty template tag with attribute content</title>\r
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">\r
-<head>\r
-<body>\r
-    <template content='some text'></template>\r
-</body>\r
-</html>\r
diff --git a/LayoutTests/imported/w3c/html-templates/resources/template-contents-body.html b/LayoutTests/imported/w3c/html-templates/resources/template-contents-body.html
deleted file mode 100644 (file)
index b96d41c..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>\r
-<html>\r
-<head>\r
-    <title>BODY tag inside template</title>\r
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">\r
-<head>\r
-<body>\r
-    <template><body></body></template>\r
-</body>\r
-</html>\r
diff --git a/LayoutTests/imported/w3c/html-templates/resources/template-contents-div-no-end-tag.html b/LayoutTests/imported/w3c/html-templates/resources/template-contents-div-no-end-tag.html
deleted file mode 100644 (file)
index 304acf3..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <title>Div tag inside template tag</title>
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
-</head>
-<body>
-    <template>
-        <div>Hello, template
-    </template>
-</body>
-</html>
diff --git a/LayoutTests/imported/w3c/html-templates/resources/template-contents-empty.html b/LayoutTests/imported/w3c/html-templates/resources/template-contents-empty.html
deleted file mode 100644 (file)
index 068a1b6..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>\r
-<html>\r
-<head>\r
-    <title>Empty template tag</title>\r
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">\r
-<head>\r
-<body>\r
-    <template>\r
-    </template>\r
-</body>\r
-</html>\r
diff --git a/LayoutTests/imported/w3c/html-templates/resources/template-contents-frameset.html b/LayoutTests/imported/w3c/html-templates/resources/template-contents-frameset.html
deleted file mode 100644 (file)
index f8b0087..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>\r
-<html>\r
-<head>\r
-    <title>FRAMESET tag inside template</title>\r
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">\r
-<head>\r
-<body>\r
-    <template><frameset></frameset></template>\r
-</body>\r
-</html>\r
diff --git a/LayoutTests/imported/w3c/html-templates/resources/template-contents-head.html b/LayoutTests/imported/w3c/html-templates/resources/template-contents-head.html
deleted file mode 100644 (file)
index e094107..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>\r
-<html>\r
-<head>\r
-    <title>HEAD tag inside template</title>\r
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">\r
-<head>\r
-<body>\r
-    <template><head></head></template>\r
-</body>\r
-</html>\r
diff --git a/LayoutTests/imported/w3c/html-templates/resources/template-contents-html.html b/LayoutTests/imported/w3c/html-templates/resources/template-contents-html.html
deleted file mode 100644 (file)
index 3d6de67..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>\r
-<html>\r
-<head>\r
-    <title>HTML tag inside template</title>\r
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">\r
-<head>\r
-<body>\r
-    <template><html></html></template>\r
-</body>\r
-</html>\r
diff --git a/LayoutTests/imported/w3c/html-templates/resources/template-contents-nested.html b/LayoutTests/imported/w3c/html-templates/resources/template-contents-nested.html
deleted file mode 100644 (file)
index bfc974d..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>\r
-    <title>Contains second template tag inside template tag</title>\r
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">\r
-<body>\r
-    <template>\r
-        <template>\r
-            <div>Inside nested template</div>\r
-        </template>\r
-    </template>\r
-</body>\r
diff --git a/LayoutTests/imported/w3c/html-templates/resources/template-contents-table-no-end-tag.html b/LayoutTests/imported/w3c/html-templates/resources/template-contents-table-no-end-tag.html
deleted file mode 100644 (file)
index 4639b4d..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <title>The file contains template element with open table, tr, td tags, without end td, tr, table tags</title>
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
-</head>
-<body>
-  <template>
-    <table>
-      <tr>
-        <td>Hello, cell one!
-  </template>
-</body>
-</html>
diff --git a/LayoutTests/imported/w3c/html-templates/resources/template-contents-text.html b/LayoutTests/imported/w3c/html-templates/resources/template-contents-text.html
deleted file mode 100644 (file)
index d3285a0..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>\r
-<html>\r
-<head>\r
-    <title>Some text inside template tag</title>\r
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">\r
-</head>\r
-<body>\r
-    <template>Some text</template>\r
-</body>\r
-</html>\r
diff --git a/LayoutTests/imported/w3c/html-templates/resources/template-contents.html b/LayoutTests/imported/w3c/html-templates/resources/template-contents.html
deleted file mode 100644 (file)
index 0b0201b..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<!DOCTYPE html>\r
-<html>\r
-<head>\r
-    <title>Div tag inside template tag</title>\r
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">\r
-</head>\r
-<body>\r
-    <template>\r
-        <div>Hello, template</div>\r
-    </template>\r
-</body>\r
-</html>\r
diff --git a/LayoutTests/imported/w3c/html-templates/resources/template-descendant-body.html b/LayoutTests/imported/w3c/html-templates/resources/template-descendant-body.html
deleted file mode 100644 (file)
index d64848c..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <title>Div tag inside template tag</title>
-    <link rel="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
-</head>
-<body>
-    <template>
-        <div>Hello, template</div>
-    </template>
-</body>
-</html>
diff --git a/LayoutTests/imported/w3c/html-templates/resources/template-descendant-frameset.html b/LayoutTests/imported/w3c/html-templates/resources/template-descendant-frameset.html
deleted file mode 100644 (file)
index 0360855..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<!DOCTYPE html>\r
-<html>\r
-<head>\r
-    <title>Template tag inside frameset</title>\r
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">\r
-</head>\r
-<frameset>\r
-    <template>\r
-        <div>Hello, template</div>\r
-    </template>\r
-</frameset>\r
-</html>\r
diff --git a/LayoutTests/imported/w3c/html-templates/resources/template-descendant-head.html b/LayoutTests/imported/w3c/html-templates/resources/template-descendant-head.html
deleted file mode 100644 (file)
index 69f7b9c..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE html>\r
-<html>\r
-<head>\r
-    <title>Template tag inside head</title>\r
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">\r
-    <template>\r
-        <div>Hello, template</div>\r
-    </template>\r
-</head>\r
-<body>\r
-    Nothing interesting here\r
-</body>\r
-</html>\r
diff --git a/LayoutTests/imported/w3c/html-templates/resources/two-templates.html b/LayoutTests/imported/w3c/html-templates/resources/two-templates.html
deleted file mode 100644 (file)
index f6e9ab5..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <title>The file contains two template elements</title>
-    <link rel="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
-</head>
-<body>
-    <template id="template1">
-        <div>Hello, template</div>
-    </template>
-
-    <template id="template2">
-        <div>Hello, from second template</div>
-    </template>
-
-</body>
-</html>
diff --git a/LayoutTests/imported/w3c/html-templates/testcommon.js b/LayoutTests/imported/w3c/html-templates/testcommon.js
deleted file mode 100644 (file)
index a08a4c1..0000000
+++ /dev/null
@@ -1,191 +0,0 @@
-/*\r
-Distributed under both the W3C Test Suite License [1] and the W3C\r
-3-clause BSD License [2]. To contribute to a W3C Test Suite, see the\r
-policies and contribution forms [3].\r
-\r
-[1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license\r
-[2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license\r
-[3] http://www.w3.org/2004/10/27-testcases\r
- */\r
-\r
-"use strict";\r
-\r
-var HTML5_ELEMENTS = [ 'a', 'abbr', 'address', 'area', 'article', 'aside',\r
-        'audio', 'b', 'base', 'bdi', 'bdo', 'blockquote', 'body', 'br',\r
-        'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup',\r
-        'command', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div',\r
-        'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure',\r
-        'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header',\r
-        'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd',\r
-        'keygen', 'label', 'legend', 'li', 'link', 'map', 'mark', 'menu',\r
-        'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup',\r
-        'option', 'output', 'p', 'param', 'pre', 'progress', 'q', 'rp', 'rt',\r
-        'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source',\r
-        'span', 'strong', 'style', 'sub', 'table', 'tbody', 'td', 'textarea',\r
-        'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul',\r
-        'var', 'video', 'wbr' ];\r
-\r
-// only void (without end tag) HTML5 elements\r
-var HTML5_VOID_ELEMENTS = [ 'area', 'base', 'br', 'col', 'command', 'embed',\r
-        'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source',\r
-        'track', 'wbr' ];\r
-\r
-// http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#form-associated-element\r
-var HTML5_FORM_ASSOCIATED_ELEMENTS = [ 'button', 'fieldset', 'input', 'keygen',\r
-        'label', 'object', 'output', 'select', 'textarea' ];\r
-\r
-function newDocument() {\r
-    var d = document.implementation.createDocument();\r
-    return d;\r
-}\r
-\r
-function newHTMLDocument() {\r
-    var d = document.implementation.createHTMLDocument('Test Document');\r
-    return d;\r
-}\r
-\r
-function newXHTMLDocument() {\r
-    var doctype = document.implementation.createDocumentType('html',\r
-            '-//W3C//DTD XHTML 1.0 Transitional//EN',\r
-            'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd');\r
-\r
-    var d = document.implementation.createDocument(\r
-            'http://www.w3.org/1999/xhtml', 'html', doctype);\r
-    return d;\r
-}\r
-\r
-function newIFrame(context, src) {\r
-    if (typeof (context) === 'undefined'\r
-            || typeof (context.iframes) !== 'object') {\r
-        assert_unreached('Illegal context object in newIFrame');\r
-    }\r
-\r
-    var iframe = document.createElement('iframe');\r
-    iframe.style.display = 'none';\r
-\r
-    if (typeof (src) != 'undefined') {\r
-        iframe.src = src;\r
-    }\r
-    document.body.appendChild(iframe);\r
-    context.iframes.push(iframe);\r
-\r
-    assert_true(typeof (iframe.contentWindow) != 'undefined'\r
-            && typeof (iframe.contentWindow.document) != 'undefined'\r
-            && iframe.contentWindow.document != document,\r
-            'Failed to create new rendered document');\r
-    return iframe;\r
-}\r
-\r
-function newRenderedHTMLDocument(context) {\r
-    var frame = newIFrame(context);\r
-    var d = frame.contentWindow.document;\r
-    return d;\r
-}\r
-\r
-function newContext() {\r
-    return {\r
-        iframes : []\r
-    };\r
-}\r
-\r
-function cleanContext(context) {\r
-    context.iframes.forEach(function(e) {\r
-        e.parentNode.removeChild(e);\r
-    });\r
-}\r
-\r
-// run given test function in context\r
-// the context is cleaned up after test completes.\r
-function inContext(f) {\r
-    return function() {\r
-        var context = newContext();\r
-        try {\r
-            f(context);\r
-        } finally {\r
-            cleanContext(context);\r
-        }\r
-    };\r
-}\r
-\r
-// new context and iframe are created and url (if supplied) is asigned to\r
-// iframe.src\r
-// function f is bound to the iframe onload event or executed directly after\r
-// iframe creation\r
-// the context is passed to function as argument\r
-function testInIFrame(url, f, testName, testProps) {\r
-    if (url) {\r
-        var t = async_test(testName, testProps);\r
-        t.step(function() {\r
-            var context = newContext();\r
-            var iframe = newIFrame(context, url);\r
-            iframe.onload = t.step_func(function() {\r
-                try {\r
-                    f(context);\r
-                    t.done();\r
-                } finally {\r
-                    cleanContext(context);\r
-                }\r
-            });\r
-        });\r
-    } else {\r
-        test(inContext(function(context) {\r
-            newRenderedHTMLDocument(context);\r
-            f(context);\r
-        }), testName, testProps);\r
-    }\r
-}\r
-\r
-function assert_nodelist_contents_equal_noorder(actual, expected, message) {\r
-    assert_equals(actual.length, expected.length, message);\r
-    var used = [];\r
-    for ( var i = 0; i < expected.length; i++) {\r
-        used.push(false);\r
-    }\r
-    for (i = 0; i < expected.length; i++) {\r
-        var found = false;\r
-        for ( var j = 0; j < actual.length; j++) {\r
-            if (used[j] == false && expected[i] == actual[j]) {\r
-                used[j] = true;\r
-                found = true;\r
-                break;\r
-            }\r
-        }\r
-        if (!found) {\r
-            assert_unreached(message + ". Fail reason:  element not found: "\r
-                    + expected[i]);\r
-        }\r
-    }\r
-}\r
-\r
-function isVisible(el) {\r
-    return el.offsetTop != 0;\r
-}\r
-\r
-function isVoidElement(elementName) {\r
-    return HTML5_VOID_ELEMENTS.indexOf(elementName) >= 0;\r
-}\r
-\r
-function checkTemplateContent(d, obj, html, id, nodeName) {\r
-\r
-    obj.innerHTML = '<template id="tmpl">' + html + '</template>';\r
-\r
-    var t = d.querySelector('#tmpl');\r
-\r
-    if (id != null) {\r
-        assert_equals(t.content.childNodes.length, 1, 'Element ' + nodeName\r
-                + ' should present among template nodes');\r
-        assert_equals(t.content.firstChild.id, id, 'Wrong element ID');\r
-    }\r
-    if (nodeName != null) {\r
-        assert_equals(t.content.firstChild.nodeName, nodeName.toUpperCase(),\r
-                'Wrong node name');\r
-    }\r
-}\r
-\r
-function checkBodyTemplateContent(d, html, id, nodeName) {\r
-    checkTemplateContent(d, d.body, html, id, nodeName);\r
-}\r
-\r
-function checkHeadTemplateContent(d, html, id, nodeName) {\r
-    checkTemplateContent(d, d.head, html, id, nodeName);\r
-}\r
@@ -5,10 +5,9 @@
 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
 <meta name="assert" content="The last template element with either no table element is below it, or a table element immediately below it, in the stack of open elements is the foster parent element (NOT the template's parent!)">
 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#foster-parent-addition">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="../../../../../resources/testharness.css">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -17,7 +16,7 @@
 
 test(function () {
     var doc = newHTMLDocument();
-    
+
     doc.body.innerHTML = '' +
     '<div id="tmplParent">' +
         '<template id="tmpl1">' +
@@ -29,19 +28,19 @@ test(function () {
             '</table>' +
         '</template>' +
     '</div>';
-    
+
     var template = doc.querySelector('#tmpl1');
     var div = template.content.querySelector('#orphanDiv');
-    
+
     assert_equals(div.parentNode, template.content, 'Wrong foster parent element');
-    
+
 }, 'Template is a foster parent element. Test <table> immediately below <template>');
 
 
 
 test(function () {
     var doc = newHTMLDocument();
-    
+
     doc.body.innerHTML = '' +
     '<div id="tmplParent">' +
         '<template id="tmpl1">' +
@@ -51,12 +50,12 @@ test(function () {
                 '<tr><td>Cell 2</td></tr>' +
         '</template>' +
     '</div>';
-    
+
     var template = doc.querySelector('#tmpl1');
     var div = template.content.querySelector('#orphanDiv');
-    
+
     assert_equals(div.parentNode, template.content, 'Wrong foster parent element');
-    
+
 }, 'Template is a foster parent element. Test <template> element without <table>');
 
 </script>
@@ -5,10 +5,9 @@
 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
 <meta name="assert" content="When template element shouldn't be a foster parent then regular rules of foster parenting should be applied">
 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#foster-parent-addition">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="/resources/testharness.css">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -17,7 +16,7 @@
 
 test(function () {
     var doc = newHTMLDocument();
-    
+
     doc.body.innerHTML = '' +
     '<div id="tmplParent">' +
         '<template id="tmpl1">' +
@@ -31,13 +30,13 @@ test(function () {
             '</div>' +
         '</template>' +
     '</div>';
-    
+
     var template = doc.querySelector('#tmpl1');
     var fosterParent = template.content.querySelector('#fosterParent');
     var div = template.content.querySelector('#orphanDiv');
-    
+
     assert_equals(div.parentNode, fosterParent, 'Wrong foster parent element');
-    
+
 }, 'Template is not a foster parent element. '
     + 'Test the case when <template> is higher in stack of open elements');
 
@@ -45,7 +44,7 @@ test(function () {
 
 test(function () {
     var doc = newHTMLDocument();
-    
+
     doc.body.innerHTML = '' +
             '<div id="fosterParent">' +
                 '<table id="tbl">' +
@@ -56,13 +55,13 @@ test(function () {
                 '</table>' +
             '</div>' +
     '</div>';
-    
+
     var t = doc.querySelector('#tmpl1');
     var fosterParent = doc.querySelector('#fosterParent');
     var div = doc.querySelector('#orphanDiv');
-    
+
     assert_equals(div.parentNode, fosterParent, 'Wrong foster parent element');
-    
+
 }, 'Template is not a foster parent element. '
     + 'Test the case when <template> is lower in stack of open elements');
 
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/w3c-import.log
new file mode 100644 (file)
index 0000000..531dd8b
--- /dev/null
@@ -0,0 +1,19 @@
+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+       https://github.com/w3c/csswg-test
+       https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport.
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/template-is-a-foster-parent-element.html
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-foster-parenting/template-is-not-a-foster-parent-element.html
@@ -6,10 +6,9 @@
 <meta name="author" title="Aleksei Yu. Semenov" href="a.semenov@unipro.ru">
 <meta name="assert" content="'In body' insertion mode: when template end tag is met, implied end tags should be generated">
 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#in-body-addition">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="../../../../../resources/testharness.css">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -75,7 +74,7 @@ test(function () {
     var div = template.content.querySelector('#dv');
 
     assert_not_equals( div, null, 'Template should contain DIV element');
-    assert_equals(div.innerText, 'Div content', 'Wrong template content inner text');
+    assert_equals(div.textContent, 'Div content', 'Wrong template content inner text');
 
 }, 'Generating of implied end tags. Test some text and DIV element');
 
@@ -97,13 +96,13 @@ test(function () {
 
     assert_not_equals(template.content.querySelector('#dv'), null,
             'Template should contain DIV element');
-    assert_equals(template.content.querySelector('#dv').innerText,
+    assert_equals(template.content.querySelector('#dv').textContent,
             'Div content', 'Wrong template content inner text');
 
 }, 'Generating of implied end tags. Test wrong end tag');
 
 
-testInIFrame('../../resources/template-contents-table-no-end-tag.html', function(context) {
+testInIFrame('/html/semantics/scripting-1/the-template-element/resources/template-contents-table-no-end-tag.html', function(context) {
     var doc = context.iframes[0].contentDocument;
 
     var template = doc.body.querySelector('template');
@@ -120,7 +119,7 @@ testInIFrame('../../resources/template-contents-table-no-end-tag.html', function
 }, 'Generating of implied end tags. Test table elements. Loading of HTML document from a file');
 
 
-testInIFrame('../../resources/template-contents-div-no-end-tag.html', function(context) {
+testInIFrame('/html/semantics/scripting-1/the-template-element/resources/template-contents-div-no-end-tag.html', function(context) {
     var doc = context.iframes[0].contentDocument;
 
     var template = doc.body.querySelector('template');
@@ -129,7 +128,7 @@ testInIFrame('../../resources/template-contents-div-no-end-tag.html', function(c
 
     var div = template.content.querySelector('div');
     assert_not_equals(div, null, 'Template should contain div element');
-    assert_equals(div.innerText, 'Hello, template\n    ', 'Invalid div contents');
+    assert_equals(div.textContent, 'Hello, template\n    ', 'Invalid div contents');
 
 }, 'Generating of implied end tags. Test div element. Loading of HTML document from a file');
 </script>
@@ -6,10 +6,9 @@
 <meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
 <meta name="assert" content="http://www.w3.org/TR/2013/WD-html-templates-20130214/#in-body-addition">
 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#in-body-addition">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="../../../../../resources/testharness.css">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -117,7 +116,7 @@ test(function() {
     + 'template\'s innerHTML');
 
 
-testInIFrame('../../resources/template-contents-body.html', function(context) {
+testInIFrame('/html/semantics/scripting-1/the-template-element/resources/template-contents-body.html', function(context) {
     var doc = context.iframes[0].contentDocument;
 
     var template = doc.body.querySelector('template');
@@ -6,10 +6,9 @@
 <meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
 <meta name="assert" content="If parser is in 'in body' insertion mode and meets HTML token it should be ignored">
 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#in-body-addition">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="../../../../../resources/testharness.css">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -19,7 +18,7 @@
  * According to http://www.w3.org/TR/2013/WD-html-templates-20130214/#template-contents-insertion-mode
  * when parser is in "template content" mode and meets <frameset> tag it should be switched to
  * "in body" insertion mode.
- * According to http://www.w3.org/html/wg/drafts/html/master/syntax.html#parsing-main-inbody
+ * According to https://html.spec.whatwg.org/multipage/#parsing-main-inbody
  * this token (FRAMESET) should be ignored
  */
 
@@ -112,7 +111,7 @@ test(function() {
     + 'Test FRAMESET tag inside template tag assigned to another template\'s innerHTML');
 
 
-testInIFrame('../../resources/template-contents-frameset.html', function(context) {
+testInIFrame('/html/semantics/scripting-1/the-template-element/resources/template-contents-frameset.html', function(context) {
     var doc = context.iframes[0].contentDocument;
 
     var template = doc.body.querySelector('template');
@@ -6,10 +6,9 @@
 <meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
 <meta name="assert" content="If parser is in 'in body' insertion mode and meets HEAD token it should be ignored">
 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#in-body-addition">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="../../../../../resources/testharness.css">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -19,7 +18,7 @@
  * According to http://www.w3.org/TR/2013/WD-html-templates-20130214/#template-contents-insertion-mode
  * when parser is in "template content" mode and meets <head> tag it should be switched to
  * "in body" insertion mode.
- * According to http://www.w3.org/html/wg/drafts/html/master/syntax.html#parsing-main-inbody
+ * According to https://html.spec.whatwg.org/multipage/#parsing-main-inbody
  * this token (HEAD) should be ignored
  */
 
@@ -115,7 +114,7 @@ test(function() {
     + 'Test HEAD tag inside template tag assigned to another template\'s innerHTML');
 
 
-testInIFrame('../../resources/template-contents-head.html', function(context) {
+testInIFrame('/html/semantics/scripting-1/the-template-element/resources/template-contents-head.html', function(context) {
     var doc = context.iframes[0].contentDocument;
 
     var template = doc.body.querySelector('template');
@@ -6,10 +6,9 @@
 <meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
 <meta name="assert" content="If parser is in 'in body' insertion mode and meets HTML token it should be ignored">
 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#in-body-addition">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="../../../../../resources/testharness.css">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -19,7 +18,7 @@
  * According to http://www.w3.org/TR/2013/WD-html-templates-20130214/#template-contents-insertion-mode
  * when parser is in "template content" mode and meets <html> tag it should be switched to
  * "in body" insertion mode.
- * According to http://www.w3.org/html/wg/drafts/html/master/syntax.html#parsing-main-inbody
+ * According to https://html.spec.whatwg.org/multipage/#parsing-main-inbody
  * this token (HTML) should be ignored
  */
 
@@ -144,7 +143,7 @@ test(function() {
 }, 'Ignore HTML token. Test valid element inside and between HTML and BODY elements');
 
 
-testInIFrame('../../resources/template-contents-html.html', function(context) {
+testInIFrame('/html/semantics/scripting-1/the-template-element/resources/template-contents-html.html', function(context) {
     var doc = context.iframes[0].contentDocument;
 
     var template = doc.body.querySelector('template');
@@ -5,10 +5,9 @@
 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
 <meta name="assert" content="If the stack of open elements has a template element in html scope then ignore <body> the token. (fragment or template contents case)">
 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#in-body-addition">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="../../../../../resources/testharness.css">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -5,10 +5,9 @@
 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
 <meta name="assert" content="If HTML parser is in 'in body' insertion mode and meets HTML start tag, then for each attribute on the token, check to see if the attribute is already present on the top element of the stack of open elements. If it is not, add the attribute and its corresponding value to that element">
 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#in-body-addition">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="../../../../../resources/testharness.css">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -18,7 +17,7 @@
 // id attribute should be added to root <html> element
 // tabindex attribute should not be modified
 //class attribute should be ignored
-testInIFrame('../../resources/html-start-tag.html', function(context) {
+testInIFrame('/html/semantics/scripting-1/the-template-element/resources/html-start-tag.html', function(context) {
     var doc = context.iframes[0].contentDocument;
 
     var template = doc.body.querySelector('template');
@@ -6,10 +6,9 @@
 <meta name="author" title="Aleksei Yu. Semenov" href="a.semenov@unipro.ru">
 <meta name="assert" content="If parser in 'in body' insertion mode meets template end tag and if the stack of open elements has no template element in html scope, then this is a parse error; ignore the token">
 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#in-body-addition">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="../../../../../resources/testharness.css">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -86,7 +85,7 @@ test(function () {
     + 'Test valid <template> element, <title> element and </template> tag after them');
 
 
-testInIFrame('../../resources/end-template-tag-in-body.html', function(context) {
+testInIFrame('/html/semantics/scripting-1/the-template-element/resources/end-template-tag-in-body.html', function(context) {
     var doc = context.iframes[0].contentDocument;
 
     assert_equals(doc.body.querySelector('template'), null,
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/w3c-import.log
new file mode 100644 (file)
index 0000000..d90158a
--- /dev/null
@@ -0,0 +1,25 @@
+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+       https://github.com/w3c/csswg-test
+       https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport.
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/generating-of-implied-end-tags.html
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-body-token.html
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-frameset-token.html
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-head-token.html
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/ignore-html-token.html
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/start-tag-body.html
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/start-tag-html.html
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-body-insertion-mode/template-end-tag-without-start-one.html
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-frameset-insertion-mode/end-tag-frameset-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-frameset-insertion-mode/end-tag-frameset-expected.txt
new file mode 100644 (file)
index 0000000..494728e
--- /dev/null
@@ -0,0 +1,3 @@
+
+FAIL <template> tag should be ignored in "in frameset" insertion mode assert_equals: Wrong number of frameset children elements expected 0 but got 1
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-frameset-insertion-mode/end-tag-frameset.html b/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-frameset-insertion-mode/end-tag-frameset.html
new file mode 100644 (file)
index 0000000..b2878fe
--- /dev/null
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>HTML Templates: additions to 'in frameset' insertion mode</title>
+<meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
+<meta name="assert" content="If parser is in 'in frameset' insertion mode then a start tag or an end tag whose name is 'template' is a parsing error">
+<link rel="help" href="https://www.w3.org/TR/2015/WD-html51-20151008/syntax.html#parsing-main-inframeset">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+
+testInIFrame('/html/semantics/scripting-1/the-template-element/resources/frameset-end-tag.html', function(context) {
+    var doc = context.iframes[0].contentDocument;
+
+    var frameset = doc.querySelector('frameset');
+    assert_equals(frameset.children.length, 0, 'Wrong number of frameset children elements');
+
+}, '<template> tag should be ignored in "in frameset" insertion mode');
+
+</script>
+</body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-frameset-insertion-mode/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-frameset-insertion-mode/w3c-import.log
new file mode 100644 (file)
index 0000000..067a154
--- /dev/null
@@ -0,0 +1,18 @@
+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+       https://github.com/w3c/csswg-test
+       https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport.
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-frameset-insertion-mode/end-tag-frameset.html
@@ -6,10 +6,9 @@
 <meta name="author" title="Aleksei Yu. Semenov" href="a.semenov@unipro.ru">
 <meta name="assert" content="When template end tag is met, implied end tags should be generated">
 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#in-head-addition">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="../../../../../resources/testharness.css">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -75,7 +74,7 @@ test(function () {
     var div = template.content.querySelector('#dv');
 
     assert_not_equals( div, null, 'Template should contain DIV element');
-    assert_equals(div.innerText, 'Div content', 'Wrong template content inner text');
+    assert_equals(div.textContent, 'Div content', 'Wrong template content inner text');
 
 }, 'Generating of implied end tags. Test some text and DIV element');
 
@@ -97,13 +96,13 @@ test(function () {
 
     assert_not_equals(template.content.querySelector('#dv'), null,
             'Template should contain DIV element');
-    assert_equals(template.content.querySelector('#dv').innerText,
+    assert_equals(template.content.querySelector('#dv').textContent,
             'Div content', 'Wrong template content inner text');
 
 }, 'Generating of implied end tags. Test wrong end tag');
 
 
-testInIFrame('../../resources/head-template-contents-table-no-end-tag.html', function(context) {
+testInIFrame('/html/semantics/scripting-1/the-template-element/resources/head-template-contents-table-no-end-tag.html', function(context) {
     var doc = context.iframes[0].contentDocument;
 
     var template = doc.head.querySelector('template');
@@ -121,7 +120,7 @@ testInIFrame('../../resources/head-template-contents-table-no-end-tag.html', fun
 }, 'Generating of implied end tags. Test table elements. Load HTML document from file');
 
 
-testInIFrame('../../resources/head-template-contents-div-no-end-tag.html', function(context) {
+testInIFrame('/html/semantics/scripting-1/the-template-element/resources/head-template-contents-div-no-end-tag.html', function(context) {
     var doc = context.iframes[0].contentDocument;
 
     var template = doc.head.querySelector('template');
@@ -130,7 +129,7 @@ testInIFrame('../../resources/head-template-contents-div-no-end-tag.html', funct
 
     var div = template.content.querySelector('div');
     assert_not_equals(div, null, 'Template should contain div element');
-    assert_equals(div.innerText, 'Hello, template\n    ', 'Invalid div contents');
+    assert_equals(div.textContent, 'Hello, template\n    ', 'Invalid div contents');
 
 }, 'Generating of implied end tags. Test div element. Load HTML document from file');
 </script>
@@ -6,10 +6,9 @@
 <meta name="author" title="Aleksei Yu. Semenov" href="a.semenov@unipro.ru">
 <meta name="assert" content="If parser in 'in head' insertion mode meets template end tag and if the stack of open elements has no template element in html scope, then this is a parse error; ignore the token">
 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#in-head-addition">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="../../../../../resources/testharness.css">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -86,7 +85,7 @@ test(function () {
     + 'Test valid <template> element, <title> element and </template> tag after them');
 
 
-testInIFrame('../../resources/end-template-tag-in-head.html', function(context) {
+testInIFrame('/html/semantics/scripting-1/the-template-element/resources/end-template-tag-in-head.html', function(context) {
     var doc = context.iframes[0].contentDocument;
 
     assert_equals(doc.head.querySelector('template'), null, '</template> must be ignored');
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/w3c-import.log
new file mode 100644 (file)
index 0000000..bfe850d
--- /dev/null
@@ -0,0 +1,19 @@
+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+       https://github.com/w3c/csswg-test
+       https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport.
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/generating-of-implied-end-tags.html
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-head-insertion-mode/template-end-tag-without-start-one.html
@@ -5,10 +5,9 @@
 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
 <meta name="assert" content="If parser is in 'in table' insertion mode and end tag table is met the ignore this token">
 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#in-table-addition">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="../../../../../resources/testharness.css">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -27,7 +26,7 @@ test(function () {
 
     var table = doc.querySelector('#table');
     var template = table.querySelector('#template');
-    
+
     assert_equals(table.childNodes.length, 2, 'Wrong number of table children');
     assert_not_equals(template, null, 'Template element must be parsed');
     assert_equals(table.rows.length, 1, 'Wrong number of table rows');
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode/w3c-import.log
new file mode 100644 (file)
index 0000000..9873ee9
--- /dev/null
@@ -0,0 +1,18 @@
+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+       https://github.com/w3c/csswg-test
+       https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport.
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/additions-to-the-in-table-insertion-mode/end-tag-table.html
@@ -6,10 +6,9 @@
 <meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
 <meta name="assert" content="HTML parser must append template's child nodes only to the template contents node.">
 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#appending-to-a-template">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="../../../../../resources/testharness.css">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -77,7 +76,7 @@ test(function () {
 
 
 
-testInIFrame('../../resources/template-contents.html', function(context) {
+testInIFrame('/html/semantics/scripting-1/the-template-element/resources/template-contents.html', function(context) {
     var doc = context.iframes[0].contentDocument;
 
     var template = doc.querySelector('template');
@@ -91,7 +90,7 @@ testInIFrame('../../resources/template-contents.html', function(context) {
     + 'Load HTML document from a file');
 
 
-testInIFrame('../../resources/template-contents-nested.html', function(context) {
+testInIFrame('/html/semantics/scripting-1/the-template-element/resources/template-contents-nested.html', function(context) {
     var doc = context.iframes[0].contentDocument;
 
     var template = doc.querySelector('template');
@@ -103,7 +102,7 @@ testInIFrame('../../resources/template-contents-nested.html', function(context)
     assert_not_equals(nestedTemplate, null,
             'Element is absent in the template content');
 
-    assert_equals(nestedTemplate.childNodes.length, 0, 
+    assert_equals(nestedTemplate.childNodes.length, 0,
             'Wrong number of template child nodes');
 
     assert_not_equals(nestedTemplate.content.querySelector('div'), null,
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/appending-to-a-template/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/appending-to-a-template/w3c-import.log
new file mode 100644 (file)
index 0000000..0ffa0b5
--- /dev/null
@@ -0,0 +1,18 @@
+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+       https://github.com/w3c/csswg-test
+       https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport.
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/appending-to-a-template/template-child-nodes.html
@@ -5,10 +5,9 @@
 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
 <meta name="assert" content="Clearing the stack back to a table body context must be aborted if the current node is template">
 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#clearing-the-stack">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="../../../../../resources/testharness.css">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -5,10 +5,9 @@
 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
 <meta name="assert" content="Clearing the stack back to a table context must be aborted if the current node is template">
 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#clearing-the-stack">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="../../../../../resources/testharness.css">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -5,10 +5,9 @@
 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
 <meta name="assert" content="Clearing the stack back to a table row context must be aborted if the current node is template">
 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#clearing-the-stack">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="../../../../../resources/testharness.css">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
 </head>
 <body>
 <div id="log"></div>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/w3c-import.log
new file mode 100644 (file)
index 0000000..f36ba6f
--- /dev/null
@@ -0,0 +1,20 @@
+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+       https://github.com/w3c/csswg-test
+       https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport.
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-body-context.html
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-context.html
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/clearing-the-stack-back-to-a-given-context/clearing-stack-back-to-a-table-row-context.html
@@ -2,7 +2,6 @@
 PASS Test ownerDocument property of the element in a template. Current DOCUMENT has no browsing context. Test template element inside the div 
 PASS Test ownerDocument property of the element in a template. Current DOCUMENT has no browsing context. Test template element in the root of the body 
 PASS Test ownerDocument property of the element in a template. Current DOCUMENT has no browsing context. Test template element in the root of the head 
-PASS Test ownerDocument property of the element in a template. Current DOCUMENT has no browsing context. Test template element in the root of the frameset 
 PASS Test ownerDocument property of the element in a nested template 
 PASS Test ownerDocument property of the element in a template. Load HTML document from a file, current DOCUMENT has browsing context 
 PASS Test ownerDocument property of the element in a nested template. Load HTML document from a file, current DOCUMENT has browsing context 
@@ -6,10 +6,9 @@
 <meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
 <meta name="assert" content="ownerDocument property of the element appended to template must be set to the template contents owner of the ownerDocument of the template element">
 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#creating-an-element-for-a-token">
-<script src="../../../../../resources/testharness.js"></script>
-<script src="../../../../../resources/testharnessreport.js"></script>
-<script src='../../testcommon.js'></script>
-<link rel="stylesheet" href="../../../../../resources/testharness.css">
+<script src="../../../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../../../resources/testharnessreport.js"></script>
+<script src="/html/resources/common.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -68,26 +67,6 @@ test(function () {
 
 test(function () {
     var doc = newHTMLDocument();
-
-    doc.open();
-    doc.write('<frameset><template id="tmpl1"><div id="div">DIV</div></template></frameset>');
-    doc.close();
-
-    var template = doc.querySelector('#tmpl1');
-
-    var div = template.content.querySelector('#div');
-
-    assert_equals(div.ownerDocument, template.content.ownerDocument,
-            'Wrong ownerDocument of the element in template');
-
-}, 'Test ownerDocument property of the element in a template. '
-    + 'Current DOCUMENT has no browsing context. Test template element '
-    + 'in the root of the frameset');
-
-
-
-test(function () {
-    var doc = newHTMLDocument();
     doc.body.innerHTML = '<template id="tmpl1">'
         + '<template id="tmpl2"><div id="div">DIV</div></template></template>';
 
@@ -107,7 +86,7 @@ test(function () {
 
 
 
-testInIFrame('../../resources/template-contents.html', function(context) {
+testInIFrame('/html/semantics/scripting-1/the-template-element/resources/template-contents.html', function(context) {
     var doc = context.iframes[0].contentDocument;
 
     var template = doc.querySelector('template');
@@ -122,7 +101,7 @@ testInIFrame('../../resources/template-contents.html', function(context) {
 
 
 
-testInIFrame('../../resources/template-contents-nested.html', function(context) {
+testInIFrame('/html/semantics/scripting-1/the-template-element/resources/template-contents-nested.html', function(context) {
     var doc = context.iframes[0].contentDocument;
 
     var template = doc.querySelector('template');
@@ -142,7 +121,7 @@ testInIFrame('../../resources/template-contents-nested.html', function(context)
 
 
 
-testInIFrame('../../resources/two-templates.html', function(context) {
+testInIFrame('/html/semantics/scripting-1/the-template-element/resources/two-templates.html', function(context) {
     var doc = context.iframes[0].contentDocument;
 
     var template1 = doc.querySelector('#template1');
@@ -181,12 +160,17 @@ HTML5_ELEMENTS.forEach(function(value) {
 
         parameters.push([
                 'Test ownerDocument for the element ' + value + ' in the template',
-                element.ownerDocument,
-                template.content.ownerDocument
+                element,
+                template
             ]);
     }
 });
-generate_tests(assert_equals, parameters,
+
+function compare_owners(element, template) {
+    assert_equals(element.ownerDocument, template.content.ownerDocument)
+}
+
+generate_tests(compare_owners, parameters,
         'Test ownerDocument property of all HTML5 elements in a template. '
             + 'Current DOCUMENT has no browsing context.');
 
@@ -215,12 +199,12 @@ try {
             parameters.push([
                     'Test ownerDocument for the element ' + value + ' in the template. '
                         + 'Document has browsing context',
-                    element.ownerDocument,
-                    template.content.ownerDocument
+                    element,
+                    template
                 ]);
         }
     });
-    generate_tests(assert_equals, parameters,
+    generate_tests(compare_owners, parameters,
             'Test ownerDocument property of all HTML5 elements in a template. '
                 + 'Current DOCUMENT has browsing context.');
 
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/creating-an-element-for-the-token/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/creating-an-element-for-the-token/w3c-import.log
new file mode 100644 (file)
index 0000000..1135bc5
--- /dev/null
@@ -0,0 +1,18 @@
+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+       https://github.com/w3c/csswg-test
+       https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport.
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing/template/creating-an-element-for-the-token/template-owner-document.html
index 9cda887..ddfac74 100644 (file)
@@ -1271,7 +1271,7 @@ webkit.org/b/150956 imported/w3c/web-platform-tests/html/semantics/embedded-cont
 
 webkit.org/b/140217 http/tests/navigation/forward-and-cancel.html [ Pass Failure ]
 
-webkit.org/b/151469 imported/w3c/html-templates/parsing-html-templates/creating-an-element-for-the-token/template-owner-document.html [ Pass Crash ]
+webkit.org/b/151469 imported/w3c/web-platform-tests/html/syntax/parsing/template/creating-an-element-for-the-token/template-owner-document.html [ Pass Crash ]
 
 webkit.org/b/152009 [ Debug ElCapitan ] fast/canvas/canvas-too-large-to-draw.html [ Skip ]