From b43522423307395cc7db2b55e9390316e5c4ef11 Mon Sep 17 00:00:00 2001 From: WPT Sync Bot Date: Wed, 1 Jul 2020 09:06:00 +0000 Subject: [PATCH 1/2] Update web-platform-tests to revision b89d7ff93b5076d389404f2a062b83e73754307f --- .../url/url-in-tags-revoke.window.js.ini | 2 +- .../CSS2/floats/hit-test-floats-002.html.ini | 4 + .../inline-negative-margin-001.html.ini | 27 --- .../border-image-shorthand-001.htm.ini | 2 - .../reactions/HTMLMediaElement.html.ini | 2 + .../fetch/content-type/response.window.js.ini | 12 +- .../fetch/content-type/script.window.js.ini | 6 + .../nosniff/parsing-nosniff.window.js.ini | 3 - ...ross-origin-objects-on-new-window.html.ini | 2 - .../iframe-loading-lazy.tentative.html.ini | 6 + .../iframe_sandbox_popups_escaping-2.html.ini | 1 + ...rame_sandbox_popups_nonescaping-1.html.ini | 2 +- ...rame_sandbox_popups_nonescaping-2.html.ini | 2 +- .../execution-timing/077.html.ini | 4 + .../document-write/iframe_005.html.ini | 4 - .../module-static-import-delayed.html.ini | 4 + .../promise-job-entry.html.ini | 5 +- .../webmessaging/with-ports/017.html.ini | 5 + .../alpha/import-in-moduleworker.html.ini | 5 + .../url/url-in-tags-revoke.window.js.ini | 2 +- tests/wpt/metadata/MANIFEST.json | 227 ++++++++++++++---- .../CSS2/floats/hit-test-floats-002.html.ini | 4 + .../inline-negative-margin-001.html.ini | 5 +- .../border-image-shorthand-001.htm.ini | 2 - .../reactions/HTMLMediaElement.html.ini | 2 + .../fetch/content-type/response.window.js.ini | 12 +- .../fetch/content-type/script.window.js.ini | 6 + .../nosniff/parsing-nosniff.window.js.ini | 3 - ...ross-origin-objects-on-new-window.html.ini | 2 - .../iframe-loading-lazy.tentative.html.ini | 6 + .../iframe_sandbox_popups_escaping-2.html.ini | 1 + ...rame_sandbox_popups_nonescaping-1.html.ini | 2 +- ...rame_sandbox_popups_nonescaping-2.html.ini | 2 +- .../execution-timing/077.html.ini | 4 + .../document-write/iframe_005.html.ini | 4 - .../module-static-import-delayed.html.ini | 4 + .../promise-job-entry.html.ini | 5 +- .../webmessaging/with-ports/017.html.ini | 5 + .../alpha/import-in-moduleworker.html.ini | 1 + ...ature-policy-navigation.https.html.headers | 2 +- ...ature-policy-navigation.https.html.headers | 2 +- .../common/get-host-info.sub.js | 1 - .../common/redirect-opt-in.py | 10 +- .../wpt/web-platform-tests/common/square.png | Bin 0 -> 18299 bytes .../support/echo-allow-csp-from.py | 10 +- .../support/echo-policy-multiple.py | 18 +- .../support/echo-required-csp.py | 28 ++- .../generic/support/304-response.py | 22 +- .../navigate-to/support/delayed_frame.py | 4 +- ...redirect_to_post_message_to_frame_owner.py | 6 +- .../reporting/support/set-cookie.py | 15 +- .../support/echo-policy.py | 4 +- .../content-security-policy/support/report.py | 30 +-- .../support/resource.py | 4 +- .../floats/remove-float-in-first-line.html | 30 +++ .../border-image-shorthand-001.htm | 2 +- .../css/css-flexbox/align-items-009.html | 21 ++ .../clip-path-filter-radius-clips.html | 12 + .../clip-path-filter-radius-clips-ref.html | 4 + .../css/css-multicol/named-page.html | 10 + ...s-policy-feature-policy-coexist.https.html | 25 ++ ...-feature-policy-coexist.https.html.headers | 2 + ...der-policy-allowed-for-self.https.sub.html | 46 ++++ ...llowed-for-self.https.sub.html.sub.headers | 1 + .../corb/resources/sniffable-resource.py | 8 +- .../resources/hello.py | 8 +- .../resources/iframe.py | 6 +- .../resources/image.py | 20 +- .../resources/redirect.py | 8 +- .../resources/script.py | 8 +- .../fetch/nosniff/resources/css.py | 20 +- .../fetch/nosniff/resources/image.py | 20 +- .../fetch/nosniff/resources/js.py | 18 +- .../fetch/nosniff/resources/nosniff.py | 12 +- .../fetch/nosniff/resources/worker.py | 14 +- ...ml => require-corp-about-blank.https.html} | 0 ...quire-corp-about-blank.https.html.headers} | 0 ...l => require-corp-about-srcdoc.https.html} | 0 ...uire-corp-about-srcdoc.https.html.headers} | 0 .../iframe-loading-lazy.tentative.html | 69 ++++-- .../web-platform-tests/interfaces/webhid.idl | 112 +++++++++ .../fcp-only/fcp-video-frame.html | 3 +- .../resources/navigation-redirect-scope1.py | 10 +- .../resources/navigation-redirect-scope2.py | 10 +- .../resources/notification_icon.py | 10 +- .../service-worker/resources/redirect.py | 26 +- .../resources/request-headers.py | 8 +- .../sandboxed-iframe-fetch-event-iframe.py | 18 +- .../resources/service-worker-csp-worker.py | 24 +- .../resources/service-worker-header.py | 22 +- .../service-worker/resources/success.py | 8 +- .../resources/test-request-headers-worker.py | 19 +- .../service-worker/resources/trickle.py | 14 +- .../resources/update-claim-worker.py | 4 +- .../update-during-installation-worker.py | 12 +- .../resources/update-fetch-worker.py | 21 +- .../update-max-aged-worker-imported-script.py | 12 +- .../resources/update-max-aged-worker.py | 14 +- ...-missing-import-scripts-imported-worker.py | 6 +- ...date-missing-import-scripts-main-worker.py | 10 +- .../resources/update-nocookie-worker.py | 15 +- .../resources/update-recovery-worker.py | 26 +- .../service-worker/resources/update_shell.py | 8 +- .../script-style-attribute-csp-ref.html | 3 + .../scripted/script-style-attribute-csp.html | 22 ++ .../webhid/idlharness.https.window.js | 23 ++ .../rendering/draw-buffers.html.ini | 3 + 107 files changed, 948 insertions(+), 432 deletions(-) create mode 100644 tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-002.html.ini delete mode 100644 tests/wpt/metadata-layout-2020/css/css-backgrounds/border-image-shorthand-001.htm.ini create mode 100644 tests/wpt/metadata-layout-2020/custom-elements/reactions/HTMLMediaElement.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/semantics/scripting-1/the-script-element/execution-timing/077.html.ini delete mode 100644 tests/wpt/metadata-layout-2020/html/webappapis/dynamic-markup-insertion/document-write/iframe_005.html.ini create mode 100644 tests/wpt/metadata-layout-2020/html/webappapis/dynamic-markup-insertion/document-write/module-static-import-delayed.html.ini create mode 100644 tests/wpt/metadata-layout-2020/webmessaging/with-ports/017.html.ini create mode 100644 tests/wpt/metadata-layout-2020/workers/baseurl/alpha/import-in-moduleworker.html.ini create mode 100644 tests/wpt/metadata/css/CSS2/floats/hit-test-floats-002.html.ini delete mode 100644 tests/wpt/metadata/css/css-backgrounds/border-image-shorthand-001.htm.ini create mode 100644 tests/wpt/metadata/custom-elements/reactions/HTMLMediaElement.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/semantics/scripting-1/the-script-element/execution-timing/077.html.ini delete mode 100644 tests/wpt/metadata/html/webappapis/dynamic-markup-insertion/document-write/iframe_005.html.ini create mode 100644 tests/wpt/metadata/html/webappapis/dynamic-markup-insertion/document-write/module-static-import-delayed.html.ini create mode 100644 tests/wpt/metadata/webmessaging/with-ports/017.html.ini create mode 100644 tests/wpt/web-platform-tests/common/square.png create mode 100644 tests/wpt/web-platform-tests/css/CSS2/floats/remove-float-in-first-line.html create mode 100644 tests/wpt/web-platform-tests/css/css-flexbox/align-items-009.html create mode 100644 tests/wpt/web-platform-tests/css/css-masking/clip-path/clip-path-filter-radius-clips.html create mode 100644 tests/wpt/web-platform-tests/css/css-masking/clip-path/reference/clip-path-filter-radius-clips-ref.html create mode 100644 tests/wpt/web-platform-tests/css/css-multicol/named-page.html create mode 100644 tests/wpt/web-platform-tests/feature-policy/permissions-policy-feature-policy-coexist.https.html create mode 100644 tests/wpt/web-platform-tests/feature-policy/permissions-policy-feature-policy-coexist.https.html.headers create mode 100644 tests/wpt/web-platform-tests/feature-policy/permissions-policy-header-policy-allowed-for-self.https.sub.html create mode 100644 tests/wpt/web-platform-tests/feature-policy/permissions-policy-header-policy-allowed-for-self.https.sub.html.sub.headers rename tests/wpt/web-platform-tests/html/cross-origin-embedder-policy/{require-corp-about-blank.html => require-corp-about-blank.https.html} (100%) rename tests/wpt/web-platform-tests/html/cross-origin-embedder-policy/{require-corp-about-blank.html.headers => require-corp-about-blank.https.html.headers} (100%) rename tests/wpt/web-platform-tests/html/cross-origin-embedder-policy/{require-corp-about-srcdoc.html => require-corp-about-srcdoc.https.html} (100%) rename tests/wpt/web-platform-tests/html/cross-origin-embedder-policy/{require-corp-about-srcdoc.html.headers => require-corp-about-srcdoc.https.html.headers} (100%) create mode 100644 tests/wpt/web-platform-tests/interfaces/webhid.idl create mode 100644 tests/wpt/web-platform-tests/svg/scripted/script-style-attribute-csp-ref.html create mode 100644 tests/wpt/web-platform-tests/svg/scripted/script-style-attribute-csp.html create mode 100644 tests/wpt/web-platform-tests/webhid/idlharness.https.window.js diff --git a/tests/wpt/metadata-layout-2020/FileAPI/url/url-in-tags-revoke.window.js.ini b/tests/wpt/metadata-layout-2020/FileAPI/url/url-in-tags-revoke.window.js.ini index 3605e8f3fc9..76b44d9e9cf 100644 --- a/tests/wpt/metadata-layout-2020/FileAPI/url/url-in-tags-revoke.window.js.ini +++ b/tests/wpt/metadata-layout-2020/FileAPI/url/url-in-tags-revoke.window.js.ini @@ -4,7 +4,7 @@ expected: TIMEOUT [Opening a blob URL in a new window immediately before revoking it works.] - expected: TIMEOUT + expected: FAIL [Fetching a blob URL immediately before revoking it works in an iframe.] expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-002.html.ini b/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-002.html.ini new file mode 100644 index 00000000000..f64b45fea6b --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-002.html.ini @@ -0,0 +1,4 @@ +[hit-test-floats-002.html] + [Hit test float] + expected: FAIL + diff --git a/tests/wpt/metadata-layout-2020/css/CSS2/linebox/inline-negative-margin-001.html.ini b/tests/wpt/metadata-layout-2020/css/CSS2/linebox/inline-negative-margin-001.html.ini index 5e54b53e5d2..6425f4beda1 100644 --- a/tests/wpt/metadata-layout-2020/css/CSS2/linebox/inline-negative-margin-001.html.ini +++ b/tests/wpt/metadata-layout-2020/css/CSS2/linebox/inline-negative-margin-001.html.ini @@ -5,36 +5,9 @@ [[data-expected-height\] 7] expected: FAIL - [[data-expected-height\] 4] - expected: FAIL - [[data-expected-height\] 1] expected: FAIL - [[data-expected-height\] 10] - expected: FAIL - [[data-expected-height\] 2] expected: FAIL - [[data-expected-height\] 5] - expected: FAIL - - [[data-expected-height\] 6] - expected: FAIL - - [[data-expected-height\] 9] - expected: FAIL - - [[data-expected-height\] 8] - expected: FAIL - - [[data-expected-height\] 13] - expected: FAIL - - [[data-expected-height\] 12] - expected: FAIL - - [[data-expected-height\] 11] - 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 deleted file mode 100644 index 6484302570c..00000000000 --- a/tests/wpt/metadata-layout-2020/css/css-backgrounds/border-image-shorthand-001.htm.ini +++ /dev/null @@ -1,2 +0,0 @@ -[border-image-shorthand-001.htm] - expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/custom-elements/reactions/HTMLMediaElement.html.ini b/tests/wpt/metadata-layout-2020/custom-elements/reactions/HTMLMediaElement.html.ini new file mode 100644 index 00000000000..2ca05f57bb0 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/custom-elements/reactions/HTMLMediaElement.html.ini @@ -0,0 +1,2 @@ +[HTMLMediaElement.html] + expected: TIMEOUT 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 392d55789f4..24b243191a4 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,18 +315,18 @@ [ -
+ + +
+ + diff --git a/tests/wpt/web-platform-tests/interfaces/webhid.idl b/tests/wpt/web-platform-tests/interfaces/webhid.idl new file mode 100644 index 00000000000..aa699a31ba7 --- /dev/null +++ b/tests/wpt/web-platform-tests/interfaces/webhid.idl @@ -0,0 +1,112 @@ +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into reffy-reports +// (https://github.com/tidoust/reffy-reports) +// Source: WebHID API (https://wicg.github.io/webhid/) + +dictionary HIDDeviceFilter { + unsigned long vendorId; + unsigned short productId; + unsigned short usagePage; + unsigned short usage; +}; + +dictionary HIDDeviceRequestOptions { + required sequence filters; +}; + +[SecureContext] +interface HID : EventTarget { + attribute EventHandler onconnect; + attribute EventHandler ondisconnect; + Promise> getDevices(); + Promise> requestDevice( + HIDDeviceRequestOptions options); +}; + +[SecureContext] partial interface Navigator { + [SameObject] readonly attribute HID hid; +}; + +dictionary HIDConnectionEventInit : EventInit { + required HIDDevice device; +}; + +[ + Constructor(DOMString type, HIDConnectionEventInit eventInitDict), + SecureContext +] interface HIDConnectionEvent : Event { + [SameObject] readonly attribute HIDDevice device; +}; + +dictionary HIDInputReportEventInit : EventInit { + required HIDDevice device; + required octet reportId; + required DataView data; +}; + +[ + Constructor(DOMString type, HIDInputReportEventInit eventInitDict), + SecureContext +] interface HIDInputReportEvent : Event { + [SameObject] readonly attribute HIDDevice device; + readonly attribute octet reportId; + readonly attribute DataView data; +}; + +enum HIDUnitSystem { + "none", "si-linear", "si-rotation", "english-linear", + "english-rotation", "vendor-defined", "reserved" +}; + +[SecureContext] interface HIDReportItem { + readonly attribute boolean isAbsolute; + readonly attribute boolean isArray; + readonly attribute boolean isRange; + readonly attribute boolean hasNull; + readonly attribute FrozenArray usages; + readonly attribute unsigned long usageMinimum; + readonly attribute unsigned long usageMaximum; + readonly attribute unsigned short reportSize; + readonly attribute unsigned short reportCount; + readonly attribute unsigned long unitExponent; + readonly attribute HIDUnitSystem unitSystem; + readonly attribute byte unitFactorLengthExponent; + readonly attribute byte unitFactorMassExponent; + readonly attribute byte unitFactorTimeExponent; + readonly attribute byte unitFactorTemperatureExponent; + readonly attribute byte unitFactorCurrentExponent; + readonly attribute byte unitFactorLuminousIntensityExponent; + readonly attribute long logicalMinimum; + readonly attribute long logicalMaximum; + readonly attribute long physicalMinimum; + readonly attribute long physicalMaximum; + readonly attribute FrozenArray strings; +}; + +[SecureContext] interface HIDReportInfo { + readonly attribute octet reportId; + readonly attribute FrozenArray items; +}; + +[SecureContext] interface HIDCollectionInfo { + readonly attribute unsigned short usagePage; + readonly attribute unsigned short usage; + readonly attribute FrozenArray children; + readonly attribute FrozenArray inputReports; + readonly attribute FrozenArray outputReports; + readonly attribute FrozenArray featureReports; +}; + +[SecureContext] interface HIDDevice : EventTarget { + attribute EventHandler oninputreport; + readonly attribute boolean opened; + readonly attribute unsigned short vendorId; + readonly attribute unsigned short productId; + readonly attribute DOMString productName; + readonly attribute FrozenArray collections; + Promise open(); + Promise close(); + Promise sendReport(octet reportId, BufferSource data); + Promise sendFeatureReport(octet reportId, BufferSource data); + Promise receiveFeatureReport(octet reportId); +}; diff --git a/tests/wpt/web-platform-tests/paint-timing/fcp-only/fcp-video-frame.html b/tests/wpt/web-platform-tests/paint-timing/fcp-only/fcp-video-frame.html index cdfd1670715..9089883cdfb 100644 --- a/tests/wpt/web-platform-tests/paint-timing/fcp-only/fcp-video-frame.html +++ b/tests/wpt/web-platform-tests/paint-timing/fcp-only/fcp-video-frame.html @@ -6,6 +6,7 @@ + diff --git a/tests/wpt/web-platform-tests/webhid/idlharness.https.window.js b/tests/wpt/web-platform-tests/webhid/idlharness.https.window.js new file mode 100644 index 00000000000..fa763e0d80a --- /dev/null +++ b/tests/wpt/web-platform-tests/webhid/idlharness.https.window.js @@ -0,0 +1,23 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +'use strict'; + +// https://wicg.github.io/webhid/ + +idl_test( + ['webhid'], + ['html', 'dom'], + idl_array => { + idl_array.add_objects({ + HID: ['navigator.hid'], + Navigator: ['navigator'], + // TODO: HIDConnectionEvent + // TODO: HIDInputReportEvent + // TODO: HIDReportItem + // TODO: HIDReportInfo + // TODO: HIDCollectionInfo + // TODO: HIDDevice + }); + } +); 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 22c147a8867..07c1b8f8ea2 100644 --- a/tests/wpt/webgl/meta/conformance2/rendering/draw-buffers.html.ini +++ b/tests/wpt/webgl/meta/conformance2/rendering/draw-buffers.html.ini @@ -167,3 +167,6 @@ [WebGL test #52: attachment 7 should be 0,255,0,255\nat (0, 0) expected: 0,255,0,255 was 255,0,0,0] expected: FAIL + [WebGL test #52: attachment 7 should be 0,255,0,255\nat (0, 0) expected: 0,255,0,255 was 0,0,255,0] + expected: FAIL + From d1718301c5472f63a6f3f518d984d5b968723d75 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Wed, 1 Jul 2020 11:55:53 -0400 Subject: [PATCH 2/2] Add 2020 flexbox failure. --- .../css/css-flexbox/align-items-009.html.ini | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/wpt/metadata-layout-2020/css/css-flexbox/align-items-009.html.ini diff --git a/tests/wpt/metadata-layout-2020/css/css-flexbox/align-items-009.html.ini b/tests/wpt/metadata-layout-2020/css/css-flexbox/align-items-009.html.ini new file mode 100644 index 00000000000..e458bf92a62 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-flexbox/align-items-009.html.ini @@ -0,0 +1,2 @@ +[align-items-009.html] + expected: FAIL