Update tests in web-platform-tests/html/semantics/scripting-1/
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Apr 2016 23:03:13 +0000 (23:03 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Apr 2016 23:03:13 +0000 (23:03 +0000)
https://bugs.webkit.org/show_bug.cgi?id=157026

Reviewed by Darin Adler.

Reimported tests under web-platform-tests/html/semantics/scripting-1/ as of d5a4c5bdf8a1837b4fcf50bbd2efd4150ddafa99.

* web-platform-tests/html/semantics/scripting-1/the-script-element/async_001-expected.txt: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_001.htm: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_002-expected.txt: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_002.htm: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_003-expected.txt: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_003.htm: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_004-expected.txt: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_004.htm: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_005-expected.txt: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_005.htm: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_006-expected.txt: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_006.htm: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_007-expected.txt: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_007.htm: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_008-expected.txt: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_008.htm: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_009-expected.txt: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_009.htm: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_010-expected.txt: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_010.htm: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_011-expected.txt: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/async_011.htm: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/external-script-utf8.js: Added.
(window.getSomeString):
* web-platform-tests/html/semantics/scripting-1/the-script-element/external-script-windows1250.js: Added.
(window.getSomeString):
* web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/base-expected.txt: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/base.html: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/test.js: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/w3c-import.log: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/beta: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/beta/test.js: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/beta/w3c-import.log: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-expected.txt: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-with-base-expected.txt: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-with-base.html: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty.html: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/failure-expected.txt: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/failure.html: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/unreachable.js: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/w3c-import.log: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-01-expected.txt: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-01.html: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-02-expected.txt: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-02.html: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed-2.py: Added.
(main):
* web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed-expected.txt: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.html: Added.
* web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.py: Added.
(main):
* web-platform-tests/html/semantics/scripting-1/the-script-element/serve-with-content-type.py: Added.
(main):
* web-platform-tests/html/semantics/scripting-1/the-script-element/w3c-import.log:
* web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/node-document-expected.txt:
* web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/node-document.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/template-child-nodes.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/w3c-import.log:
* web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-serializing-xhtml-documents/outerhtml.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-serializing-xhtml-documents/w3c-import.log:
* web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-css-user-agent-style-sheet/w3c-import.log:
* web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-steps-to-clone-a-node/template-clone-children.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-steps-to-clone-a-node/templates-copy-document-owner.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-steps-to-clone-a-node/w3c-import.log:
* web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-document-type.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-test-001.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-test-002.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/w3c-import.log:
* web-platform-tests/html/semantics/scripting-1/the-template-element/innerhtml-on-templates/innerhtml.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/innerhtml-on-templates/w3c-import.log:
* web-platform-tests/html/semantics/scripting-1/the-template-element/resources/w3c-import.log:
* web-platform-tests/html/semantics/scripting-1/the-template-element/serializing-html-templates/outerhtml.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/serializing-html-templates/w3c-import.log:
* web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/content-attribute.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/node-document-changes.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-as-a-descendant-expected.txt:
* web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-as-a-descendant.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-content-node-document.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-content.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-body.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-frameset.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-head.html:
* web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/w3c-import.log:

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

79 files changed:
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_001-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_001.htm [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_002-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_002.htm [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_003-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_003.htm [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_004-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_004.htm [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_005-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_005.htm [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_006-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_006.htm [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_007-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_007.htm [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_008-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_008.htm [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_009-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_009.htm [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_010-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_010.htm [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_011-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_011.htm [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/external-script-utf8.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/external-script-windows1250.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/base-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/base.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/test.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/beta/test.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/beta/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-with-base-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-with-base.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/failure-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/failure.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/unreachable.js [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/w3c-import.log [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-01-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-01.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-02-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-02.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed-2.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed-expected.txt [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/serve-with-content-type.py [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/w3c-import.log
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/node-document-expected.txt
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/node-document.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/template-child-nodes.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/w3c-import.log
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-serializing-xhtml-documents/outerhtml.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-serializing-xhtml-documents/w3c-import.log
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-css-user-agent-style-sheet/w3c-import.log
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-steps-to-clone-a-node/template-clone-children.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-steps-to-clone-a-node/templates-copy-document-owner.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-steps-to-clone-a-node/w3c-import.log
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-document-type.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-test-001.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-test-002.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/w3c-import.log
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/innerhtml-on-templates/innerhtml.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/innerhtml-on-templates/w3c-import.log
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/resources/w3c-import.log
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/serializing-html-templates/outerhtml.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/serializing-html-templates/w3c-import.log
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/content-attribute.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/node-document-changes.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-as-a-descendant-expected.txt
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-as-a-descendant.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-content-node-document.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-content.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-body.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-frameset.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-head.html
LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/w3c-import.log

index 964b557..61d286c 100644 (file)
@@ -1,5 +1,101 @@
 2016-04-26  Ryosuke Niwa  <rniwa@webkit.org>
 
+        Update tests in web-platform-tests/html/semantics/scripting-1/
+        https://bugs.webkit.org/show_bug.cgi?id=157026
+
+        Reviewed by Darin Adler.
+
+        Reimported tests under web-platform-tests/html/semantics/scripting-1/ as of d5a4c5bdf8a1837b4fcf50bbd2efd4150ddafa99.
+
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_001-expected.txt: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_001.htm: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_002-expected.txt: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_002.htm: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_003-expected.txt: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_003.htm: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_004-expected.txt: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_004.htm: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_005-expected.txt: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_005.htm: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_006-expected.txt: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_006.htm: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_007-expected.txt: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_007.htm: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_008-expected.txt: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_008.htm: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_009-expected.txt: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_009.htm: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_010-expected.txt: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_010.htm: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_011-expected.txt: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/async_011.htm: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/external-script-utf8.js: Added.
+        (window.getSomeString):
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/external-script-windows1250.js: Added.
+        (window.getSomeString):
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/base-expected.txt: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/base.html: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/test.js: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/w3c-import.log: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/beta: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/beta/test.js: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/beta/w3c-import.log: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-expected.txt: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-with-base-expected.txt: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-with-base.html: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty.html: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/failure-expected.txt: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/failure.html: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/unreachable.js: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/w3c-import.log: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-01-expected.txt: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-01.html: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-02-expected.txt: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-02.html: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed-2.py: Added.
+        (main):
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed-expected.txt: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.html: Added.
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.py: Added.
+        (main):
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/serve-with-content-type.py: Added.
+        (main):
+        * web-platform-tests/html/semantics/scripting-1/the-script-element/w3c-import.log:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/node-document-expected.txt:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/node-document.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/template-child-nodes.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/w3c-import.log:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-serializing-xhtml-documents/outerhtml.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-serializing-xhtml-documents/w3c-import.log:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-css-user-agent-style-sheet/w3c-import.log:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-steps-to-clone-a-node/template-clone-children.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-steps-to-clone-a-node/templates-copy-document-owner.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-steps-to-clone-a-node/w3c-import.log:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-document-type.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-test-001.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-test-002.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/w3c-import.log:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/innerhtml-on-templates/innerhtml.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/innerhtml-on-templates/w3c-import.log:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/resources/w3c-import.log:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/serializing-html-templates/outerhtml.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/serializing-html-templates/w3c-import.log:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/content-attribute.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/node-document-changes.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-as-a-descendant-expected.txt:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-as-a-descendant.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-content-node-document.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-content.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-body.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-frameset.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-head.html:
+        * web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/w3c-import.log:
+
+2016-04-26  Ryosuke Niwa  <rniwa@webkit.org>
+
         ASSERTION FAILED: m_templateInsertionModes.isEmpty() in WebCore::HTMLTreeBuilder::finished
         https://bugs.webkit.org/show_bug.cgi?id=143519
 
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_001-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_001-expected.txt
new file mode 100644 (file)
index 0000000..a8c79c0
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Async property on a dynamically-created script is true by default 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_001.htm b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_001.htm
new file mode 100644 (file)
index 0000000..3701526
--- /dev/null
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>Async property on a dynamically-created script is true by default</title>
+        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+        <meta description="This test checks the Async property on a dynamically-created script element. By default it should be true." />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+        <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-script-async"/>
+        <script src="/resources/testharness.js"></script>
+        <script src="/resources/testharnessreport.js"></script>
+    </head>
+    <body>
+        <div id=log></div>
+        <script type="text/javascript">
+            test(function() {assert_true(document.createElement("script").async)}, "Async property on a dynamically-created script is true by default");
+        </script>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_002-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_002-expected.txt
new file mode 100644 (file)
index 0000000..7741cd6
--- /dev/null
@@ -0,0 +1,4 @@
+
+PASS Test 'async' attribute are reflected in the async property with setAttribute 
+PASS Test 'async' attribute are reflected in the async property with removeAttribute 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_002.htm b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_002.htm
new file mode 100644 (file)
index 0000000..e1850ff
--- /dev/null
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>Changes to the 'async' attribute are reflected in the async property</title>
+        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+        <meta description="This test ensures changes to the 'async' attribute are reflected in the async property." />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+        <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-script-async"/>
+        <script src="/resources/testharness.js"></script>
+        <script src="/resources/testharnessreport.js"></script>
+    </head>
+    <body>
+        <div id=log></div>
+        <script type="text/javascript">
+          test(function() {
+            var s = document.createElement("script");
+            s.async = false;
+            s.setAttribute('async', ''); /*Should change s.async to true*/
+            assert_true(s.async)
+          }, "Test 'async' attribute are reflected in the async property with setAttribute");
+
+          test(function() {
+            var s = document.createElement("script");
+            s.async = false;
+            s.setAttribute('async', ''); /*Should change s.async to true*/
+            s.removeAttribute('async'); /*Should change s.async to false*/
+            assert_false(s.async)
+          }, "Test 'async' attribute are reflected in the async property with removeAttribute");
+        </script>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_003-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_003-expected.txt
new file mode 100644 (file)
index 0000000..02f7654
--- /dev/null
@@ -0,0 +1,4 @@
+21
+
+PASS An async script does not block the parser while downloading 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_003.htm b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_003.htm
new file mode 100644 (file)
index 0000000..b9a854c
--- /dev/null
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>An async script does not block the parser while downloading</title>
+        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+        <meta description="This test ensures an async script does not block the parser while downloading." />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+        <link rel="help" href="https://html.spec.whatwg.org/multipage/#attr-script-async"/>
+        <script src="/resources/testharness.js"></script>
+        <script src="/resources/testharnessreport.js"></script>
+    </head>
+    <body>
+        <div id=log></div>
+        <script type="text/javascript">
+        var t = async_test("An async script does not block the parser while downloading");
+
+        function timeout()
+        {
+            t.step(function(){ assert_equals(document.getElementById("testresult").innerHTML, "21")});
+            t.done();
+        }
+
+        var timer = setTimeout(timeout, 4000);
+
+        function log(text)
+        {
+            var textNode = document.createTextNode(text);
+            document.getElementById("testresult").appendChild(textNode);
+        }
+        </script>
+
+        <span id="testresult"></span>
+
+        <script src="log.py?sec=3&id=1" async></script>
+        <script>
+            log('2');
+        </script>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_004-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_004-expected.txt
new file mode 100644 (file)
index 0000000..f0790bb
--- /dev/null
@@ -0,0 +1,4 @@
+21
+
+PASS async script executes as soon as possible after a download is complete 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_004.htm b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_004.htm
new file mode 100644 (file)
index 0000000..7908b75
--- /dev/null
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>An async script executes as soon as possible after a download is complete</title>
+        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+        <meta description="This test ensures an async script executes as soon as possible after a download is complete." />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+        <link rel="help" href="https://html.spec.whatwg.org/multipage/#attr-script-async"/>
+        <script src="/resources/testharness.js"></script>
+        <script src="/resources/testharnessreport.js"></script>
+    </head>
+    <body>
+        <div id=log></div>
+        <script type="text/javascript">
+        var t = async_test("async script executes as soon as possible after a download is complete");
+
+        function timeout()
+        {
+            t.step(function(){ assert_equals(document.getElementById("testresult").innerHTML, "21")});
+            t.done();
+        }
+
+        var timer = setTimeout(timeout, 4000);
+
+        function log(text)
+        {
+            var textNode = document.createTextNode(text);
+            document.getElementById("testresult").appendChild(textNode);
+        }
+        </script>
+
+        <span id="testresult"></span>
+
+        <script src="log.py?sec=3&id=1" async></script>
+        <script src="log.py?sec=1&id=2" async></script>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_005-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_005-expected.txt
new file mode 100644 (file)
index 0000000..c96a03a
--- /dev/null
@@ -0,0 +1,4 @@
+2134
+
+PASS A script element with both async and defer set should execute asynchronously 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_005.htm b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_005.htm
new file mode 100644 (file)
index 0000000..4519d72
--- /dev/null
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>A script element with both async and defer set should execute asynchronously</title>
+        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+        <meta description="This test ensures a script element with both async and defer set should execute asynchronously." />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+        <link rel="help" href="https://html.spec.whatwg.org/multipage/#attr-script-async"/>
+        <script src="/resources/testharness.js"></script>
+        <script src="/resources/testharnessreport.js"></script>
+    </head>
+    <body>
+ <div id=log></div>
+        <script type="text/javascript">
+        var t = async_test("A script element with both async and defer set should execute asynchronously");
+
+        function timeout()
+        {
+            t.step(function(){ assert_equals(document.getElementById("testresult").innerHTML, "2134")});
+            t.done();
+        }
+
+        var timer = setTimeout(timeout, 5000);
+
+        function log(text)
+        {
+            var textNode = document.createTextNode(text);
+            document.getElementById("testresult").appendChild(textNode);
+        }
+        </script>
+
+        <span id="testresult"></span>
+
+        <script type="text/javascript" src="log.py?sec=1&id=1" defer async></script>
+        <script type="text/javascript">log('2');</script>
+        <script type="text/javascript" src="log.py?sec=3&id=3"></script>
+        <script type="text/javascript">log('4');</script>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_006-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_006-expected.txt
new file mode 100644 (file)
index 0000000..33d71f8
--- /dev/null
@@ -0,0 +1,4 @@
+321
+
+PASS dynamically created external script executes asynchronously 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_006.htm b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_006.htm
new file mode 100644 (file)
index 0000000..86eb998
--- /dev/null
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>A dynamically created external script executes asynchronously</title>
+        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+        <meta description="This test ensures a dynamically created external script executes asynchronously." />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+        <link rel="help" href="https://html.spec.whatwg.org/multipage/#force-async"/>
+        <script src="/resources/testharness.js"></script>
+        <script src="/resources/testharnessreport.js"></script>
+    </head>
+    <body>
+        <div id=log></div>
+        <script type="text/javascript">
+        var t = async_test("dynamically created external script executes asynchronously");
+
+        function timeout()
+        {
+            t.step(function(){ assert_equals(document.getElementById("testresult").innerHTML, "321")});
+            t.done();
+        }
+
+        var timer = setTimeout(timeout, 4000);
+
+        function log(text)
+        {
+            var textNode = document.createTextNode(text);
+            document.getElementById("testresult").appendChild(textNode);
+        }
+        </script>
+
+        <span id="testresult"></span>
+        <script type="text/javascript">
+            var one = document.createElement("script");
+            one.src="log.py?sec=3&id=1";
+            document.head.appendChild(one);
+
+            var two = document.createElement("script");
+            two.src="log.py?sec=1&id=2";
+            document.head.appendChild(two);
+
+            log('3');
+        </script>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_007-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_007-expected.txt
new file mode 100644 (file)
index 0000000..6ffedbf
--- /dev/null
@@ -0,0 +1,4 @@
+312
+
+PASS Ordered async script execution when script.async == false 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_007.htm b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_007.htm
new file mode 100644 (file)
index 0000000..8df0fba
--- /dev/null
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>Ordered async script execution when script.async == false</title>
+        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+        <meta description="This test ensures Ordered async script execution when script.async == false" />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+        <link rel="help" href="https://html.spec.whatwg.org/multipage/#script-processing-src-sync"/>
+        <script src="/resources/testharness.js"></script>
+        <script src="/resources/testharnessreport.js"></script>
+    </head>
+    <body>
+        <div id=log></div>
+        <script type="text/javascript">
+        var t = async_test("Ordered async script execution when script.async == false");
+
+        function timeout()
+        {
+            t.step(function(){ assert_equals(document.getElementById("testresult").innerHTML, "312")});
+            t.done();
+        }
+
+        var timer = setTimeout(timeout, 8000);
+
+        function log(text)
+        {
+            var textNode = document.createTextNode(text);
+            document.getElementById("testresult").appendChild(textNode);
+        }
+        </script>
+
+        <span id="testresult"></span>
+        <script type="text/javascript">
+            var one = document.createElement("script");
+            one.src="log.py?sec=3&id=1";
+            one.async = false;
+            document.head.appendChild(one);
+
+            var two = document.createElement("script");
+            two.src="log.py?sec=1&id=2";
+            two.async = false;
+            document.head.appendChild(two);
+        </script>
+        <script type="text/javascript">
+            log('3');
+        </script>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_008-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_008-expected.txt
new file mode 100644 (file)
index 0000000..cdd5573
--- /dev/null
@@ -0,0 +1,4 @@
+213
+
+PASS Async script element execution delays the window's load event 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_008.htm b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_008.htm
new file mode 100644 (file)
index 0000000..73529cc
--- /dev/null
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>Async script element execution delays the window's load event</title>
+        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+        <meta description="This test ensures an async script element's execution delays the window's load event." />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+        <link rel="help" href="https://html.spec.whatwg.org/multipage/#delay-the-load-event"/>
+        <script src="/resources/testharness.js"></script>
+        <script src="/resources/testharnessreport.js"></script>
+    </head>
+    <body>
+        <div id=log></div>
+        <script type="text/javascript">
+        var t = async_test("Async script element execution delays the window's load event");
+
+        function timeout()
+        {
+            t.step(function(){ assert_equals(document.getElementById("testresult").innerHTML, "213")});
+            t.done();
+        }
+
+        var timer = setTimeout(timeout, 8000);
+
+        function log(text)
+        {
+            var textNode = document.createTextNode(text);
+            document.getElementById("testresult").appendChild(textNode);
+        }
+        </script>
+
+        <span id="testresult"></span>
+        <script type="text/javascript">
+            window.addEventListener("load", function() {
+                log("3");
+                timeout();
+            }, false);
+
+            var s1 = document.createElement("script");
+            s1.src = "log.py?sec=2&id=1";
+            document.head.appendChild(s1);
+        </script>
+        <script type="text/javascript">
+            log('2');
+        </script>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_009-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_009-expected.txt
new file mode 100644 (file)
index 0000000..0a0ca45
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Document.write() silently fails from an Async script 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_009.htm b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_009.htm
new file mode 100644 (file)
index 0000000..501edda
--- /dev/null
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>Document.write() silently fails from an Async script</title>
+        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+        <meta description="This test ensures Document.write() silently fails from an Async script." />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+        <link rel="help" href="https://html.spec.whatwg.org/multipage/#execute-the-script-block"/>
+        <script src="/resources/testharness.js"></script>
+        <script src="/resources/testharnessreport.js"></script>
+        <script type="text/javascript">
+        var t = async_test("Document.write() silently fails from an Async script");
+
+        var log = t.step_func(function() {
+          document.write("<span id='writtenText'/>");
+          assert_equals(null, document.getElementById('writtenText'));
+          t.done();
+        });
+        </script>
+    </head>
+    <body>
+        <div id=log></div>
+        <script type="text/javascript" src="log.py?sec=1&id=1" async></script>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_010-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_010-expected.txt
new file mode 100644 (file)
index 0000000..cbeb926
--- /dev/null
@@ -0,0 +1,4 @@
+4123
+
+PASS Removing an async script before execution 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_010.htm b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_010.htm
new file mode 100644 (file)
index 0000000..959a8aa
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>Removing an async script before execution</title>
+        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+        <meta description="This test ensures that an async script still executes if it is removed from a markup before the download is complete. The other two scripts that come after it in insertion order should execute as well." />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+        <link rel="help" href="https://html.spec.whatwg.org/multipage/#execute-the-script-block"/>
+        <script src="/resources/testharness.js"></script>
+        <script src="/resources/testharnessreport.js"></script>
+        <script type="text/javascript">
+        var t = async_test("Removing an async script before execution");
+
+        function timeout()
+        {
+            t.step(function(){ assert_equals(document.getElementById("testresult").innerHTML, "4123")});
+            t.done();
+        }
+
+        var timer = setTimeout(timeout, 8000);
+
+        function log(text)
+        {
+            var textNode = document.createTextNode(text);
+            document.getElementById("testresult").appendChild(textNode);
+        }
+        </script>
+    </head>
+    <body>
+        <div id=log></div>
+        <span id="testresult"></span>
+        <script type="text/javascript">
+            var s1 = document.createElement("script");
+            s1.src="log.py?sec=2&id=1";
+            s1.async = false;
+            document.body.appendChild(s1);
+
+            var s2 = document.createElement("script");
+            s2.src="log.py?sec=1&id=2";
+            s2.async = false;
+            document.body.appendChild(s2);
+
+            var s3 = document.createElement("script");
+            s3.id = "s3";
+            s3.src="log.py?sec=0&id=3";
+            s3.async = false;
+            document.body.appendChild(s3);
+
+            //Remove s1 (Should still execute)
+            document.body.removeChild(s1);
+        </script>
+        <script type="text/javascript">log('4');</script>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_011-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_011-expected.txt
new file mode 100644 (file)
index 0000000..9a7a31c
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS An empty parser-inserted script element should return async=true 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_011.htm b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_011.htm
new file mode 100644 (file)
index 0000000..d80e463
--- /dev/null
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>An empty parser-inserted script element should return async=true</title>
+        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+        <meta description="An empty parser-inserted script element should return async=true." />
+        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+        <link rel="help" href="https://html.spec.whatwg.org/multipage/#prepare-a-script"/>
+        <script src="/resources/testharness.js"></script>
+        <script src="/resources/testharnessreport.js"></script>
+    </head>
+    <body>
+        <div id=log></div>
+        <script></script>
+        <script type="text/javascript">
+            test(function() {   assert_true(document.getElementsByTagName("script")[2].async)}, "An empty parser-inserted script element should return async=true");
+        </script>
+    </body>
+</html>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/external-script-utf8.js b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/external-script-utf8.js
new file mode 100644 (file)
index 0000000..eb442c9
--- /dev/null
@@ -0,0 +1,5 @@
+(function() {
+  window.getSomeString = function() {
+    return "śćążź"; //<- these are five Polish letters, similar to scazz. It can be read correctly only with windows 1250 encoding.
+  };
+})();
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/external-script-windows1250.js b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/external-script-windows1250.js
new file mode 100644 (file)
index 0000000..50de693
--- /dev/null
@@ -0,0 +1,5 @@
+(function() {
+  window.getSomeString = function() {
+    return "\9c湿\9f"; //<- these are five Polish letters, similar to scazz. It can be read correctly only with windows 1250 encoding.
+  };
+})();
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/base-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/base-expected.txt
new file mode 100644 (file)
index 0000000..aa1c95e
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Script src with a base URL 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/base.html b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/base.html
new file mode 100644 (file)
index 0000000..dc0fa9d
--- /dev/null
@@ -0,0 +1,15 @@
+<!doctype html>
+<meta charset=utf-8>
+<title>Script src with a base URL</title>
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<base href=../beta/>
+<div id=log></div>
+<script>
+function do_test(path) {
+  test(function() {
+    assert_equals(path, "beta");
+  });
+}
+</script>
+<script src=test.js></script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/test.js b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/test.js
new file mode 100644 (file)
index 0000000..3cbbb12
--- /dev/null
@@ -0,0 +1 @@
+do_test("alpha");
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/w3c-import.log
new file mode 100644 (file)
index 0000000..4890893
--- /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/semantics/scripting-1/the-script-element/fetch-src/alpha/base.html
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/test.js
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/beta/test.js b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/beta/test.js
new file mode 100644 (file)
index 0000000..4ce0f53
--- /dev/null
@@ -0,0 +1 @@
+do_test("beta");
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/beta/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/beta/w3c-import.log
new file mode 100644 (file)
index 0000000..ab56319
--- /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/semantics/scripting-1/the-script-element/fetch-src/beta/test.js
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-expected.txt
new file mode 100644 (file)
index 0000000..ca8d17a
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Script src with an empty URL 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-with-base-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-with-base-expected.txt
new file mode 100644 (file)
index 0000000..ca8d17a
--- /dev/null
@@ -0,0 +1,3 @@
+
+PASS Script src with an empty URL 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-with-base.html b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-with-base.html
new file mode 100644 (file)
index 0000000..edc2c3d
--- /dev/null
@@ -0,0 +1,27 @@
+<!doctype html>
+<meta charset=utf-8>
+<title>Script src with an empty URL</title>
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<base href=unreachable.js>
+<div id=log></div>
+<script>
+async_test(function(t) {
+  window.unreachable = this.unreached_func("Should not load unreachable.js");
+  var queued = false;
+  var script = document.createElement("script");
+  script.onerror = this.step_func_done(function(ev) {
+    assert_equals(ev.type, "error");
+    assert_false(ev.bubbles, "bubbles");
+    assert_false(ev.cancelable, "cancelable");
+    assert_true(ev.isTrusted, "isTrusted");
+    assert_equals(ev.target, script);
+    assert_true(ev instanceof Event, "instanceof Event");
+    assert_class_string(ev, "Event");
+    assert_true(queued, "event should not be dispatched synchronously");
+  });
+  script.setAttribute("src", "");
+  document.body.appendChild(script);
+  queued = true;
+});
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty.html b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty.html
new file mode 100644 (file)
index 0000000..d127f1e
--- /dev/null
@@ -0,0 +1,32 @@
+<!doctype html>
+<meta charset=utf-8>
+<title>Script src with an empty URL</title>
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<div id=log></div>
+<script>
+// For a better error message in case the UA tries to load "" (which resolves
+// to this document).
+setup({
+  "allow_uncaught_exception": true,
+});
+async_test(function(t) {
+  window.onerror = this.unreached_func("Should not get an error reported to " +
+                                       "the window before the script");
+  var queued = false;
+  var script = document.createElement("script");
+  script.onerror = this.step_func_done(function(ev) {
+    assert_equals(ev.type, "error");
+    assert_false(ev.bubbles, "bubbles");
+    assert_false(ev.cancelable, "cancelable");
+    assert_true(ev.isTrusted, "isTrusted");
+    assert_equals(ev.target, script);
+    assert_true(ev instanceof Event, "instanceof Event");
+    assert_class_string(ev, "Event");
+    assert_true(queued, "event should not be dispatched synchronously");
+  });
+  script.setAttribute("src", "");
+  document.body.appendChild(script);
+  queued = true;
+});
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/failure-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/failure-expected.txt
new file mode 100644 (file)
index 0000000..3c0dbb8
--- /dev/null
@@ -0,0 +1,4 @@
+Blocked access to external URL http://[]/
+
+PASS Script src with an invalid URL 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/failure.html b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/failure.html
new file mode 100644 (file)
index 0000000..b49e517
--- /dev/null
@@ -0,0 +1,25 @@
+<!doctype html>
+<meta charset=utf-8>
+<title>Script src with an invalid URL</title>
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<div id=log></div>
+<script>
+async_test(function(t) {
+  var queued = false;
+  var script = document.createElement("script");
+  script.onerror = this.step_func_done(function(ev) {
+    assert_equals(ev.type, "error");
+    assert_false(ev.bubbles, "bubbles");
+    assert_false(ev.cancelable, "cancelable");
+    assert_true(ev.isTrusted, "isTrusted");
+    assert_equals(ev.target, script);
+    assert_true(ev instanceof Event, "instanceof Event");
+    assert_class_string(ev, "Event");
+    assert_true(queued, "event should not be dispatched synchronously");
+  });
+  script.setAttribute("src", "//[]");
+  document.body.appendChild(script);
+  queued = true;
+});
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/unreachable.js b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/unreachable.js
new file mode 100644 (file)
index 0000000..ca7fdba
--- /dev/null
@@ -0,0 +1 @@
+unreachable();
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/w3c-import.log b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/w3c-import.log
new file mode 100644 (file)
index 0000000..b9067a9
--- /dev/null
@@ -0,0 +1,21 @@
+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/semantics/scripting-1/the-script-element/fetch-src/empty-with-base.html
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/empty.html
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/failure.html
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/unreachable.js
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-01-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-01-expected.txt
new file mode 100644 (file)
index 0000000..cc4a5b0
--- /dev/null
@@ -0,0 +1,8 @@
+
+PASS Script @type: unknown parameters 
+PASS Script @type: unknown parameters 1 
+PASS Script @type: unknown parameters 2 
+PASS Script @type: unknown parameters 3 
+PASS Script @type: unknown parameters 4 
+PASS Script @type: unknown parameters 5 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-01.html b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-01.html
new file mode 100644 (file)
index 0000000..cff386e
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>
+<head>
+  <meta charset="utf-8">
+  <title>Script @type: unknown parameters</title>
+  <link rel="author" title="askalski" href="github.com/askalski">
+  <link rel="help" href="https://html.spec.whatwg.org/multipage/#scriptingLanguages">
+  <script src="/resources/testharness.js"></script>
+  <script src="/resources/testharnessreport.js"></script>
+  <div id="log"></div>
+
+  <!--  "Step1" tests  -->
+  <!--  charset is set incorrectly via Content Type "text/javascript;charset=utf-8" in response
+      which has priority before a correct setting in "charset" attribute of script tag.
+    -->
+  <script type="text/javascript"
+    src="serve-with-content-type.py?fn=external-script-windows1250.js&ct=text/javascript%3Bcharset=utf-8" charset="windows-1250">
+  </script>
+  <script>
+  test(function() {
+    //these strings should not match, since the file charset is set incorrectly
+    assert_not_equals(window.getSomeString(), "śćążź");
+  });
+  </script>
+  <!--  charset is set correctly via Content Type "text/javascript;charset=utf-8" in response
+      which has priority before a incorrect setting in "charset" attribute of script tag.
+    -->
+
+  <script type="text/javascript"
+    src="serve-with-content-type.py?fn=external-script-windows1250.js&ct=text/javascript%3Bcharset=windows-1250" charset="utf-8">
+  </script>
+  <script>
+  //the charset is set correctly via Content Type "text/javascript;charset=windows-1250" in respones
+  test(function() {
+    assert_equals(window.getSomeString(), "śćążź");
+  });
+  </script>
+
+  <!--  end of step1 tests, now step2 tests  -->
+  <!--  in this case, the response's Content Type does not bring charset information.
+  Second step takes block character encoding if available. -->
+  <script type="text/javascript"
+    src="serve-with-content-type.py?fn=external-script-windows1250.js&ct=text/javascript" charset="utf-8">
+  </script>
+  <script>
+  test(function() {
+    //these strings should not match, since the file charset is set incorrectly in "charset" tag of <script> above
+    assert_not_equals(window.getSomeString(), "śćążź");
+  });
+  </script>
+  <!--  charset is set correctly via Content Type "text/javascript;charset=utf-8" in response
+      which has priority before a incorrect setting in "charset" attribute of script tag.
+    -->
+
+  <script type="text/javascript"
+    src="serve-with-content-type.py?fn=external-script-windows1250.js&ct=text/javascript" charset="windows-1250">
+  </script>
+  <script>
+  //the charset is set correctly via content attribute in <script> above
+  test(function() {
+    assert_equals(window.getSomeString(), "śćążź");
+  });
+  </script>
+
+  <!--  end of step2 tests, now step3 tests  -->
+  <!--  in this case, neither response's Content Type nor charset attribute bring correct charset information.
+  Third step takes this document's character encoding (declared correctly as UTF-8). -->
+  <script type="text/javascript"
+    src="serve-with-content-type.py?fn=external-script-windows1250.js&ct=text/javascript">
+  </script>
+  <script>
+  test(function() {
+    //these strings should not match, since the tested file is in windows-1250, and document is utf-8
+    assert_not_equals(window.getSomeString(), "śćążź");
+  });
+  </script>
+
+  <script type="text/javascript"
+    src="serve-with-content-type.py?fn=external-script-utf8.js&ct=text/javascript">
+  </script>
+  <script>
+  //these strings should match, both document and tested file are utf-8
+  test(function() {
+    assert_equals(window.getSomeString(), "śćążź");
+  });
+  </script>
+
+  <!-- the last portion of tests (step4) are in file script-charset-02.html
+
+</head>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-02-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-02-expected.txt
new file mode 100644 (file)
index 0000000..cf0afc5
--- /dev/null
@@ -0,0 +1,4 @@
+
+FAIL Script @type: unknown parameters assert_not_equals: got disallowed value 5
+FAIL Script @type: unknown parameters 1 assert_equals: expected 5 but got 10
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-02.html b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-02.html
new file mode 100644 (file)
index 0000000..13d6158
--- /dev/null
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<head>
+  <!--  TODO:
+  askalski: while this test pass, it does not test anything now.
+  It should test, whether with no document.charset set in any way, the
+  external scripts will get decoded using utf-8 as fallback character encoding.
+  It seems like utf-8 is also a fallback encoding to html (my guess), so
+  the part of the code I was attempting to test is never reached.
+   -->
+  <title>Script @type: unknown parameters</title>
+  <link rel="author" title="askalski" href="github.com/askalski">
+  <link rel="help" href="https://html.spec.whatwg.org/multipage/#scriptingLanguages">
+  <script src="/resources/testharness.js"></script>
+  <script src="/resources/testharnessreport.js"></script>
+  <div id="log"></div>
+
+  <!--  test of step4, which is taking utf-8 as fallback  -->
+  <!--  in this case, neither response's Content Type nor charset attribute bring correct charset information.
+  Furthermore, document's encoding is not set. -->
+  <script type="text/javascript"
+    src="serve-with-content-type.py?fn=external-script-windows1250.js&ct=text/javascript">
+  </script>
+  <script>
+  test(function() {
+    //these strings should not match, since the tested file is in windows-1250, and fallback is defined as utf-8
+    assert_not_equals(window.getSomeString().length, 5);
+  });
+  </script>
+
+  <script type="text/javascript"
+    src="serve-with-content-type.py?fn=external-script-utf8.js&ct=text/javascript">
+  </script>
+  <script>
+  //these strings should match, since fallback utf-8 is the correct setting.
+  test(function() {
+    assert_equals(window.getSomeString().length, 5);
+  });
+  </script>
+
+</head>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed-2.py b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed-2.py
new file mode 100644 (file)
index 0000000..53caed7
--- /dev/null
@@ -0,0 +1,4 @@
+def main(request, response):
+    headers = [("Content-Type", "text/javascript")]
+    body = "test2_token = \"script executed\";"
+    return 200, headers, body
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed-expected.txt
new file mode 100644 (file)
index 0000000..6685c03
--- /dev/null
@@ -0,0 +1,4 @@
+
+PASS Script that 404 
+PASS Script that does not 404 
+
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.html b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.html
new file mode 100644 (file)
index 0000000..44ad30b
--- /dev/null
@@ -0,0 +1,19 @@
+<!doctype html>
+<meta charset="utf-8">
+<title></title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>var test1_token = "script not executed";</script>
+<script src="script-not-found-not-executed.py"></script>
+<script>
+test(function(){
+    assert_equals(test1_token, "script not executed");
+}, "Script that 404");
+</script>
+<script>var test2_token = "script not executed";</script>
+<script src="script-not-found-not-executed-2.py"></script>
+<script>
+test(function(){
+    assert_equals(test2_token, "script executed");
+}, "Script that does not 404");
+</script>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.py b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.py
new file mode 100644 (file)
index 0000000..7722bd3
--- /dev/null
@@ -0,0 +1,4 @@
+def main(request, response):
+    headers = [("Content-Type", "text/javascript")]
+    body = "test1_token = \"script executed\";"
+    return 404, headers, body
diff --git a/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/serve-with-content-type.py b/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/serve-with-content-type.py
new file mode 100644 (file)
index 0000000..7cfe6f4
--- /dev/null
@@ -0,0 +1,15 @@
+import os
+
+def main(request, response):
+    directory = os.path.dirname(__file__)
+
+    try:
+        file_name = request.GET.first("fn")
+        content_type = request.GET.first("ct")
+        with open(os.path.join(directory, file_name), "rb") as fh:
+            content = fh.read()
+
+        response.headers.set("Content-Type", content_type)
+        response.content = content
+    except:
+        response.set_error(400, "Not enough parameters or file not found")
index b01c6e6..04bd16a 100644 (file)
@@ -1,12 +1,12 @@
 The tests in this directory were imported from the W3C repository.
-Do NOT modify these tests directly in Webkit.
+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
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
 
-Do NOT modify or remove this file
+Do NOT modify or remove this file.
 
 ------------------------------------------------------------------------
 Properties requiring vendor prefixes:
@@ -15,15 +15,34 @@ Property values requiring vendor prefixes:
 None
 ------------------------------------------------------------------------
 List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_001.htm
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_002.htm
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_003.htm
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_004.htm
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_005.htm
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_006.htm
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_007.htm
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_008.htm
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_009.htm
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_010.htm
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/async_011.htm
 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/contains.json
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/external-script-utf8.js
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/external-script-windows1250.js
 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/log.py
 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-before-after-events.html
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-01.html
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-charset-02.html
 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-for-event-xhtml.xhtml
 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-for-event.html
 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-language-type.html
 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-languages-01.html
 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-languages-02.html
 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-noembed-noframes-iframe.xhtml
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed-2.py
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.html
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.py
 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-onload-string.html
 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-text-xhtml.xhtml
 /LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/script-text.html
+/LayoutTests/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/serve-with-content-type.py
index 9b09b07..e8dd697 100644 (file)
@@ -1,5 +1,5 @@
 
-FAIL Parsing XHTML: Node's node document must be set to that of the element to which it will be appended. Test empty template assert_equals: Wrong template content owner document expected Document node with 2 children but got Document node with 0 children
+PASS Parsing XHTML: Node's node document must be set to that of the element to which it will be appended. Test empty template 
 PASS Parsing XHTML: Node's node document must be set to that of the element to which it will be appended. Test not empty template 
 PASS Parsing XHTML: Node's node document must be set to that of the element to which it will be appended. Test nested templates 
 PASS Parsing XHTML: Node's node document must be set to that of the element to which it will be appended. Test loading XHTML document from a file 
index 88d3b22..8676319 100644 (file)
@@ -9,7 +9,6 @@
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <script src='/html/resources/common.js'></script>
-<link rel="stylesheet" href="/resources/testharness.css">
 </head>
 <body>
 <div id="log"></div>
@@ -32,8 +31,11 @@ test(function() {
 
     assert_equals(template.ownerDocument, doc.body.ownerDocument,
             'Wrong template node owner document');
-    assert_equals(template.content.ownerDocument, doc,
-            'Wrong template content owner document');
+    var ownerDoc = template.content.ownerDocument;
+    assert_not_equals(ownerDoc, doc, 'Wrong template content owner document');
+    assert_not_equals(ownerDoc, document, 'Wrong template content owner document');
+    assert_equals(ownerDoc.defaultView, null,
+            'Template content owner document should not have a browsing context');
 
 }, 'Parsing XHTML: Node\'s node document must be set to that of the element '
     + 'to which it will be appended. Test empty template');
index e0ac320..784b71a 100644 (file)
@@ -1,12 +1,12 @@
 The tests in this directory were imported from the W3C repository.
-Do NOT modify these tests directly in Webkit.
+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
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
 
-Do NOT modify or remove this file
+Do NOT modify or remove this file.
 
 ------------------------------------------------------------------------
 Properties requiring vendor prefixes:
index 9cae1e8..835952c 100644 (file)
@@ -1,12 +1,12 @@
 The tests in this directory were imported from the W3C repository.
-Do NOT modify these tests directly in Webkit.
+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
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
 
-Do NOT modify or remove this file
+Do NOT modify or remove this file.
 
 ------------------------------------------------------------------------
 Properties requiring vendor prefixes:
index 630e48a..fd94208 100644 (file)
@@ -1,12 +1,12 @@
 The tests in this directory were imported from the W3C repository.
-Do NOT modify these tests directly in Webkit.
+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
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
 
-Do NOT modify or remove this file
+Do NOT modify or remove this file.
 
 ------------------------------------------------------------------------
 Properties requiring vendor prefixes:
index 3de42b2..6e4dfe5 100644 (file)
@@ -1,12 +1,12 @@
 The tests in this directory were imported from the W3C repository.
-Do NOT modify these tests directly in Webkit.
+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
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
 
-Do NOT modify or remove this file
+Do NOT modify or remove this file.
 
 ------------------------------------------------------------------------
 Properties requiring vendor prefixes:
index 47470d1..7388eac 100644 (file)
@@ -1,12 +1,12 @@
 The tests in this directory were imported from the W3C repository.
-Do NOT modify these tests directly in Webkit.
+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
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
 
-Do NOT modify or remove this file
+Do NOT modify or remove this file.
 
 ------------------------------------------------------------------------
 Properties requiring vendor prefixes:
index bcae72c..bd2daa0 100644 (file)
@@ -1,12 +1,12 @@
 The tests in this directory were imported from the W3C repository.
-Do NOT modify these tests directly in Webkit.
+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
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
 
-Do NOT modify or remove this file
+Do NOT modify or remove this file.
 
 ------------------------------------------------------------------------
 Properties requiring vendor prefixes:
index b9a9d73..7da4fdb 100644 (file)
@@ -1,12 +1,12 @@
 The tests in this directory were imported from the W3C repository.
-Do NOT modify these tests directly in Webkit.
+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
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
 
-Do NOT modify or remove this file
+Do NOT modify or remove this file.
 
 ------------------------------------------------------------------------
 Properties requiring vendor prefixes:
index 2ff7bcd..84b1c6a 100644 (file)
@@ -1,12 +1,12 @@
 The tests in this directory were imported from the W3C repository.
-Do NOT modify these tests directly in Webkit.
+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
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
 
-Do NOT modify or remove this file
+Do NOT modify or remove this file.
 
 ------------------------------------------------------------------------
 Properties requiring vendor prefixes:
index 9dff84d..c54efe1 100644 (file)
@@ -1,10 +1,10 @@
 
 PASS Template element as a descendant of the BODY element. Template element is created by innerHTML 
 PASS Template element as a descendant of the HEAD element. Template element is created by innerHTML 
-FAIL Template element as a descendant of the FRAMESET element. Template element is created by innerHTML assert_not_equals: Template element should be a descendant of the FRAMESET element got disallowed value null
+PASS Template element as a descendant of the FRAMESET element. Template element is created by innerHTML 
 PASS Template element as an indirect descendant of the BODY element. Template element is created by innerHTML 
 PASS Template element as an indirect descendant of the HEAD element. Template element is created by innerHTML 
-FAIL Template element as an indirect descendant of the FRAMESET element. Template element is created by innerHTML assert_not_equals: Template element should be a descendant of the FRAMESET element got disallowed value null
+PASS Template element as a descendant of the FRAMESET element. Template element is created by innerHTML 
 PASS Template element as a descendant of the BODY element. Template element is appended by appendChild() 
 PASS Template element as a descendant of the HEAD element. Template element is appended by appendChild() 
 PASS Template element as a descendant of the FRAMESET element. Template element is  appended by appendChild() 
index f540450..6a6482d 100644 (file)
@@ -9,7 +9,6 @@
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <script src='/html/resources/common.js'></script>
-<link rel="stylesheet" href="/resources/testharness.css">
 </head>
 <body>
 <div id="log"></div>
@@ -22,6 +21,13 @@ function templateIsAChild(element) {
         'Template element should be a descendant of the ' + element.tagName + ' element');
 }
 
+function templateIsDisallowedAsAChild(element) {
+    element.innerHTML = '<template>some text</template>';
+
+    assert_equals(element.querySelector('template'), null,
+        'Template element should not be allowed as a descendant of the ' + element.tagName + ' element');
+}
+
 function templateIsAnIndirectChild(element) {
     element.innerHTML = '<div><template>some text</template></div>';
 
@@ -29,6 +35,13 @@ function templateIsAnIndirectChild(element) {
         'Template element should be a descendant of the ' + element.tagName + ' element');
 }
 
+function templateIsDisallowedAsAnIndirectChild(element) {
+    element.innerHTML = '<div><template>some text</template></div>';
+
+    assert_equals(element.querySelector('template'), null,
+        'Template element should not be allowed as indirect descendant of the ' + element.tagName + ' element');
+}
+
 function templateIsAnAppendedChild(doc, element) {
     var template = doc.createElement('template');
 
@@ -58,13 +71,16 @@ var parameters = [['Template element as a descendant of the BODY element. ' +
                   ['Template element as a descendant of the HEAD element. ' +
                    'Template element is created by innerHTML',
                    doc.head],
-                   ['Template element as a descendant of the FRAMESET element. ' +
-                    'Template element is created by innerHTML',
-                    frameset]
                    ];
 generate_tests(templateIsAChild, parameters,
-        'Template element as a descendant of the HEAD, BODY and FRAMESET elements');
+        'Template element as a descendant of the HEAD and BODY elements');
 
+parameters = [['Template element as a descendant of the FRAMESET element. ' +
+               'Template element is created by innerHTML',
+               frameset],
+               ];
+generate_tests(templateIsDisallowedAsAChild, parameters,
+    'Template element should be disallowed as a descendant of the FRAMESET elements');
 
 
 parameters = [['Template element as an indirect descendant of the BODY element. ' +
@@ -73,13 +89,17 @@ parameters = [['Template element as an indirect descendant of the BODY element.
               ['Template element as an indirect descendant of the HEAD element. ' +
                'Template element is created by innerHTML',
                doc.head],
-               ['Template element as an indirect descendant of the FRAMESET element. ' +
-                'Template element is created by innerHTML',
-                frameset]
                ];
 generate_tests(templateIsAnIndirectChild, parameters,
         'Template element as an indirect descendant of the HEAD, BODY and FRAMESET elements');
 
+parameters = [['Template element as a descendant of the FRAMESET element. ' +
+               'Template element is created by innerHTML',
+               frameset],
+               ];
+generate_tests(templateIsDisallowedAsAnIndirectChild, parameters,
+    'Template element should be disallowed as an indirect descendant of the FRAMESET elements');
+
 
 
 parameters = [['Template element as a descendant of the BODY element. ' +
index 0c616a9..671ad8a 100644 (file)
@@ -1,12 +1,12 @@
 The tests in this directory were imported from the W3C repository.
-Do NOT modify these tests directly in Webkit.
+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
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
 
-Do NOT modify or remove this file
+Do NOT modify or remove this file.
 
 ------------------------------------------------------------------------
 Properties requiring vendor prefixes: