From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../scripting-1/the-script-element/.gitkeep | 0 .../scripting-1/the-script-element/async_001.htm | 18 ++++ .../scripting-1/the-script-element/async_002.htm | 31 +++++++ .../scripting-1/the-script-element/async_003.htm | 39 +++++++++ .../scripting-1/the-script-element/async_004.htm | 37 ++++++++ .../scripting-1/the-script-element/async_005.htm | 39 +++++++++ .../scripting-1/the-script-element/async_006.htm | 45 ++++++++++ .../scripting-1/the-script-element/async_007.htm | 48 +++++++++++ .../scripting-1/the-script-element/async_008.htm | 47 +++++++++++ .../scripting-1/the-script-element/async_009.htm | 25 ++++++ .../scripting-1/the-script-element/async_010.htm | 54 ++++++++++++ .../scripting-1/the-script-element/async_011.htm | 19 +++++ .../scripting-1/the-script-element/contains.json | 18 ++++ .../the-script-element/external-script-utf8.js | 5 ++ .../external-script-windows1250.js | 5 ++ .../the-script-element/fetch-src/alpha/base.html | 15 ++++ .../the-script-element/fetch-src/alpha/test.js | 1 + .../the-script-element/fetch-src/beta/test.js | 1 + .../fetch-src/empty-with-base.html | 27 ++++++ .../the-script-element/fetch-src/empty.html | 32 +++++++ .../the-script-element/fetch-src/failure.html | 25 ++++++ .../the-script-element/fetch-src/unreachable.js | 1 + .../scripting-1/the-script-element/historical.html | 53 ++++++++++++ .../scripting-1/the-script-element/load-event.html | 24 ++++++ .../scripting-1/the-script-element/log.py | 13 +++ .../the-script-element/resources/cross-origin.py | 10 +++ .../the-script-element/script-charset-01.html | 89 ++++++++++++++++++++ .../the-script-element/script-charset-02.html | 40 +++++++++ .../the-script-element/script-charset-03.html | 20 +++++ .../script-crossorigin-network.html | 49 +++++++++++ .../the-script-element/script-crossorigin.html | 39 +++++++++ .../script-for-event-xhtml.xhtml | 22 +++++ .../the-script-element/script-for-event.html | 93 ++++++++++++++++++++ .../the-script-element/script-language-type.html | 18 ++++ .../the-script-element/script-languages-01.html | 24 ++++++ .../the-script-element/script-languages-02.html | 98 ++++++++++++++++++++++ .../script-noembed-noframes-iframe.xhtml | 36 ++++++++ .../script-not-executed-after-shutdown-child.html | 12 +++ .../script-not-executed-after-shutdown.html | 18 ++++ .../script-not-executed-after-shutdown.js | 1 + .../script-not-found-not-executed-2.py | 4 + .../script-not-found-not-executed.html | 19 +++++ .../script-not-found-not-executed.py | 4 + .../script-onerror-insertion-point-1.html | 12 +++ .../script-onerror-insertion-point-2.html | 13 +++ .../script-onload-insertion-point.html | 12 +++ .../the-script-element/script-onload-string.html | 17 ++++ .../the-script-element/script-text-xhtml.xhtml | 28 +++++++ .../the-script-element/script-text.html | 72 ++++++++++++++++ .../the-script-element/scripting-enabled.html | 16 ++++ .../the-script-element/serve-with-content-type.py | 15 ++++ .../script-onerror-insertion-point-1-helper.html | 2 + .../script-onerror-insertion-point-2-helper.html | 2 + .../script-onload-insertion-point-helper.html | 2 + .../script-onload-insertion-point-helper.js | 1 + 55 files changed, 1410 insertions(+) create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/.gitkeep create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_001.htm create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_002.htm create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_003.htm create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_004.htm create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_005.htm create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_006.htm create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_007.htm create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_008.htm create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_009.htm create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_010.htm create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_011.htm create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/contains.json create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/external-script-utf8.js create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/external-script-windows1250.js create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/base.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/test.js create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/beta/test.js create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-with-base.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/empty.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/failure.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/unreachable.js create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/historical.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/load-event.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/log.py create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/resources/cross-origin.py create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-charset-01.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-charset-02.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-charset-03.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-crossorigin-network.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-crossorigin.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-for-event-xhtml.xhtml create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-for-event.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-language-type.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-languages-01.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-languages-02.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-noembed-noframes-iframe.xhtml create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-executed-after-shutdown-child.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-executed-after-shutdown.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-executed-after-shutdown.js create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed-2.py create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.py create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-1.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-2.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-onload-insertion-point.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-onload-string.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-text-xhtml.xhtml create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-text.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/scripting-enabled.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/serve-with-content-type.py create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/support/script-onerror-insertion-point-1-helper.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/support/script-onerror-insertion-point-2-helper.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/support/script-onload-insertion-point-helper.html create mode 100644 testing/web-platform/tests/html/semantics/scripting-1/the-script-element/support/script-onload-insertion-point-helper.js (limited to 'testing/web-platform/tests/html/semantics/scripting-1/the-script-element') diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/.gitkeep b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_001.htm b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_001.htm new file mode 100644 index 000000000..370152683 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_001.htm @@ -0,0 +1,18 @@ + + + + Async property on a dynamically-created script is true by default + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_002.htm b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_002.htm new file mode 100644 index 000000000..e1850ff6e --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_002.htm @@ -0,0 +1,31 @@ + + + + Changes to the 'async' attribute are reflected in the async property + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_003.htm b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_003.htm new file mode 100644 index 000000000..b9a854c6b --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_003.htm @@ -0,0 +1,39 @@ + + + + An async script does not block the parser while downloading + + + + + + + + +
+ + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_004.htm b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_004.htm new file mode 100644 index 000000000..7908b757a --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_004.htm @@ -0,0 +1,37 @@ + + + + An async script executes as soon as possible after a download is complete + + + + + + + + +
+ + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_005.htm b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_005.htm new file mode 100644 index 000000000..4519d7234 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_005.htm @@ -0,0 +1,39 @@ + + + + A script element with both async and defer set should execute asynchronously + + + + + + + + +
+ + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_006.htm b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_006.htm new file mode 100644 index 000000000..86eb99897 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_006.htm @@ -0,0 +1,45 @@ + + + + A dynamically created external script executes asynchronously + + + + + + + + +
+ + + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_007.htm b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_007.htm new file mode 100644 index 000000000..8df0fba37 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_007.htm @@ -0,0 +1,48 @@ + + + + Ordered async script execution when script.async == false + + + + + + + + +
+ + + + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_008.htm b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_008.htm new file mode 100644 index 000000000..73529cc31 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_008.htm @@ -0,0 +1,47 @@ + + + + Async script element execution delays the window's load event + + + + + + + + +
+ + + + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_009.htm b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_009.htm new file mode 100644 index 000000000..501edda06 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_009.htm @@ -0,0 +1,25 @@ + + + + Document.write() silently fails from an Async script + + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_010.htm b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_010.htm new file mode 100644 index 000000000..959a8aa27 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_010.htm @@ -0,0 +1,54 @@ + + + + Removing an async script before execution + + + + + + + + + +
+ + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_011.htm b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_011.htm new file mode 100644 index 000000000..d80e463ce --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/async_011.htm @@ -0,0 +1,19 @@ + + + + An empty parser-inserted script element should return async=true + + + + + + + + +
+ + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/contains.json b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/contains.json new file mode 100644 index 000000000..e31ce4003 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/contains.json @@ -0,0 +1,18 @@ +[ + { + "id": "scriptinglanguages", + "original_id": "scriptingLanguages" + }, + { + "id": "restrictions-for-contents-of-script-elements", + "original_id": "restrictions-for-contents-of-script-elements" + }, + { + "id": "inline-documentation-for-external-scripts", + "original_id": "inline-documentation-for-external-scripts" + }, + { + "id": "scripttagxslt", + "original_id": "scriptTagXSLT" + } +] \ No newline at end of file diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/external-script-utf8.js b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/external-script-utf8.js new file mode 100644 index 000000000..eb442c97b --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/external-script-utf8.js @@ -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/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/external-script-windows1250.js b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/external-script-windows1250.js new file mode 100644 index 000000000..50de6932b --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/external-script-windows1250.js @@ -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/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/base.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/base.html new file mode 100644 index 000000000..dc0fa9dab --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/base.html @@ -0,0 +1,15 @@ + + +Script src with a base URL + + + +
+ + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/test.js b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/test.js new file mode 100644 index 000000000..3cbbb12e2 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/alpha/test.js @@ -0,0 +1 @@ +do_test("alpha"); diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/beta/test.js b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/beta/test.js new file mode 100644 index 000000000..4ce0f5338 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/beta/test.js @@ -0,0 +1 @@ +do_test("beta"); diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-with-base.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-with-base.html new file mode 100644 index 000000000..edc2c3d6f --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/empty-with-base.html @@ -0,0 +1,27 @@ + + +Script src with an empty URL + + + +
+ diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/empty.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/empty.html new file mode 100644 index 000000000..d127f1eb3 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/empty.html @@ -0,0 +1,32 @@ + + +Script src with an empty URL + + +
+ diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/failure.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/failure.html new file mode 100644 index 000000000..b49e51740 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/failure.html @@ -0,0 +1,25 @@ + + +Script src with an invalid URL + + +
+ diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/unreachable.js b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/unreachable.js new file mode 100644 index 000000000..ca7fdba71 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/fetch-src/unreachable.js @@ -0,0 +1 @@ +unreachable(); diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/historical.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/historical.html new file mode 100644 index 000000000..1f1a91228 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/historical.html @@ -0,0 +1,53 @@ + +Historical script element features should not be supported + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/load-event.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/load-event.html new file mode 100644 index 000000000..25c2ddf3e --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/load-event.html @@ -0,0 +1,24 @@ + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/log.py b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/log.py new file mode 100644 index 000000000..6803bb3e4 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/log.py @@ -0,0 +1,13 @@ +import time + +def main(request, response): + response.headers.append("Content-Type", "text/javascript") + try: + script_id = int(request.GET.first("id")) + delay = int(request.GET.first("sec")) + except: + response.set_error(400, "Invalid parameter") + + time.sleep(int(delay)) + + return "log('%s')" % script_id diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/resources/cross-origin.py b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/resources/cross-origin.py new file mode 100644 index 000000000..f8e05d966 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/resources/cross-origin.py @@ -0,0 +1,10 @@ +def main(request, response): + headers = [("Content-Type", "text/javascript")] + milk = request.cookies.first("milk", None) + + if milk is None: + return headers, "var included = false;" + elif milk.value == "yes": + return headers, "var included = true;" + + return headers, "var included = false;" diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-charset-01.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-charset-01.html new file mode 100644 index 000000000..c5ac0d0a6 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-charset-01.html @@ -0,0 +1,89 @@ + + + + Script @type: unknown parameters + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Script @type: unknown parameters + + + + +
+ + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-charset-03.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-charset-03.html new file mode 100644 index 000000000..4ff4cc6b0 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-charset-03.html @@ -0,0 +1,20 @@ + + + +Script changing @charset + + + +
+ diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-crossorigin-network.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-crossorigin-network.html new file mode 100644 index 000000000..488dd4488 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-crossorigin-network.html @@ -0,0 +1,49 @@ + + +HTMLScriptElement: crossorigin attribute network test + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-crossorigin.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-crossorigin.html new file mode 100644 index 000000000..52857a08e --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-crossorigin.html @@ -0,0 +1,39 @@ + + +HTMLScriptElement: crossOrigin IDL attribute + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-for-event-xhtml.xhtml b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-for-event-xhtml.xhtml new file mode 100644 index 000000000..69c4ef1f8 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-for-event-xhtml.xhtml @@ -0,0 +1,22 @@ + + + Scripts with for and event attributes + + + + +
+ + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-for-event.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-for-event.html new file mode 100644 index 000000000..552ea7041 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-for-event.html @@ -0,0 +1,93 @@ + +Scripts with for and event attributes + + + + + +
+ + + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-language-type.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-language-type.html new file mode 100644 index 000000000..b94834c83 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-language-type.html @@ -0,0 +1,18 @@ + +Script: combinations of @type and @language + + + + +
+ + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-languages-01.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-languages-01.html new file mode 100644 index 000000000..f2f2724df --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-languages-01.html @@ -0,0 +1,24 @@ + +Script @type: unknown parameters + + + + +
+
+ + +
+ diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-languages-02.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-languages-02.html new file mode 100644 index 000000000..69613e510 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-languages-02.html @@ -0,0 +1,98 @@ + +Script @type: JavaScript types + + + + +
+ diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-noembed-noframes-iframe.xhtml b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-noembed-noframes-iframe.xhtml new file mode 100644 index 000000000..8dd9ceb9a --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-noembed-noframes-iframe.xhtml @@ -0,0 +1,36 @@ + + +Script inside noembed, noframes and iframe + + + + + +
+ +
+ +<script> +run.push("noembed"); +</script> + + +<script> +run.push("noframes"); +</script> + + +
+ + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-executed-after-shutdown-child.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-executed-after-shutdown-child.html new file mode 100644 index 000000000..2f3ce2368 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-executed-after-shutdown-child.html @@ -0,0 +1,12 @@ + + +Script is not executed after script thread is shutdown + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-executed-after-shutdown.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-executed-after-shutdown.html new file mode 100644 index 000000000..704e8ed36 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-executed-after-shutdown.html @@ -0,0 +1,18 @@ + + +Script is not executed after script thread is shutdown + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-executed-after-shutdown.js b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-executed-after-shutdown.js new file mode 100644 index 000000000..ccdf14c0c --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-executed-after-shutdown.js @@ -0,0 +1 @@ +script_executed(); diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed-2.py b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed-2.py new file mode 100644 index 000000000..53caed7c0 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed-2.py @@ -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/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.html new file mode 100644 index 000000000..44ad30b01 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.html @@ -0,0 +1,19 @@ + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.py b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.py new file mode 100644 index 000000000..7722bd3f2 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.py @@ -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/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-1.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-1.html new file mode 100644 index 000000000..0fe39b11a --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-1.html @@ -0,0 +1,12 @@ + + +Test that the insertion point is defined in the error event of a parser-inserted script that actually started a fetch (but just had it fail). + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-2.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-2.html new file mode 100644 index 000000000..6d3f3ef09 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-2.html @@ -0,0 +1,13 @@ + + +Test that the insertion point is not defined in the error event of a + parser-inserted script that has an unparseable URL + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-onload-insertion-point.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-onload-insertion-point.html new file mode 100644 index 000000000..ce3ddeee6 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-onload-insertion-point.html @@ -0,0 +1,12 @@ + + +Test that the insertion point is defined in the load event of a parser-inserted script. + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-onload-string.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-onload-string.html new file mode 100644 index 000000000..85f2d4dcf --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-onload-string.html @@ -0,0 +1,17 @@ + +Script: setting onload to a string + + + +
+ diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-text-xhtml.xhtml b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-text-xhtml.xhtml new file mode 100644 index 000000000..33a4635db --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-text-xhtml.xhtml @@ -0,0 +1,28 @@ + + + +HTMLScriptElement.text + + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-text.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-text.html new file mode 100644 index 000000000..6e8647224 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-text.html @@ -0,0 +1,72 @@ + + +HTMLScriptElement.text + + + +
+ diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/scripting-enabled.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/scripting-enabled.html new file mode 100644 index 000000000..a2671a78f --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/scripting-enabled.html @@ -0,0 +1,16 @@ + + +JS is disabled on documents created without a browsing context + + + + diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/serve-with-content-type.py b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/serve-with-content-type.py new file mode 100644 index 000000000..7cfe6f4ce --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/serve-with-content-type.py @@ -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") diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/support/script-onerror-insertion-point-1-helper.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/support/script-onerror-insertion-point-1-helper.html new file mode 100644 index 000000000..d9b0c84ca --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/support/script-onerror-insertion-point-1-helper.html @@ -0,0 +1,2 @@ +Some diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/support/script-onerror-insertion-point-2-helper.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/support/script-onerror-insertion-point-2-helper.html new file mode 100644 index 000000000..7a1739815 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/support/script-onerror-insertion-point-2-helper.html @@ -0,0 +1,2 @@ +Some diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/support/script-onload-insertion-point-helper.html b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/support/script-onload-insertion-point-helper.html new file mode 100644 index 000000000..f0236b4fb --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/support/script-onload-insertion-point-helper.html @@ -0,0 +1,2 @@ +Some diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/support/script-onload-insertion-point-helper.js b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/support/script-onload-insertion-point-helper.js new file mode 100644 index 000000000..8a96a0b78 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/support/script-onload-insertion-point-helper.js @@ -0,0 +1 @@ +document.write("te"); -- cgit v1.2.3