From acd6aadb5d0d0718182d6661ed9e45c723a1528f Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Wed, 15 Jan 2020 15:54:32 -0500 Subject: [PATCH] Test entry settings object for promise jobs Follows https://github.com/whatwg/html/pull/5212. --- .../promise-job-entry.html | 94 +++++++++++++++++++ .../resources/README.md | 5 + .../resources/current/current.html | 3 + .../current/resources/window-to-open.html | 2 + .../promise-job-entry-incumbent.html | 14 +++ .../resources/relevant/relevant.html | 3 + .../relevant/resources/window-to-open.html | 2 + .../resources/resources/window-to-open.html | 2 + .../resources/window-to-open.html | 2 + 9 files changed, 127 insertions(+) create mode 100644 html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/promise-job-entry.html create mode 100644 html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/README.md create mode 100644 html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/current/current.html create mode 100644 html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/current/resources/window-to-open.html create mode 100644 html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/promise-job-entry-incumbent.html create mode 100644 html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/relevant/relevant.html create mode 100644 html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/relevant/resources/window-to-open.html create mode 100644 html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/resources/window-to-open.html create mode 100644 html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/window-to-open.html diff --git a/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/promise-job-entry.html b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/promise-job-entry.html new file mode 100644 index 00000000000000..0a8cab13e65ea9 --- /dev/null +++ b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/promise-job-entry.html @@ -0,0 +1,94 @@ + + +Entry settings object for promise jobs + + + + + + + + + + diff --git a/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/README.md b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/README.md new file mode 100644 index 00000000000000..a89258a4e01267 --- /dev/null +++ b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/README.md @@ -0,0 +1,5 @@ +A couple notes about the files scattered in this `resources/` directory: + +* The nested directory structure is necessary here so that relative URL resolution can be tested; we need different sub-paths for each document. + +* The semi-duplicate `window-to-open.html`s scattered throughout are present because Firefox, at least, does not fire `Window` `load` events for 404s, so we want to ensure that no matter which global is used, `window`'s `load` event is hit and our tests can proceed. diff --git a/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/current/current.html b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/current/current.html new file mode 100644 index 00000000000000..3986b19a292cbe --- /dev/null +++ b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/current/current.html @@ -0,0 +1,3 @@ + +Current page used as a test helper + diff --git a/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/current/resources/window-to-open.html b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/current/resources/window-to-open.html new file mode 100644 index 00000000000000..3500e647ad7a05 --- /dev/null +++ b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/current/resources/window-to-open.html @@ -0,0 +1,2 @@ + +If the current settings object is used this page will be opened diff --git a/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/promise-job-entry-incumbent.html b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/promise-job-entry-incumbent.html new file mode 100644 index 00000000000000..18d4f6a68cfd59 --- /dev/null +++ b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/promise-job-entry-incumbent.html @@ -0,0 +1,14 @@ + +Incumbent page used as a test helper + + + + + diff --git a/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/relevant/relevant.html b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/relevant/relevant.html new file mode 100644 index 00000000000000..fa701d7fc9035d --- /dev/null +++ b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/relevant/relevant.html @@ -0,0 +1,3 @@ + +Relevant page used as a test helper + diff --git a/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/relevant/resources/window-to-open.html b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/relevant/resources/window-to-open.html new file mode 100644 index 00000000000000..1fbef33c594136 --- /dev/null +++ b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/relevant/resources/window-to-open.html @@ -0,0 +1,2 @@ + +If the relevant settings object is used this page will be opened diff --git a/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/resources/window-to-open.html b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/resources/window-to-open.html new file mode 100644 index 00000000000000..fa6b8d01267600 --- /dev/null +++ b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/resources/window-to-open.html @@ -0,0 +1,2 @@ + +If the incumbent settings object is used this page will be opened diff --git a/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/window-to-open.html b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/window-to-open.html new file mode 100644 index 00000000000000..43bf6ddf546a6e --- /dev/null +++ b/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/resources/window-to-open.html @@ -0,0 +1,2 @@ + +If the entry settings object is used this page will be opened