From a4cebda3db24d0b71a31e4bfc8b3cdd77ccaf07d Mon Sep 17 00:00:00 2001 From: WPT Sync Bot Date: Thu, 25 Jun 2020 08:21:34 +0000 Subject: [PATCH] Update web-platform-tests to revision fa5f0edd48aca7acfa7d35f1be31cb0dd65817c6 --- ....html.ini => hit-test-floats-003.html.ini} | 2 +- .../border-image-shorthand-001.htm.ini | 2 + .../hittest-anonymous-box.html.ini | 4 + .../transform-scale-hittest.html.ini | 3 - .../elementsFromPoint-iframes.html.ini | 3 - .../matchMedia-display-none-iframe.html.ini | 2 + .../offsetTopLeft-border-box.html.ini | 7 - .../fetch/content-type/response.window.js.ini | 12 +- .../fetch/content-type/script.window.js.ini | 3 + .../nosniff/parsing-nosniff.window.js.ini | 6 - .../traverse_the_history_1.html.ini | 4 + .../traverse_the_history_2.html.ini | 4 - .../traverse_the_history_4.html.ini | 4 - ...ross-origin-objects-on-new-window.html.ini | 2 - .../embedded-opener-remove-frame.html.ini | 1 + .../frameElement-siblings.sub.html.ini | 4 + ...ing-lazy-multiple-times.tentative.html.ini | 4 + ...e-loading-lazy-to-eager.tentative.html.ini | 4 + .../iframe_sandbox_popups_escaping-1.html.ini | 3 +- .../iframe_sandbox_popups_escaping-2.html.ini | 2 +- .../iframe_sandbox_popups_escaping-3.html.ini | 4 +- ...rame_sandbox_popups_nonescaping-2.html.ini | 2 +- ...rame_sandbox_popups_nonescaping-3.html.ini | 3 +- .../image-loading-lazy-to-eager.html.ini | 4 + ...le-event-handler-settings-objects.html.ini | 3 + .../webmessaging/with-ports/017.html.ini | 5 - .../semantics/run-a-worker/003.html.ini | 1 + tests/wpt/metadata/MANIFEST.json | 382 ++++++++++++++++-- ....html.ini => hit-test-floats-003.html.ini} | 2 +- .../border-image-shorthand-001.htm.ini | 2 + .../hittest-anonymous-box.html.ini | 4 + .../transform-scale-hittest.html.ini | 3 - .../elementsFromPoint-iframes.html.ini | 3 - .../matchMedia-display-none-iframe.html.ini | 2 + .../offsetTopLeft-border-box.html.ini | 7 - .../fetch/content-type/response.window.js.ini | 12 +- .../fetch/content-type/script.window.js.ini | 3 + .../nosniff/parsing-nosniff.window.js.ini | 6 - .../traverse_the_history_1.html.ini | 4 + .../traverse_the_history_2.html.ini | 4 - .../traverse_the_history_4.html.ini | 4 - ...ross-origin-objects-on-new-window.html.ini | 2 - .../embedded-opener-remove-frame.html.ini | 1 + .../frameElement-siblings.sub.html.ini | 4 + ...ing-lazy-multiple-times.tentative.html.ini | 4 + ...e-loading-lazy-to-eager.tentative.html.ini | 4 + .../iframe_sandbox_popups_escaping-1.html.ini | 3 +- .../iframe_sandbox_popups_escaping-2.html.ini | 2 +- .../iframe_sandbox_popups_escaping-3.html.ini | 4 +- ...rame_sandbox_popups_nonescaping-2.html.ini | 2 +- ...rame_sandbox_popups_nonescaping-3.html.ini | 3 +- .../image-loading-lazy-to-eager.html.ini | 4 + ...le-event-handler-settings-objects.html.ini | 3 + .../webmessaging/with-ports/017.html.ini | 5 - .../semantics/run-a-worker/003.html.ini | 1 + .../content-index/idlharness.https.any.js | 33 ++ .../border-image-shorthand-001.htm | 48 ++- .../border-image-shorthand-001-ref.html | 28 ++ .../support/blue-and-red-diamonds-81x81.png | Bin 0 -> 10372 bytes .../css-flexbox/hittest-anonymous-box.html | 23 ++ .../multicol-fill-balance-003.html | 16 + ...> marker-list-style-position-ref-001.html} | 0 .../marker-list-style-position-ref-002.html | 26 ++ .../marker-list-style-position.html | 7 +- .../block-aspect-ratio-019.tentative.html | 11 + .../layout-animations-disabled-tentative.html | 1 + .../document-domain-removed-iframe.html | 72 ++++ .../frameElement-siblings.sub.html | 42 ++ .../frameElement-sibling-accessed.html | 16 + .../frameElement-sibling-accessor.html | 33 ++ .../resources/document-domain-setter.html | 7 + .../openee-accessed_openee-coop-ro.https.html | 88 ++-- .../openee-accessed_openee-coop.https.html | 89 ++-- .../openee-accessed_opener-coop-ro.https.html | 11 +- .../openee-accessed_opener-coop.https.html | 11 +- .../opener-accessed_openee-coop-ro.https.html | 88 ++-- .../opener-accessed_openee-coop.https.html | 78 ++-- .../opener-accessed_opener-coop-ro.https.html | 13 +- .../opener-accessed_opener-coop.https.html | 11 +- .../access-reporting/property.https.html | 72 ++++ .../access-reporting/resources/executor.html | 17 +- .../access-reporting/resources/try-access.js | 20 + ...loading-lazy-multiple-times.tentative.html | 69 ++++ ...frame-loading-lazy-to-eager.tentative.html | 55 +++ .../resources/unload-reporter.html | 8 + .../image-loading-lazy-to-eager.html | 55 +++ .../interfaces/content-index.idl | 45 +++ .../interfaces/savedata.idl | 10 + .../storage-access-api.tentative.idl | 6 - .../interfaces/storage-access.idl | 9 + .../web-platform-tests/interfaces/web-otp.idl | 21 + .../resources/idlharness.js | 21 +- .../IdlNamespace/test_operation.html | 2 +- .../savedata/idlharness.any.js | 16 + ...ntative.window.js => idlharness.window.js} | 2 +- .../web-otp/idlharness.https.window.js | 16 + .../share-consume-activation.https.html | 33 ++ .../web-share/share-empty.https.html | 41 +- .../web-share/share-url-invalid.https.html | 21 +- .../xhr/resources/infinite-redirects.py | 28 +- .../xhr/resources/invalid-utf8-html.py | 2 +- .../xhr/resources/last-modified.py | 10 +- .../no-custom-header-on-preflight.py | 22 +- .../xhr/resources/parse-headers.py | 8 +- .../xhr/resources/redirect-cors.py | 24 +- .../xhr/resources/redirect.py | 18 +- .../xhr/resources/requri.py | 2 +- .../xhr/resources/reset-token.py | 8 +- .../xhr/resources/shift-jis-html.py | 2 +- .../rendering/draw-buffers.html.ini | 6 + 110 files changed, 1473 insertions(+), 526 deletions(-) rename tests/wpt/metadata-layout-2020/css/CSS2/floats/{hit-test-floats-004.html.ini => hit-test-floats-003.html.ini} (67%) create mode 100644 tests/wpt/metadata-layout-2020/css/css-backgrounds/border-image-shorthand-001.htm.ini create mode 100644 tests/wpt/metadata-layout-2020/css/css-flexbox/hittest-anonymous-box.html.ini create mode 100644 tests/wpt/metadata-layout-2020/css/cssom-view/matchMedia-display-none-iframe.html.ini delete mode 100644 tests/wpt/metadata-layout-2020/css/cssom-view/offsetTopLeft-border-box.html.ini create mode 100644 tests/wpt/metadata-layout-2020/html/browsers/history/the-history-interface/traverse_the_history_1.html.ini delete mode 100644 tests/wpt/metadata-layout-2020/html/browsers/history/the-history-interface/traverse_the_history_2.html.ini delete mode 100644 tests/wpt/metadata-layout-2020/html/browsers/history/the-history-interface/traverse_the_history_4.html.ini delete mode 100644 tests/wpt/metadata-layout-2020/html/browsers/origin/cross-origin-objects/cross-origin-objects-on-new-window.html.ini create mode 100644 tests/wpt/metadata-layout-2020/html/browsers/windows/nested-browsing-contexts/frameElement-siblings.sub.html.ini create mode 100644 tests/wpt/metadata-layout-2020/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.tentative.html.ini create mode 100644 tests/wpt/metadata-layout-2020/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.tentative.html.ini create mode 100644 tests/wpt/metadata-layout-2020/html/semantics/embedded-content/the-img-element/image-loading-lazy-to-eager.html.ini delete mode 100644 tests/wpt/metadata-layout-2020/webmessaging/with-ports/017.html.ini rename tests/wpt/metadata/css/CSS2/floats/{hit-test-floats-004.html.ini => hit-test-floats-003.html.ini} (67%) create mode 100644 tests/wpt/metadata/css/css-backgrounds/border-image-shorthand-001.htm.ini create mode 100644 tests/wpt/metadata/css/css-flexbox/hittest-anonymous-box.html.ini create mode 100644 tests/wpt/metadata/css/cssom-view/matchMedia-display-none-iframe.html.ini delete mode 100644 tests/wpt/metadata/css/cssom-view/offsetTopLeft-border-box.html.ini create mode 100644 tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_1.html.ini delete mode 100644 tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_2.html.ini delete mode 100644 tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_4.html.ini delete mode 100644 tests/wpt/metadata/html/browsers/origin/cross-origin-objects/cross-origin-objects-on-new-window.html.ini create mode 100644 tests/wpt/metadata/html/browsers/windows/nested-browsing-contexts/frameElement-siblings.sub.html.ini create mode 100644 tests/wpt/metadata/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.tentative.html.ini create mode 100644 tests/wpt/metadata/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.tentative.html.ini create mode 100644 tests/wpt/metadata/html/semantics/embedded-content/the-img-element/image-loading-lazy-to-eager.html.ini delete mode 100644 tests/wpt/metadata/webmessaging/with-ports/017.html.ini create mode 100644 tests/wpt/web-platform-tests/content-index/idlharness.https.any.js create mode 100644 tests/wpt/web-platform-tests/css/css-backgrounds/reference/border-image-shorthand-001-ref.html create mode 100644 tests/wpt/web-platform-tests/css/css-backgrounds/support/blue-and-red-diamonds-81x81.png create mode 100644 tests/wpt/web-platform-tests/css/css-flexbox/hittest-anonymous-box.html create mode 100644 tests/wpt/web-platform-tests/css/css-multicol/multicol-fill-balance-003.html rename tests/wpt/web-platform-tests/css/css-pseudo/{marker-list-style-position-ref.html => marker-list-style-position-ref-001.html} (100%) create mode 100644 tests/wpt/web-platform-tests/css/css-pseudo/marker-list-style-position-ref-002.html create mode 100644 tests/wpt/web-platform-tests/css/css-sizing/aspect-ratio/block-aspect-ratio-019.tentative.html create mode 100644 tests/wpt/web-platform-tests/html/browsers/windows/document-domain-removed-iframe.html create mode 100644 tests/wpt/web-platform-tests/html/browsers/windows/nested-browsing-contexts/frameElement-siblings.sub.html create mode 100644 tests/wpt/web-platform-tests/html/browsers/windows/nested-browsing-contexts/resources/frameElement-sibling-accessed.html create mode 100644 tests/wpt/web-platform-tests/html/browsers/windows/nested-browsing-contexts/resources/frameElement-sibling-accessor.html create mode 100644 tests/wpt/web-platform-tests/html/browsers/windows/resources/document-domain-setter.html create mode 100644 tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/property.https.html create mode 100644 tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/resources/try-access.js create mode 100644 tests/wpt/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.tentative.html create mode 100644 tests/wpt/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.tentative.html create mode 100644 tests/wpt/web-platform-tests/html/semantics/embedded-content/the-iframe-element/resources/unload-reporter.html create mode 100644 tests/wpt/web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-to-eager.html create mode 100644 tests/wpt/web-platform-tests/interfaces/content-index.idl create mode 100644 tests/wpt/web-platform-tests/interfaces/savedata.idl delete mode 100644 tests/wpt/web-platform-tests/interfaces/storage-access-api.tentative.idl create mode 100644 tests/wpt/web-platform-tests/interfaces/storage-access.idl create mode 100644 tests/wpt/web-platform-tests/interfaces/web-otp.idl create mode 100644 tests/wpt/web-platform-tests/savedata/idlharness.any.js rename tests/wpt/web-platform-tests/storage-access-api/{idlharness.tentative.window.js => idlharness.window.js} (86%) create mode 100644 tests/wpt/web-platform-tests/web-otp/idlharness.https.window.js create mode 100644 tests/wpt/web-platform-tests/web-share/share-consume-activation.https.html diff --git a/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-004.html.ini b/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-003.html.ini similarity index 67% rename from tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-004.html.ini rename to tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-003.html.ini index 4bfb0c2053a..f29da48a2a0 100644 --- a/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-004.html.ini +++ b/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-003.html.ini @@ -1,4 +1,4 @@ -[hit-test-floats-004.html] +[hit-test-floats-003.html] [Miss float below something else] expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-backgrounds/border-image-shorthand-001.htm.ini b/tests/wpt/metadata-layout-2020/css/css-backgrounds/border-image-shorthand-001.htm.ini new file mode 100644 index 00000000000..6484302570c --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-backgrounds/border-image-shorthand-001.htm.ini @@ -0,0 +1,2 @@ +[border-image-shorthand-001.htm] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-flexbox/hittest-anonymous-box.html.ini b/tests/wpt/metadata-layout-2020/css/css-flexbox/hittest-anonymous-box.html.ini new file mode 100644 index 00000000000..42e2a57acc3 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-flexbox/hittest-anonymous-box.html.ini @@ -0,0 +1,4 @@ +[hittest-anonymous-box.html] + [Hit-testing within an anonymous flex-item should return the flexbox as the hittest result.] + expected: FAIL + diff --git a/tests/wpt/metadata-layout-2020/css/css-transforms/transform-scale-hittest.html.ini b/tests/wpt/metadata-layout-2020/css/css-transforms/transform-scale-hittest.html.ini index f8e7e539aae..4a1e8110f6f 100644 --- a/tests/wpt/metadata-layout-2020/css/css-transforms/transform-scale-hittest.html.ini +++ b/tests/wpt/metadata-layout-2020/css/css-transforms/transform-scale-hittest.html.ini @@ -2,6 +2,3 @@ [Hit test intersecting scaled box] expected: FAIL - [Hit test within unscaled box] - expected: FAIL - diff --git a/tests/wpt/metadata-layout-2020/css/cssom-view/elementsFromPoint-iframes.html.ini b/tests/wpt/metadata-layout-2020/css/cssom-view/elementsFromPoint-iframes.html.ini index 6ef8bb1049f..171592fc08f 100644 --- a/tests/wpt/metadata-layout-2020/css/cssom-view/elementsFromPoint-iframes.html.ini +++ b/tests/wpt/metadata-layout-2020/css/cssom-view/elementsFromPoint-iframes.html.ini @@ -2,6 +2,3 @@ [elementsFromPoint on the root document for points in iframe elements] expected: FAIL - [elementsFromPoint on inner documents] - expected: FAIL - diff --git a/tests/wpt/metadata-layout-2020/css/cssom-view/matchMedia-display-none-iframe.html.ini b/tests/wpt/metadata-layout-2020/css/cssom-view/matchMedia-display-none-iframe.html.ini new file mode 100644 index 00000000000..e6e1f29e274 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/cssom-view/matchMedia-display-none-iframe.html.ini @@ -0,0 +1,2 @@ +[matchMedia-display-none-iframe.html] + expected: ERROR diff --git a/tests/wpt/metadata-layout-2020/css/cssom-view/offsetTopLeft-border-box.html.ini b/tests/wpt/metadata-layout-2020/css/cssom-view/offsetTopLeft-border-box.html.ini deleted file mode 100644 index 239c35135e4..00000000000 --- a/tests/wpt/metadata-layout-2020/css/cssom-view/offsetTopLeft-border-box.html.ini +++ /dev/null @@ -1,7 +0,0 @@ -[offsetTopLeft-border-box.html] - [container: 1] - expected: FAIL - - [container: 0] - expected: FAIL - diff --git a/tests/wpt/metadata-layout-2020/fetch/content-type/response.window.js.ini b/tests/wpt/metadata-layout-2020/fetch/content-type/response.window.js.ini index ae2bd6e1de2..b60c7eadadc 100644 --- a/tests/wpt/metadata-layout-2020/fetch/content-type/response.window.js.ini +++ b/tests/wpt/metadata-layout-2020/fetch/content-type/response.window.js.ini @@ -315,12 +315,6 @@ [ + + + diff --git a/tests/wpt/web-platform-tests/html/browsers/windows/nested-browsing-contexts/resources/frameElement-sibling-accessed.html b/tests/wpt/web-platform-tests/html/browsers/windows/nested-browsing-contexts/resources/frameElement-sibling-accessed.html new file mode 100644 index 00000000000..15245981ce8 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/browsers/windows/nested-browsing-contexts/resources/frameElement-sibling-accessed.html @@ -0,0 +1,16 @@ + + +This page will set its document.domain on request so that its sibling can access it + +

I did get loaded

+ + diff --git a/tests/wpt/web-platform-tests/html/browsers/windows/nested-browsing-contexts/resources/frameElement-sibling-accessor.html b/tests/wpt/web-platform-tests/html/browsers/windows/nested-browsing-contexts/resources/frameElement-sibling-accessor.html new file mode 100644 index 00000000000..4b4c7a87bb8 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/browsers/windows/nested-browsing-contexts/resources/frameElement-sibling-accessor.html @@ -0,0 +1,33 @@ + + +This page will attempt to access the frameElement of its sibling and report the results on request + +

I did get loaded

+ + diff --git a/tests/wpt/web-platform-tests/html/browsers/windows/resources/document-domain-setter.html b/tests/wpt/web-platform-tests/html/browsers/windows/resources/document-domain-setter.html new file mode 100644 index 00000000000..3b142555713 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/browsers/windows/resources/document-domain-setter.html @@ -0,0 +1,7 @@ + + +Helper page that sets document.domain + diff --git a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/openee-accessed_openee-coop-ro.https.html b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/openee-accessed_openee-coop-ro.https.html index 5d4bb06453b..e30619fc665 100644 --- a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/openee-accessed_openee-coop-ro.https.html +++ b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/openee-accessed_openee-coop-ro.https.html @@ -8,6 +8,7 @@ + diff --git a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/openee-accessed_openee-coop.https.html b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/openee-accessed_openee-coop.https.html index 0b68205672b..9427c85ac87 100644 --- a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/openee-accessed_openee-coop.https.html +++ b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/openee-accessed_openee-coop.https.html @@ -8,6 +8,7 @@ + diff --git a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/openee-accessed_opener-coop-ro.https.html b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/openee-accessed_opener-coop-ro.https.html index b40aa9505fe..b3fbc6137c3 100644 --- a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/openee-accessed_opener-coop-ro.https.html +++ b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/openee-accessed_opener-coop-ro.https.html @@ -8,6 +8,7 @@ + diff --git a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/openee-accessed_opener-coop.https.html b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/openee-accessed_opener-coop.https.html index e70e5310a5a..01184cd8a4d 100644 --- a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/openee-accessed_opener-coop.https.html +++ b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/openee-accessed_opener-coop.https.html @@ -8,6 +8,7 @@ + diff --git a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/opener-accessed_openee-coop-ro.https.html b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/opener-accessed_openee-coop-ro.https.html index 4c3259ed570..b889604e230 100644 --- a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/opener-accessed_openee-coop-ro.https.html +++ b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/opener-accessed_openee-coop-ro.https.html @@ -8,6 +8,7 @@ + diff --git a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/opener-accessed_openee-coop.https.html b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/opener-accessed_openee-coop.https.html index 03dd9d86c54..a2d73304821 100644 --- a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/opener-accessed_openee-coop.https.html +++ b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/opener-accessed_openee-coop.https.html @@ -8,6 +8,7 @@ + diff --git a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/opener-accessed_opener-coop-ro.https.html b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/opener-accessed_opener-coop-ro.https.html index 5b72e569ce5..56db8ca1a9e 100644 --- a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/opener-accessed_opener-coop-ro.https.html +++ b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/opener-accessed_opener-coop-ro.https.html @@ -8,6 +8,7 @@ + diff --git a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/opener-accessed_opener-coop.https.html b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/opener-accessed_opener-coop.https.html index 1729f601e12..ad56d560420 100644 --- a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/opener-accessed_opener-coop.https.html +++ b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/opener-accessed_opener-coop.https.html @@ -8,6 +8,7 @@ + diff --git a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/property.https.html b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/property.https.html new file mode 100644 index 00000000000..c4c9ff097c5 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/property.https.html @@ -0,0 +1,72 @@ + Check the "report > body > property" is properly populated. + + + + + + + diff --git a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/resources/executor.html b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/resources/executor.html index 3b10da03739..e97e18aca4b 100644 --- a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/resources/executor.html +++ b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/resources/executor.html @@ -1,12 +1,15 @@ + diff --git a/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/resources/try-access.js b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/resources/try-access.js new file mode 100644 index 00000000000..eaf529e0564 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/cross-origin-opener-policy/access-reporting/resources/try-access.js @@ -0,0 +1,20 @@ +// A function trying to access to |w| through a "CrossOrigin" attribute (blur). +// This function is kept in its own file to ensure the source location of the +// call stays constant. +function tryAccess(w) { + try { + w.blur(); + } catch(e) {} +} + +function assert_source_location_found(report) { + assert_true(report.body["source-file"].includes("try-access.js")); + assert_equals(report.body["lineno"], 6); + assert_equals(report.body["colno"], 7); +} + +function assert_source_location_missing(report) { + assert_equals(report.body["source-file"], undefined); + assert_equals(report.body["lineno"], undefined); + assert_equals(report.body["colno"], undefined); +} diff --git a/tests/wpt/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.tentative.html b/tests/wpt/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.tentative.html new file mode 100644 index 00000000000..89e41e61bf7 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-multiple-times.tentative.html @@ -0,0 +1,69 @@ + + + Iframes with loading='lazy' can be lazy loaded multiple times + + + + + + + + +
+
+ + + + diff --git a/tests/wpt/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.tentative.html b/tests/wpt/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.tentative.html new file mode 100644 index 00000000000..371601a8c3a --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-to-eager.tentative.html @@ -0,0 +1,55 @@ + + + Below-viewport iframes with loading='lazy' load when set to + loading='eager' or the `loading` attribute is removed + + + + + + + + + +
+ + + diff --git a/tests/wpt/web-platform-tests/html/semantics/embedded-content/the-iframe-element/resources/unload-reporter.html b/tests/wpt/web-platform-tests/html/semantics/embedded-content/the-iframe-element/resources/unload-reporter.html new file mode 100644 index 00000000000..18599b2a6eb --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/embedded-content/the-iframe-element/resources/unload-reporter.html @@ -0,0 +1,8 @@ + +

I'll report to my parent when I'm unloaded

+ + diff --git a/tests/wpt/web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-to-eager.html b/tests/wpt/web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-to-eager.html new file mode 100644 index 00000000000..f74cafb1069 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/embedded-content/the-img-element/image-loading-lazy-to-eager.html @@ -0,0 +1,55 @@ + + + Below-viewport images with loading='lazy' load when set to + loading='eager' or the `loading` attribute is removed + + + + + + + + + +
+ + + diff --git a/tests/wpt/web-platform-tests/interfaces/content-index.idl b/tests/wpt/web-platform-tests/interfaces/content-index.idl new file mode 100644 index 00000000000..5b4a8ead16c --- /dev/null +++ b/tests/wpt/web-platform-tests/interfaces/content-index.idl @@ -0,0 +1,45 @@ +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into reffy-reports +// (https://github.com/tidoust/reffy-reports) +// Source: Content Index (https://wicg.github.io/content-index/spec/) + +partial interface ServiceWorkerGlobalScope { + attribute EventHandler oncontentdelete; +}; + +partial interface ServiceWorkerRegistration { + [SameObject] readonly attribute ContentIndex index; +}; + +enum ContentCategory { + "", + "homepage", + "article", + "video", + "audio", +}; + +dictionary ContentDescription { + required DOMString id; + required DOMString title; + required DOMString description; + ContentCategory category = ""; + sequence icons = []; + required USVString url; +}; + +[Exposed=(Window,Worker)] +interface ContentIndex { + Promise add(ContentDescription description); + Promise delete(DOMString id); + Promise> getAll(); +}; + +dictionary ContentIndexEventInit : ExtendableEventInit { + required DOMString id; +}; + +[Constructor(DOMString type, ContentIndexEventInit init), Exposed=ServiceWorker] +interface ContentIndexEvent : ExtendableEvent { + readonly attribute DOMString id; +}; diff --git a/tests/wpt/web-platform-tests/interfaces/savedata.idl b/tests/wpt/web-platform-tests/interfaces/savedata.idl new file mode 100644 index 00000000000..4d9e3b98d3c --- /dev/null +++ b/tests/wpt/web-platform-tests/interfaces/savedata.idl @@ -0,0 +1,10 @@ +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into reffy-reports +// (https://github.com/tidoust/reffy-reports) +// Source: Save Data API (https://wicg.github.io/savedata/) + +interface mixin NetworkInformationSaveData { + [SameObject] readonly attribute boolean saveData; +}; + +NetworkInformation includes NetworkInformationSaveData; diff --git a/tests/wpt/web-platform-tests/interfaces/storage-access-api.tentative.idl b/tests/wpt/web-platform-tests/interfaces/storage-access-api.tentative.idl deleted file mode 100644 index a94be37e915..00000000000 --- a/tests/wpt/web-platform-tests/interfaces/storage-access-api.tentative.idl +++ /dev/null @@ -1,6 +0,0 @@ -// https://github.com/whatwg/html/issues/3338 - -partial interface Document { - Promise hasStorageAccess(); - Promise requestStorageAccess(); -}; diff --git a/tests/wpt/web-platform-tests/interfaces/storage-access.idl b/tests/wpt/web-platform-tests/interfaces/storage-access.idl new file mode 100644 index 00000000000..18dd08f7c29 --- /dev/null +++ b/tests/wpt/web-platform-tests/interfaces/storage-access.idl @@ -0,0 +1,9 @@ +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into reffy-reports +// (https://github.com/tidoust/reffy-reports) +// Source: The Storage Access API (https://privacycg.github.io/storage-access/) + +partial interface Document { + Promise hasStorageAccess(); + Promise requestStorageAccess(); +}; diff --git a/tests/wpt/web-platform-tests/interfaces/web-otp.idl b/tests/wpt/web-platform-tests/interfaces/web-otp.idl new file mode 100644 index 00000000000..023de325931 --- /dev/null +++ b/tests/wpt/web-platform-tests/interfaces/web-otp.idl @@ -0,0 +1,21 @@ +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into reffy-reports +// (https://github.com/tidoust/reffy-reports) +// Source: Web OTP API (https://wicg.github.io/web-otp/) + +[Exposed=Window, SecureContext] +interface OTPCredential : Credential { + readonly attribute DOMString code; +}; + +partial dictionary CredentialRequestOptions { + OTPCredentialRequestOptions otp; +}; + +dictionary OTPCredentialRequestOptions { + sequence transport = []; +}; + +enum OTPCredentialTransportType { + "sms", +}; diff --git a/tests/wpt/web-platform-tests/resources/idlharness.js b/tests/wpt/web-platform-tests/resources/idlharness.js index 58d1517308a..62b003c4a7a 100644 --- a/tests/wpt/web-platform-tests/resources/idlharness.js +++ b/tests/wpt/web-platform-tests/resources/idlharness.js @@ -1343,8 +1343,7 @@ function IdlInterface(obj, is_callback, is_mixin) /** An array of IdlInterfaceMembers. */ this.members = obj.members.map(function(m){return new IdlInterfaceMember(m); }); - if (this.has_extended_attribute("Unforgeable") || - this.has_extended_attribute("LegacyUnforgeable")) { + if (this.has_extended_attribute("LegacyUnforgeable")) { this.members .filter(function(m) { return m.special !== "static" && (m.type == "attribute" || m.type == "operation"); }) .forEach(function(m) { return m.isUnforgeable = true; }); @@ -1806,10 +1805,9 @@ IdlInterface.prototype.test_self = function() }.bind(this), this.name + " interface: legacy window alias"); } - if (this.has_extended_attribute("NamedConstructor") || - this.has_extended_attribute("LegacyFactoryFunction")) { + if (this.has_extended_attribute("LegacyFactoryFunction")) { var constructors = this.extAttrs - .filter(function(attr) { return attr.name == "NamedConstructor" || attr.name == "LegacyFactoryFunction"; }); + .filter(function(attr) { return attr.name == "LegacyFactoryFunction"; }); if (constructors.length !== 1) { throw new IdlHarnessError("Internal error: missing support for multiple LegacyFactoryFunction extended attributes"); } @@ -2383,8 +2381,7 @@ IdlInterface.prototype.test_member_attribute = function(member) "The prototype object must have a property " + format_value(member.name)); - if (!member.has_extended_attribute("LenientThis") && - !member.has_extended_attribute("LegacyLenientThis")) { + if (!member.has_extended_attribute("LegacyLenientThis")) { if (member.idlType.generic !== "Promise") { // this.get_interface_object() returns a thing in our global assert_throws_js(TypeError, function() { @@ -3113,8 +3110,7 @@ IdlInterface.prototype.do_interface_attribute_asserts = function(obj, member, a_ // "If the attribute was specified with the [LegacyLenientThis] extended // attribute, then return undefined. // "Otherwise, throw a TypeError." - if (!member.has_extended_attribute("LenientThis") && - !member.has_extended_attribute("LegacyLenientThis")) { + if (!member.has_extended_attribute("LegacyLenientThis")) { if (member.idlType.generic !== "Promise") { assert_throws_js(globalOf(desc.get).TypeError, function() { desc.get.call({}); @@ -3143,7 +3139,6 @@ IdlInterface.prototype.do_interface_attribute_asserts = function(obj, member, a_ // TODO: Test calling setter on the interface prototype (should throw // TypeError in most cases). if (member.readonly - && !member.has_extended_attribute("LenientSetter") && !member.has_extended_attribute("LegacyLenientSetter") && !member.has_extended_attribute("PutForwards") && !member.has_extended_attribute("Replaceable")) @@ -3167,8 +3162,7 @@ IdlInterface.prototype.do_interface_attribute_asserts = function(obj, member, a_ // "If the attribute is declared with a [Replaceable] extended // attribute, then: ..." // "If validThis is false, then return." - if (!member.has_extended_attribute("LenientThis") && - !member.has_extended_attribute("LegacyLenientThis")) { + if (!member.has_extended_attribute("LegacyLenientThis")) { assert_throws_js(globalOf(desc.set).TypeError, function() { desc.set.call({}); }.bind(this), "calling setter on wrong object type must throw TypeError"); @@ -3208,8 +3202,7 @@ function IdlInterfaceMember(obj) this.extAttrs = []; } - this.isUnforgeable = this.has_extended_attribute("Unforgeable") || - this.has_extended_attribute("LegacyUnforgeable"); + this.isUnforgeable = this.has_extended_attribute("LegacyUnforgeable"); this.isUnscopable = this.has_extended_attribute("Unscopable"); } diff --git a/tests/wpt/web-platform-tests/resources/test/tests/functional/idlharness/IdlNamespace/test_operation.html b/tests/wpt/web-platform-tests/resources/test/tests/functional/idlharness/IdlNamespace/test_operation.html index 671cd9e09f5..1b995529d23 100644 --- a/tests/wpt/web-platform-tests/resources/test/tests/functional/idlharness/IdlNamespace/test_operation.html +++ b/tests/wpt/web-platform-tests/resources/test/tests/functional/idlharness/IdlNamespace/test_operation.html @@ -45,7 +45,7 @@ idlArray.add_idls( void Lies(); }; namespace bar { - [Unforgeable] + [LegacyUnforgeable] void Truth(); }; namespace baz { diff --git a/tests/wpt/web-platform-tests/savedata/idlharness.any.js b/tests/wpt/web-platform-tests/savedata/idlharness.any.js new file mode 100644 index 00000000000..aad362346ca --- /dev/null +++ b/tests/wpt/web-platform-tests/savedata/idlharness.any.js @@ -0,0 +1,16 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +'use strict'; + +// https://wicg.github.io/savedata/ + +idl_test( + ['savedata'], + ['netinfo', 'html', 'dom'], + idl_array => { + idl_array.add_objects({ + NetworkInformation: ['navigator.connection'] + }); + } +); diff --git a/tests/wpt/web-platform-tests/storage-access-api/idlharness.tentative.window.js b/tests/wpt/web-platform-tests/storage-access-api/idlharness.window.js similarity index 86% rename from tests/wpt/web-platform-tests/storage-access-api/idlharness.tentative.window.js rename to tests/wpt/web-platform-tests/storage-access-api/idlharness.window.js index 328e1ed4af1..41c6b84d689 100644 --- a/tests/wpt/web-platform-tests/storage-access-api/idlharness.tentative.window.js +++ b/tests/wpt/web-platform-tests/storage-access-api/idlharness.window.js @@ -4,7 +4,7 @@ 'use strict'; idl_test( - ['storage-access-api.tentative'], + ['storage-access'], ['dom'], idl_array => { idl_array.add_objects({ diff --git a/tests/wpt/web-platform-tests/web-otp/idlharness.https.window.js b/tests/wpt/web-platform-tests/web-otp/idlharness.https.window.js new file mode 100644 index 00000000000..ef4983b1ab6 --- /dev/null +++ b/tests/wpt/web-platform-tests/web-otp/idlharness.https.window.js @@ -0,0 +1,16 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +// https://w3c.github.io/webauthn/ + +'use strict'; + +idl_test( + ['web-otp'], + ['credential-management'], + idlArray => { + idlArray.add_objects({ + // TODO: create an OTPCredential + }); + } +); diff --git a/tests/wpt/web-platform-tests/web-share/share-consume-activation.https.html b/tests/wpt/web-platform-tests/web-share/share-consume-activation.https.html new file mode 100644 index 00000000000..ba14117c1d9 --- /dev/null +++ b/tests/wpt/web-platform-tests/web-share/share-consume-activation.https.html @@ -0,0 +1,33 @@ + + + + + WebShare Test: consume user activation + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/web-share/share-empty.https.html b/tests/wpt/web-platform-tests/web-share/share-empty.https.html index ce7e2fefbd4..d0e0241ae44 100644 --- a/tests/wpt/web-platform-tests/web-share/share-empty.https.html +++ b/tests/wpt/web-platform-tests/web-share/share-empty.https.html @@ -1,34 +1,49 @@ - + WebShare Test: Share no known fields + + diff --git a/tests/wpt/web-platform-tests/web-share/share-url-invalid.https.html b/tests/wpt/web-platform-tests/web-share/share-url-invalid.https.html index ca20cf0c70c..e4af03d4c88 100644 --- a/tests/wpt/web-platform-tests/web-share/share-url-invalid.https.html +++ b/tests/wpt/web-platform-tests/web-share/share-url-invalid.https.html @@ -1,20 +1,25 @@ - + WebShare Test: Share with an invalid URL + + diff --git a/tests/wpt/web-platform-tests/xhr/resources/infinite-redirects.py b/tests/wpt/web-platform-tests/xhr/resources/infinite-redirects.py index a85c410218e..a60942dd9a6 100644 --- a/tests/wpt/web-platform-tests/xhr/resources/infinite-redirects.py +++ b/tests/wpt/web-platform-tests/xhr/resources/infinite-redirects.py @@ -1,22 +1,24 @@ +from wptserve.utils import isomorphic_encode + def main(request, response): - location = "%s://%s%s" % (request.url_parts.scheme, - request.url_parts.netloc, - request.url_parts.path) - page = "alternate" + location = u"%s://%s%s" % (request.url_parts.scheme, + request.url_parts.netloc, + request.url_parts.path) + page = u"alternate" type = 302 mix = 0 - if request.GET.first("page", None) == "alternate": - page = "default" + if request.GET.first(b"page", None) == b"alternate": + page = u"default" - if request.GET.first("type", None) == "301": + if request.GET.first(b"type", None) == b"301": type = 301 - if request.GET.first("mix", None) == "1": + if request.GET.first(b"mix", None) == b"1": mix = 1 type = 302 if type == 301 else 301 - new_location = "%s?page=%s&type=%s&mix=%s" % (location, page, type, mix) - headers = [("Cache-Control", "no-cache"), - ("Pragma", "no-cache"), - ("Location", new_location)] - return 301, headers, "Hello guest. You have been redirected to " + new_location + new_location = u"%s?page=%s&type=%s&mix=%s" % (location, page, type, mix) + headers = [(b"Cache-Control", b"no-cache"), + (b"Pragma", b"no-cache"), + (b"Location", isomorphic_encode(new_location))] + return 301, headers, u"Hello guest. You have been redirected to " + new_location diff --git a/tests/wpt/web-platform-tests/xhr/resources/invalid-utf8-html.py b/tests/wpt/web-platform-tests/xhr/resources/invalid-utf8-html.py index 72be41a45e8..c15d17151a1 100644 --- a/tests/wpt/web-platform-tests/xhr/resources/invalid-utf8-html.py +++ b/tests/wpt/web-platform-tests/xhr/resources/invalid-utf8-html.py @@ -1,5 +1,5 @@ def main(request, response): - headers = [("Content-type", "text/html;charset=utf-8")] + headers = [(b"Content-type", b"text/html;charset=utf-8")] content = chr(0xff) return headers, content diff --git a/tests/wpt/web-platform-tests/xhr/resources/last-modified.py b/tests/wpt/web-platform-tests/xhr/resources/last-modified.py index ef05a6343c1..9d694817bf1 100644 --- a/tests/wpt/web-platform-tests/xhr/resources/last-modified.py +++ b/tests/wpt/web-platform-tests/xhr/resources/last-modified.py @@ -1,7 +1,9 @@ +from wptserve.utils import isomorphic_decode, isomorphic_encode + def main(request, response): import datetime, os - srcpath = os.path.join(os.path.dirname(__file__), "well-formed.xml") + srcpath = os.path.join(os.path.dirname(isomorphic_decode(__file__)), u"well-formed.xml") srcmoddt = datetime.datetime.fromtimestamp(os.path.getmtime(srcpath)) - response.headers.set("Last-Modified", srcmoddt.strftime("%a, %d %b %Y %H:%M:%S GMT")) - response.headers.set("Content-Type", "application/xml") - return open(srcpath, "r").read() + response.headers.set(b"Last-Modified", isomorphic_encode(srcmoddt.strftime(u"%a, %d %b %Y %H:%M:%S GMT"))) + response.headers.set(b"Content-Type", b"application/xml") + return open(srcpath, u"r").read() diff --git a/tests/wpt/web-platform-tests/xhr/resources/no-custom-header-on-preflight.py b/tests/wpt/web-platform-tests/xhr/resources/no-custom-header-on-preflight.py index f49f9f311fb..835c12813dc 100644 --- a/tests/wpt/web-platform-tests/xhr/resources/no-custom-header-on-preflight.py +++ b/tests/wpt/web-platform-tests/xhr/resources/no-custom-header-on-preflight.py @@ -2,26 +2,26 @@ def main(request, response): def getState(token): server_state = request.server.stash.take(token) if not server_state: - return "Uninitialized" + return b"Uninitialized" return server_state def setState(state, token): request.server.stash.put(token, state) - response.headers.set("Access-Control-Allow-Origin", "*") - response.headers.set("Access-Control-Allow-Headers", "x-test") - response.headers.set("Access-Control-Max-Age", 0) - token = request.GET.first("token", None) + response.headers.set(b"Access-Control-Allow-Origin", b"*") + response.headers.set(b"Access-Control-Allow-Headers", b"x-test") + response.headers.set(b"Access-Control-Max-Age", 0) + token = request.GET.first(b"token", None) - if request.method == "OPTIONS": - if request.headers.get("x-test"): - response.content = "FAIL: Invalid header in preflight request." + if request.method == u"OPTIONS": + if request.headers.get(b"x-test"): + response.content = b"FAIL: Invalid header in preflight request." response.status = 400 else: - setState("PASS", token) + setState(b"PASS", token) else: - if request.headers.get("x-test"): + if request.headers.get(b"x-test"): response.content = getState(token) else: - response.content = "FAIL: X-Test header missing in request" + response.content = b"FAIL: X-Test header missing in request" response.status = 400 diff --git a/tests/wpt/web-platform-tests/xhr/resources/parse-headers.py b/tests/wpt/web-platform-tests/xhr/resources/parse-headers.py index c661f22c3e9..8520baad880 100644 --- a/tests/wpt/web-platform-tests/xhr/resources/parse-headers.py +++ b/tests/wpt/web-platform-tests/xhr/resources/parse-headers.py @@ -1,6 +1,6 @@ def main(request, response): - content = "" - if "my-custom-header" in request.GET: - val = request.GET.first("my-custom-header") - response.headers.set("My-Custom-Header", val) + content = u"" + if b"my-custom-header" in request.GET: + val = request.GET.first(b"my-custom-header") + response.headers.set(b"My-Custom-Header", val) return content diff --git a/tests/wpt/web-platform-tests/xhr/resources/redirect-cors.py b/tests/wpt/web-platform-tests/xhr/resources/redirect-cors.py index 27609b8bdb2..5d030a62277 100644 --- a/tests/wpt/web-platform-tests/xhr/resources/redirect-cors.py +++ b/tests/wpt/web-platform-tests/xhr/resources/redirect-cors.py @@ -1,20 +1,20 @@ def main(request, response): - location = request.GET.first("location") + location = request.GET.first(b"location") - if request.method == "OPTIONS": - if "redirect_preflight" in request.GET: + if request.method == u"OPTIONS": + if b"redirect_preflight" in request.GET: response.status = 302 - response.headers.set("Location", location) + response.headers.set(b"Location", location) else: response.status = 200 - response.headers.set("Access-Control-Allow-Methods", "GET") - response.headers.set("Access-Control-Max-Age", 1) - elif request.method == "GET": + response.headers.set(b"Access-Control-Allow-Methods", b"GET") + response.headers.set(b"Access-Control-Max-Age", 1) + elif request.method == u"GET": response.status = 302 - response.headers.set("Location", location) + response.headers.set(b"Location", location) - if "allow_origin" in request.GET: - response.headers.set("Access-Control-Allow-Origin", request.headers.get("origin")) + if b"allow_origin" in request.GET: + response.headers.set(b"Access-Control-Allow-Origin", request.headers.get(b"origin")) - if "allow_header" in request.GET: - response.headers.set("Access-Control-Allow-Headers", request.GET.first("allow_header")) + if b"allow_header" in request.GET: + response.headers.set(b"Access-Control-Allow-Headers", request.GET.first(b"allow_header")) diff --git a/tests/wpt/web-platform-tests/xhr/resources/redirect.py b/tests/wpt/web-platform-tests/xhr/resources/redirect.py index 2af9f2ee8a9..9d9bb332a70 100644 --- a/tests/wpt/web-platform-tests/xhr/resources/redirect.py +++ b/tests/wpt/web-platform-tests/xhr/resources/redirect.py @@ -1,14 +1,16 @@ import time -def main(request, response): - code = int(request.GET.first("code", 302)) - location = request.GET.first("location", request.url_parts.path + "?followed") +from wptserve.utils import isomorphic_encode - if "delay" in request.GET: - delay = float(request.GET.first("delay")) +def main(request, response): + code = int(request.GET.first(b"code", 302)) + location = request.GET.first(b"location", isomorphic_encode(request.url_parts.path + u"?followed")) + + if b"delay" in request.GET: + delay = float(request.GET.first(b"delay")) time.sleep(delay / 1E3) - if "followed" in request.GET: - return [("Content:Type", "text/plain")], "MAGIC HAPPENED" + if b"followed" in request.GET: + return [(b"Content:Type", b"text/plain")], b"MAGIC HAPPENED" else: - return (code, "WEBSRT MARKETING"), [("Location", location)], "TEST" + return (code, u"WEBSRT MARKETING"), [(b"Location", location)], b"TEST" diff --git a/tests/wpt/web-platform-tests/xhr/resources/requri.py b/tests/wpt/web-platform-tests/xhr/resources/requri.py index a3f7bfda351..c7f7330f11c 100644 --- a/tests/wpt/web-platform-tests/xhr/resources/requri.py +++ b/tests/wpt/web-platform-tests/xhr/resources/requri.py @@ -1,5 +1,5 @@ def main(request, response): - if "full" in request.GET: + if b"full" in request.GET: return request.url else: return request.request_path diff --git a/tests/wpt/web-platform-tests/xhr/resources/reset-token.py b/tests/wpt/web-platform-tests/xhr/resources/reset-token.py index 5c9a577b44c..257c2aae80c 100644 --- a/tests/wpt/web-platform-tests/xhr/resources/reset-token.py +++ b/tests/wpt/web-platform-tests/xhr/resources/reset-token.py @@ -1,5 +1,5 @@ def main(request, response): - response.headers.set("Access-Control-Allow-Origin", request.headers.get("origin")) - token = request.GET["token"] - request.server.stash.put(token, "") - response.content = "PASS" + response.headers.set(b"Access-Control-Allow-Origin", request.headers.get(b"origin")) + token = request.GET[b"token"] + request.server.stash.put(token, b"") + response.content = b"PASS" diff --git a/tests/wpt/web-platform-tests/xhr/resources/shift-jis-html.py b/tests/wpt/web-platform-tests/xhr/resources/shift-jis-html.py index fab78c0b3ac..47c67d8ae39 100644 --- a/tests/wpt/web-platform-tests/xhr/resources/shift-jis-html.py +++ b/tests/wpt/web-platform-tests/xhr/resources/shift-jis-html.py @@ -1,5 +1,5 @@ def main(request, response): - headers = [("Content-type", "text/html;charset=shift-jis")] + headers = [(b"Content-type", b"text/html;charset=shift-jis")] # Shift-JIS bytes for katakana TE SU TO ('test') content = chr(0x83) + chr(0x65) + chr(0x83) + chr(0x58) + chr(0x83) + chr(0x67) diff --git a/tests/wpt/webgl/meta/conformance2/rendering/draw-buffers.html.ini b/tests/wpt/webgl/meta/conformance2/rendering/draw-buffers.html.ini index 2d0e5b3111a..c0b76e415e6 100644 --- a/tests/wpt/webgl/meta/conformance2/rendering/draw-buffers.html.ini +++ b/tests/wpt/webgl/meta/conformance2/rendering/draw-buffers.html.ini @@ -158,3 +158,9 @@ [WebGL test #43: attachment 6 should be 0,255,0,255\nat (0, 0) expected: 0,255,0,255 was 0,0,0,0] expected: FAIL + [WebGL test #49: attachment 4 should be 0,255,0,255\nat (0, 0) expected: 0,255,0,255 was 255,0,0,0] + expected: FAIL + + [WebGL test #41: attachment 4 should be 0,255,0,255\nat (0, 0) expected: 0,255,0,255 was 255,0,0,0] + expected: FAIL +