diff --git a/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-003.html.ini b/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-003.html.ini new file mode 100644 index 00000000000..f29da48a2a0 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-003.html.ini @@ -0,0 +1,4 @@ +[hit-test-floats-003.html] + [Miss float below something else] + expected: FAIL + diff --git a/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-005.html.ini b/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-005.html.ini new file mode 100644 index 00000000000..baa9f1a7541 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-005.html.ini @@ -0,0 +1,4 @@ +[hit-test-floats-005.html] + [Miss clipped float] + expected: FAIL + diff --git a/tests/wpt/metadata-layout-2020/css/css-flexbox/box-sizing-001.html.ini b/tests/wpt/metadata-layout-2020/css/css-flexbox/box-sizing-001.html.ini new file mode 100644 index 00000000000..f568bb5baf5 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-flexbox/box-sizing-001.html.ini @@ -0,0 +1,13 @@ +[box-sizing-001.html] + [.flexbox 10] + expected: FAIL + + [.flexbox 4] + expected: FAIL + + [.flexbox 8] + expected: FAIL + + [.flexbox 9] + expected: FAIL + diff --git a/tests/wpt/metadata-layout-2020/css/css-text/hyphens/hyphens-auto-010.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/hyphens/hyphens-auto-010.html.ini new file mode 100644 index 00000000000..bc707da5729 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/hyphens/hyphens-auto-010.html.ini @@ -0,0 +1,2 @@ +[hyphens-auto-010.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/hyphens/hyphens-manual-011.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/hyphens/hyphens-manual-011.html.ini new file mode 100644 index 00000000000..24a1e70936a --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/hyphens/hyphens-manual-011.html.ini @@ -0,0 +1,2 @@ +[hyphens-manual-011.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/hyphens/hyphens-manual-012.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/hyphens/hyphens-manual-012.html.ini new file mode 100644 index 00000000000..f900b4c4b11 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/hyphens/hyphens-manual-012.html.ini @@ -0,0 +1,2 @@ +[hyphens-manual-012.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/hyphens/hyphens-manual-013.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/hyphens/hyphens-manual-013.html.ini new file mode 100644 index 00000000000..364a2a970f1 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/hyphens/hyphens-manual-013.html.ini @@ -0,0 +1,2 @@ +[hyphens-manual-013.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/hyphens/hyphens-none-011.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/hyphens/hyphens-none-011.html.ini new file mode 100644 index 00000000000..93e96554135 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/hyphens/hyphens-none-011.html.ini @@ -0,0 +1,2 @@ +[hyphens-none-011.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/break-spaces-051.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/break-spaces-051.html.ini new file mode 100644 index 00000000000..a7f1149add4 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/break-spaces-051.html.ini @@ -0,0 +1,2 @@ +[break-spaces-051.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/break-spaces-052.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/break-spaces-052.html.ini new file mode 100644 index 00000000000..988ad46616a --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/break-spaces-052.html.ini @@ -0,0 +1,2 @@ +[break-spaces-052.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/pre-line-051.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/pre-line-051.html.ini new file mode 100644 index 00000000000..8a6c15721d6 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/pre-line-051.html.ini @@ -0,0 +1,2 @@ +[pre-line-051.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/pre-line-052.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/pre-line-052.html.ini new file mode 100644 index 00000000000..65d4fabf294 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/pre-line-052.html.ini @@ -0,0 +1,2 @@ +[pre-line-052.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/pre-wrap-051.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/pre-wrap-051.html.ini new file mode 100644 index 00000000000..114fd931e51 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/pre-wrap-051.html.ini @@ -0,0 +1,2 @@ +[pre-wrap-051.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/pre-wrap-052.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/pre-wrap-052.html.ini new file mode 100644 index 00000000000..b6223186447 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/pre-wrap-052.html.ini @@ -0,0 +1,2 @@ +[pre-wrap-052.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-normal-011.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-normal-011.html.ini new file mode 100644 index 00000000000..c0ad8b521d7 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-normal-011.html.ini @@ -0,0 +1,2 @@ +[white-space-normal-011.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-011.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-011.html.ini new file mode 100644 index 00000000000..4e25f832bb2 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-011.html.ini @@ -0,0 +1,2 @@ +[white-space-pre-011.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-031.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-031.html.ini new file mode 100644 index 00000000000..3d29ea04bca --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-031.html.ini @@ -0,0 +1,2 @@ +[white-space-pre-031.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-032.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-032.html.ini new file mode 100644 index 00000000000..6abf3a4d191 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-032.html.ini @@ -0,0 +1,2 @@ +[white-space-pre-032.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-034.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-034.html.ini new file mode 100644 index 00000000000..cac173851a0 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-034.html.ini @@ -0,0 +1,2 @@ +[white-space-pre-034.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-035.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-035.html.ini new file mode 100644 index 00000000000..7058f550102 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-035.html.ini @@ -0,0 +1,2 @@ +[white-space-pre-035.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-051.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-051.html.ini new file mode 100644 index 00000000000..7173a3ddfbc --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-051.html.ini @@ -0,0 +1,2 @@ +[white-space-pre-051.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-052.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-052.html.ini new file mode 100644 index 00000000000..ecec2338572 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/white-space-pre-052.html.ini @@ -0,0 +1,2 @@ +[white-space-pre-052.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-001.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-001.html.ini new file mode 100644 index 00000000000..218fa1705d7 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-001.html.ini @@ -0,0 +1,2 @@ +[ws-break-spaces-applies-to-001.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-002.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-002.html.ini new file mode 100644 index 00000000000..090c9d9e2ac --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-002.html.ini @@ -0,0 +1,2 @@ +[ws-break-spaces-applies-to-002.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-003.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-003.html.ini new file mode 100644 index 00000000000..d24bde326b7 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-003.html.ini @@ -0,0 +1,2 @@ +[ws-break-spaces-applies-to-003.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-005.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-005.html.ini new file mode 100644 index 00000000000..7a5e9173840 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-005.html.ini @@ -0,0 +1,2 @@ +[ws-break-spaces-applies-to-005.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-006.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-006.html.ini new file mode 100644 index 00000000000..3d3b8bf01fb --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-006.html.ini @@ -0,0 +1,2 @@ +[ws-break-spaces-applies-to-006.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-007.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-007.html.ini new file mode 100644 index 00000000000..fb9fb323996 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-007.html.ini @@ -0,0 +1,2 @@ +[ws-break-spaces-applies-to-007.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-008.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-008.html.ini new file mode 100644 index 00000000000..366b54520fb --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-008.html.ini @@ -0,0 +1,2 @@ +[ws-break-spaces-applies-to-008.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-009.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-009.html.ini new file mode 100644 index 00000000000..4afccbc597f --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-009.html.ini @@ -0,0 +1,2 @@ +[ws-break-spaces-applies-to-009.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-010.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-010.html.ini new file mode 100644 index 00000000000..cd7a4694b37 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-010.html.ini @@ -0,0 +1,2 @@ +[ws-break-spaces-applies-to-010.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-011.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-011.html.ini new file mode 100644 index 00000000000..3f731145056 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-011.html.ini @@ -0,0 +1,2 @@ +[ws-break-spaces-applies-to-011.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-014.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-014.html.ini new file mode 100644 index 00000000000..1d61127f7be --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-014.html.ini @@ -0,0 +1,2 @@ +[ws-break-spaces-applies-to-014.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-015.html.ini b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-015.html.ini new file mode 100644 index 00000000000..9d9b0a4bf12 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-text/white-space/ws-break-spaces-applies-to-015.html.ini @@ -0,0 +1,2 @@ +[ws-break-spaces-applies-to-015.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/encoding/textdecoder-copy.any.js.ini b/tests/wpt/metadata-layout-2020/encoding/textdecoder-copy.any.js.ini new file mode 100644 index 00000000000..f6f48f38a50 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/encoding/textdecoder-copy.any.js.ini @@ -0,0 +1,15 @@ +[textdecoder-copy.any.sharedworker.html] + expected: ERROR + +[textdecoder-copy.any.html] + [Modify buffer after passing it in (SharedArrayBuffer)] + expected: FAIL + + +[textdecoder-copy.any.serviceworker.html] + expected: ERROR + +[textdecoder-copy.any.worker.html] + [Modify buffer after passing it in (SharedArrayBuffer)] + expected: FAIL + diff --git a/tests/wpt/metadata-layout-2020/encoding/textdecoder-streaming.any.js.ini b/tests/wpt/metadata-layout-2020/encoding/textdecoder-streaming.any.js.ini new file mode 100644 index 00000000000..7ece92ea3df --- /dev/null +++ b/tests/wpt/metadata-layout-2020/encoding/textdecoder-streaming.any.js.ini @@ -0,0 +1,11 @@ +[textdecoder-streaming.any.sharedworker.html] + expected: ERROR + +[textdecoder-streaming.any.worker.html] + expected: CRASH + +[textdecoder-streaming.any.html] + expected: CRASH + +[textdecoder-streaming.any.serviceworker.html] + expected: ERROR 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 27a4ae36d5c..b794351d8c1 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 @@ -318,18 +318,21 @@ [ - - - diff --git a/tests/wpt/web-platform-tests/html/user-activation/activation-hierarchy-sameorigin-parent-manual.html b/tests/wpt/web-platform-tests/html/user-activation/activation-hierarchy-sameorigin-parent-manual.html deleted file mode 100644 index a7f423eea56..00000000000 --- a/tests/wpt/web-platform-tests/html/user-activation/activation-hierarchy-sameorigin-parent-manual.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - -

User activation visibility across same-origin frame boundary

-

Confirms that the state is visible in both parent and child

-
    -
  1. Click anywhere on the green area (child frame). -
- - - - diff --git a/tests/wpt/web-platform-tests/html/user-activation/propagation-crossorigin.sub.tentative.html b/tests/wpt/web-platform-tests/html/user-activation/propagation-crossorigin.sub.tentative.html new file mode 100644 index 00000000000..a2f578f53b9 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/user-activation/propagation-crossorigin.sub.tentative.html @@ -0,0 +1,127 @@ + + + + + + + + + + + +

User activation propagation across cross-origin frame boundary

+

Tests that user activation does not propagate across cross-origin frame boundary.

+
    +
  1. Click anywhere on the green area (child frame). +
+ + + + diff --git a/tests/wpt/web-platform-tests/html/user-activation/propagation-sameorigin.tentative.html b/tests/wpt/web-platform-tests/html/user-activation/propagation-sameorigin.tentative.html new file mode 100644 index 00000000000..76d2b68fa70 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/user-activation/propagation-sameorigin.tentative.html @@ -0,0 +1,127 @@ + + + + + + + + + + + +

User activation propagation across same-origin frame boundary

+

Tests that user activation propagates across same-origin frame boundary.

+
    +
  1. Click anywhere on the green area (child frame). +
+ + + + diff --git a/tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-crossorigin-child.sub.html b/tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-crossorigin-child.sub.html deleted file mode 100644 index 6dbd4683044..00000000000 --- a/tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-crossorigin-child.sub.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - -

Child frame

- - - - diff --git a/tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-crossorigin-grandchild.html b/tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-crossorigin-grandchild.html deleted file mode 100644 index b9fe19a746f..00000000000 --- a/tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-crossorigin-grandchild.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - -

Grandchild frame

- - diff --git a/tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-sameorigin-child.html b/tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-sameorigin-child.html deleted file mode 100644 index d54c7efc9bd..00000000000 --- a/tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-sameorigin-child.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - -

Child frame

- - - - diff --git a/tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-sameorigin-grandchild.html b/tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-sameorigin-grandchild.html deleted file mode 100644 index 9d664e2356a..00000000000 --- a/tests/wpt/web-platform-tests/html/user-activation/resources/activation-hierarchy-sameorigin-grandchild.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - -

Grandchild frame

- - diff --git a/tests/wpt/web-platform-tests/html/user-activation/resources/child-two.html b/tests/wpt/web-platform-tests/html/user-activation/resources/child-two.html index dc50742051f..caf23f4dadd 100644 --- a/tests/wpt/web-platform-tests/html/user-activation/resources/child-two.html +++ b/tests/wpt/web-platform-tests/html/user-activation/resources/child-two.html @@ -8,7 +8,8 @@ }), "*"); window.addEventListener("message", event => { - if (event.data == "report") { + var msg = JSON.parse(event.data); + if (msg.type == "report") { window.top.postMessage(JSON.stringify({ "type": "child-two-report", "isActive": navigator.userActivation.isActive, diff --git a/tests/wpt/web-platform-tests/html/user-activation/resources/propagation-crossorigin-child.sub.html b/tests/wpt/web-platform-tests/html/user-activation/resources/propagation-crossorigin-child.sub.html new file mode 100644 index 00000000000..3cdd6886da2 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/user-activation/resources/propagation-crossorigin-child.sub.html @@ -0,0 +1,27 @@ + + + + + + + +
Cross-origin child frame
+ + + diff --git a/tests/wpt/web-platform-tests/html/user-activation/resources/propagation-sameorigin-child.html b/tests/wpt/web-platform-tests/html/user-activation/resources/propagation-sameorigin-child.html new file mode 100644 index 00000000000..69ad50cb717 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/user-activation/resources/propagation-sameorigin-child.html @@ -0,0 +1,27 @@ + + + + + + + +
Same-origin child frame
+ + + diff --git a/tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/requires-failure.https.any.js b/tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/requires-failure.https.any.js index f195a70fdf9..8b688403671 100644 --- a/tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/requires-failure.https.any.js +++ b/tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/requires-failure.https.any.js @@ -1,7 +1,8 @@ // META: global=!default,window,serviceworker test(() => { - const sab = new SharedArrayBuffer(16); + // See https://github.com/whatwg/html/issues/5380 for why not `new SharedArrayBuffer()` + const sab = new WebAssembly.Memory({ shared:true, initial:1, maximum:1 }).buffer; const ta = new Int32Array(sab); assert_throws_js(TypeError, () => { diff --git a/tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/requires-success.any.js b/tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/requires-success.any.js index 290b44353c8..9adc044a0dd 100644 --- a/tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/requires-success.any.js +++ b/tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/requires-success.any.js @@ -1,7 +1,8 @@ // META: global=!default,dedicatedworker,sharedworker test(() => { - const sab = new SharedArrayBuffer(16); + // See https://github.com/whatwg/html/issues/5380 for why not `new SharedArrayBuffer()` + const sab = new WebAssembly.Memory({ shared:true, initial:1, maximum:1 }).buffer; const ta = new Int32Array(sab); assert_equals(Atomics.wait(ta, 0, 0, 10), "timed-out"); diff --git a/tests/wpt/web-platform-tests/mixed-content/gen/top.http-rp/opt-in/sharedworker-import.https.html b/tests/wpt/web-platform-tests/mixed-content/gen/top.http-rp/opt-in/sharedworker-import.https.html new file mode 100644 index 00000000000..0644d1f03e9 --- /dev/null +++ b/tests/wpt/web-platform-tests/mixed-content/gen/top.http-rp/opt-in/sharedworker-import.https.html @@ -0,0 +1,122 @@ + + + + + + + + + + + + + +
+ + diff --git a/tests/wpt/web-platform-tests/mixed-content/gen/top.http-rp/opt-in/sharedworker-import.https.html.headers b/tests/wpt/web-platform-tests/mixed-content/gen/top.http-rp/opt-in/sharedworker-import.https.html.headers new file mode 100644 index 00000000000..46e2255e388 --- /dev/null +++ b/tests/wpt/web-platform-tests/mixed-content/gen/top.http-rp/opt-in/sharedworker-import.https.html.headers @@ -0,0 +1 @@ +Content-Security-Policy: block-all-mixed-content diff --git a/tests/wpt/web-platform-tests/mixed-content/gen/top.http-rp/opt-in/worker-import.https.html b/tests/wpt/web-platform-tests/mixed-content/gen/top.http-rp/opt-in/worker-import.https.html new file mode 100644 index 00000000000..54993228187 --- /dev/null +++ b/tests/wpt/web-platform-tests/mixed-content/gen/top.http-rp/opt-in/worker-import.https.html @@ -0,0 +1,122 @@ + + + + + + + + + + + + + +
+ + diff --git a/tests/wpt/web-platform-tests/mixed-content/gen/top.http-rp/opt-in/worker-import.https.html.headers b/tests/wpt/web-platform-tests/mixed-content/gen/top.http-rp/opt-in/worker-import.https.html.headers new file mode 100644 index 00000000000..46e2255e388 --- /dev/null +++ b/tests/wpt/web-platform-tests/mixed-content/gen/top.http-rp/opt-in/worker-import.https.html.headers @@ -0,0 +1 @@ +Content-Security-Policy: block-all-mixed-content diff --git a/tests/wpt/web-platform-tests/mixed-content/gen/top.meta/opt-in/sharedworker-import.https.html b/tests/wpt/web-platform-tests/mixed-content/gen/top.meta/opt-in/sharedworker-import.https.html new file mode 100644 index 00000000000..3b156c64098 --- /dev/null +++ b/tests/wpt/web-platform-tests/mixed-content/gen/top.meta/opt-in/sharedworker-import.https.html @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + +
+ + diff --git a/tests/wpt/web-platform-tests/mixed-content/gen/top.meta/opt-in/worker-import.https.html b/tests/wpt/web-platform-tests/mixed-content/gen/top.meta/opt-in/worker-import.https.html new file mode 100644 index 00000000000..50db49acc87 --- /dev/null +++ b/tests/wpt/web-platform-tests/mixed-content/gen/top.meta/opt-in/worker-import.https.html @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + +
+ + diff --git a/tests/wpt/web-platform-tests/mixed-content/gen/top.meta/unset/sharedworker-import.https.html b/tests/wpt/web-platform-tests/mixed-content/gen/top.meta/unset/sharedworker-import.https.html new file mode 100644 index 00000000000..71679b658aa --- /dev/null +++ b/tests/wpt/web-platform-tests/mixed-content/gen/top.meta/unset/sharedworker-import.https.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + +
+ + diff --git a/tests/wpt/web-platform-tests/mixed-content/gen/top.meta/unset/worker-import.https.html b/tests/wpt/web-platform-tests/mixed-content/gen/top.meta/unset/worker-import.https.html new file mode 100644 index 00000000000..208ae14bfa5 --- /dev/null +++ b/tests/wpt/web-platform-tests/mixed-content/gen/top.meta/unset/worker-import.https.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + + +
+ + diff --git a/tests/wpt/web-platform-tests/mixed-content/spec.src.json b/tests/wpt/web-platform-tests/mixed-content/spec.src.json index 1e7d7c9dbe0..b001317d578 100644 --- a/tests/wpt/web-platform-tests/mixed-content/spec.src.json +++ b/tests/wpt/web-platform-tests/mixed-content/spec.src.json @@ -91,10 +91,12 @@ "picture-tag", "script-tag", "sharedworker-classic", + "sharedworker-import", "sharedworker-import-data", "sharedworker-module", "websocket", "worker-classic", + "worker-import", "worker-import-data", "worker-module", "worklet-animation", @@ -131,10 +133,12 @@ "picture-tag", "script-tag", "sharedworker-classic", + "sharedworker-import", "sharedworker-import-data", "sharedworker-module", "websocket", "worker-classic", + "worker-import", "worker-import-data", "worker-module", "worklet-animation", @@ -171,10 +175,12 @@ "picture-tag", "script-tag", "sharedworker-classic", + "sharedworker-import", "sharedworker-import-data", "sharedworker-module", "websocket", "worker-classic", + "worker-import", "worker-import-data", "worker-module", "worklet-animation", @@ -410,11 +416,13 @@ "picture-tag": [], "script-tag": [], "sharedworker-classic": [], + "sharedworker-import": [], "sharedworker-import-data": [], "sharedworker-module": [], "video-tag": [], "websocket": [], "worker-classic": [], + "worker-import": [], "worker-import-data": [], "worker-module": [], "worklet-animation": [], diff --git a/tests/wpt/web-platform-tests/orientation-sensor/orientation-sensor-tests.js b/tests/wpt/web-platform-tests/orientation-sensor/orientation-sensor-tests.js index 5d35f3b9afc..9d44d638705 100644 --- a/tests/wpt/web-platform-tests/orientation-sensor/orientation-sensor-tests.js +++ b/tests/wpt/web-platform-tests/orientation-sensor/orientation-sensor-tests.js @@ -42,7 +42,9 @@ async function checkPopulateMatrix(t, sensorProvider, sensorType) { // Throws if passed SharedArrayBuffer view. assert_throws_js(TypeError, - () => sensor.populateMatrix(new Float32Array(new SharedArrayBuffer(16)))); + // See https://github.com/whatwg/html/issues/5380 for why not `new SharedArrayBuffer()` + // WebAssembly.Memory's size is in multiples of 64 KiB + () => sensor.populateMatrix(new Float32Array(new WebAssembly.Memory({ shared:true, initial:1, maximum:1 }).buffer))); sensor.start(); diff --git a/tests/wpt/web-platform-tests/pointerevents/pointerevent_lostpointercapture_for_disconnected_node_in_shadow_dom.html b/tests/wpt/web-platform-tests/pointerevents/pointerevent_lostpointercapture_for_disconnected_node_in_shadow_dom.html deleted file mode 100644 index f03f98abe06..00000000000 --- a/tests/wpt/web-platform-tests/pointerevents/pointerevent_lostpointercapture_for_disconnected_node_in_shadow_dom.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - Lostpointercapture fires on document when target in shadow dom is removed - - - - - - - - - - -

Pointer Events - lostpointercapture when capturing element in shadow dom is removed

-

- Test Description: - This test checks if lostpointercapture is fired at the document when the capturing node that is in shadow dom is removed from the shadow dom. - Complete the following actions: -
    -
  1. Press left mouse button over "Set Capture" button. Pointer should be captured by the gray rectangle which is in shadow dom.
  2. -
  3. Gray rectangle will be removed from shadow dom.
  4. -
  5. "lostpointercapture" should be received on the document not on the gray rectangle.
  6. -
-

-
-
- -
- - - - diff --git a/tests/wpt/web-platform-tests/pointerevents/pointerevent_lostpointercapture_for_disconnected_shadow_host.html b/tests/wpt/web-platform-tests/pointerevents/pointerevent_lostpointercapture_for_disconnected_shadow_host.html deleted file mode 100644 index 4b5c9f6eae8..00000000000 --- a/tests/wpt/web-platform-tests/pointerevents/pointerevent_lostpointercapture_for_disconnected_shadow_host.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - Lostpointercapture fires on document when target in shadow dom is removed - - - - - - - - - - - -

Pointer Events - lostpointercapture when capturing element in shadow dom is removed by removing the shadow host

-

- Test Description: - This test checks if lostpointercapture is fired at the document when the capturing node is removed from the document by removing the shadow host. - The shadow host is colored magenta and the shadow dom element is colored gray. - Complete the following actions: -
    -
  1. Press left mouse button over "Set Capture" button. Pointer should be captured by the gray rectangle.
  2. -
  3. Shadow host magenta rectangle including the gray rectangle will be removed from shadow dom.
  4. -
  5. "lostpointercapture" should be received on the document not on the gray rectangle.
  6. -
-

-
-
- -
- - - - diff --git a/tests/wpt/web-platform-tests/pointerevents/pointerevent_pointercapture-in-custom-element.html b/tests/wpt/web-platform-tests/pointerevents/pointerevent_pointercapture-in-custom-element.html deleted file mode 100644 index e8f143b309f..00000000000 --- a/tests/wpt/web-platform-tests/pointerevents/pointerevent_pointercapture-in-custom-element.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - PointerCapture for Custome Shadow DOM - - - - - - - - - - - - -

PointerCapture by Custom Element's Shadow DOM

- The magenta box below is part of a custom element's Shadow DOM. - - - -
- - - diff --git a/tests/wpt/web-platform-tests/pointerevents/pointerevent_pointercapture-in-shadow-dom.html b/tests/wpt/web-platform-tests/pointerevents/pointerevent_pointercapture-in-shadow-dom.html deleted file mode 100644 index 8279665f97b..00000000000 --- a/tests/wpt/web-platform-tests/pointerevents/pointerevent_pointercapture-in-shadow-dom.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - PointerCapture for Shadow DOM Elements - - - - - - - - - - - -

PointerCapture by Shadow DOM element

- The light gray box below is part of Shadow DOM. - -
-
- - - diff --git a/tests/wpt/web-platform-tests/portals/portal-activate-data.html b/tests/wpt/web-platform-tests/portals/portal-activate-data.html index 004fa97e55c..260bb00ff06 100644 --- a/tests/wpt/web-platform-tests/portals/portal-activate-data.html +++ b/tests/wpt/web-platform-tests/portals/portal-activate-data.html @@ -74,7 +74,8 @@ promise_test(async t => { const w = await openBlankPortalHost(); await promise_rejects_dom( t, 'DataCloneError', w.DOMException, - openPortalAndActivate('', {data: new SharedArrayBuffer}, w)); + // See https://github.com/whatwg/html/issues/5380 for why not `new SharedArrayBuffer()` + openPortalAndActivate('', {data: new WebAssembly.Memory({ shared:true, initial:1, maximum:1 }).buffer}, w)); }, "A SharedArrayBuffer cannot be passed through activate data."); promise_test(async t => { diff --git a/tests/wpt/web-platform-tests/referrer-policy/spec.src.json b/tests/wpt/web-platform-tests/referrer-policy/spec.src.json index 1d6ed7cca62..8d2a6d2e0b1 100644 --- a/tests/wpt/web-platform-tests/referrer-policy/spec.src.json +++ b/tests/wpt/web-platform-tests/referrer-policy/spec.src.json @@ -668,9 +668,11 @@ "link-prefetch-tag", "object-tag", "picture-tag", + "sharedworker-import", "sharedworker-import-data", "video-tag", "websocket", + "worker-import", "worker-import-data", "worklet-animation", "worklet-animation-import-data", @@ -795,11 +797,13 @@ "attr" ], "sharedworker-classic": [], + "sharedworker-import": [], "sharedworker-import-data": [], "sharedworker-module": [], "video-tag": [], "websocket": [], "worker-classic": [], + "worker-import": [], "worker-import-data": [], "worker-module": [], "worklet-animation": [], diff --git a/tests/wpt/web-platform-tests/svg/linking/reftests/reference/green-100x100.svg b/tests/wpt/web-platform-tests/svg/linking/reftests/reference/green-100x100.svg new file mode 100644 index 00000000000..120941444a4 --- /dev/null +++ b/tests/wpt/web-platform-tests/svg/linking/reftests/reference/green-100x100.svg @@ -0,0 +1,3 @@ + + + diff --git a/tests/wpt/web-platform-tests/svg/linking/reftests/url-processing-invalid-base.svg b/tests/wpt/web-platform-tests/svg/linking/reftests/url-processing-invalid-base.svg new file mode 100644 index 00000000000..fc5d7c6b062 --- /dev/null +++ b/tests/wpt/web-platform-tests/svg/linking/reftests/url-processing-invalid-base.svg @@ -0,0 +1,15 @@ + + An invalid base URL makes all internal references invalid + + + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/svg/linking/reftests/url-processing-whitespace-001.svg b/tests/wpt/web-platform-tests/svg/linking/reftests/url-processing-whitespace-001.svg new file mode 100644 index 00000000000..6baa0fdd844 --- /dev/null +++ b/tests/wpt/web-platform-tests/svg/linking/reftests/url-processing-whitespace-001.svg @@ -0,0 +1,17 @@ + + Leading and trailing whitespace is stripped from (local) URL references (<paint>) + + + + + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/svg/linking/reftests/url-processing-whitespace-002.svg b/tests/wpt/web-platform-tests/svg/linking/reftests/url-processing-whitespace-002.svg new file mode 100644 index 00000000000..ee4969a532d --- /dev/null +++ b/tests/wpt/web-platform-tests/svg/linking/reftests/url-processing-whitespace-002.svg @@ -0,0 +1,19 @@ + + Leading and trailing whitespace is stripped from (local) URL references (<use> href) + + + + + + + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/svg/linking/reftests/url-processing-whitespace-003.svg b/tests/wpt/web-platform-tests/svg/linking/reftests/url-processing-whitespace-003.svg new file mode 100644 index 00000000000..1dabd9f8f97 --- /dev/null +++ b/tests/wpt/web-platform-tests/svg/linking/reftests/url-processing-whitespace-003.svg @@ -0,0 +1,24 @@ + + Leading and trailing whitespace is stripped from (local) URL references (<linearGradient> href) + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/tools/lint/tests/test_file_lints.py b/tests/wpt/web-platform-tests/tools/lint/tests/test_file_lints.py index 43e8beb9956..72d4a05c902 100644 --- a/tests/wpt/web-platform-tests/tools/lint/tests/test_file_lints.py +++ b/tests/wpt/web-platform-tests/tools/lint/tests/test_file_lints.py @@ -633,8 +633,11 @@ def test_late_timeout(): ] +# Note: This test checks the print *statement* (which doesn't exist in python 3). +# The print *function* is checked in test_print_function below. +@pytest.mark.skipif(six.PY3, reason="Cannot parse print statements from python 3") def test_print_statement(): - error_map = check_with_files(b"def foo():\n print('statement')\n print\n") + error_map = check_with_files(b"def foo():\n print 'statement'\n print\n") for (filename, (errors, kind)) in error_map.items(): check_errors(errors) diff --git a/tests/wpt/web-platform-tests/tools/wptserve/setup.py b/tests/wpt/web-platform-tests/tools/wptserve/setup.py index c9c364b8bac..759cb48d1f6 100644 --- a/tests/wpt/web-platform-tests/tools/wptserve/setup.py +++ b/tests/wpt/web-platform-tests/tools/wptserve/setup.py @@ -1,6 +1,6 @@ from setuptools import setup -PACKAGE_VERSION = '2.0' +PACKAGE_VERSION = '3.0' deps = ["six>=1.8", "h2==3.0.1"] setup(name='wptserve', diff --git a/tests/wpt/web-platform-tests/upgrade-insecure-requests/spec.src.json b/tests/wpt/web-platform-tests/upgrade-insecure-requests/spec.src.json index 43f2d6dbc18..0b987d76b7c 100644 --- a/tests/wpt/web-platform-tests/upgrade-insecure-requests/spec.src.json +++ b/tests/wpt/web-platform-tests/upgrade-insecure-requests/spec.src.json @@ -144,7 +144,9 @@ "object-tag", "picture-tag", "script-tag", - "video-tag" + "sharedworker-import", + "video-tag", + "worker-import" ], "origin": "*", "expectation": "*" @@ -233,11 +235,13 @@ "picture-tag": [], "script-tag": [], "sharedworker-classic": [], + "sharedworker-import": [], "sharedworker-import-data": [], "sharedworker-module": [], "video-tag": [], "websocket": [], "worker-classic": [], + "worker-import": [], "worker-import-data": [], "worker-module": [], "worklet-animation": [], diff --git a/tests/wpt/web-platform-tests/webaudio/the-audio-api/the-audiobuffer-interface/audiobuffer-copy-channel.html b/tests/wpt/web-platform-tests/webaudio/the-audio-api/the-audiobuffer-interface/audiobuffer-copy-channel.html index 20780d94b73..c0cd49d3252 100644 --- a/tests/wpt/web-platform-tests/webaudio/the-audio-api/the-audiobuffer-interface/audiobuffer-copy-channel.html +++ b/tests/wpt/web-platform-tests/webaudio/the-audio-api/the-audiobuffer-interface/audiobuffer-copy-channel.html @@ -149,7 +149,9 @@ buffer.copyFromChannel(x, 3); }, '7: buffer.copyFromChannel(x, 3)').throw(DOMException, 'IndexSizeError'); - let shared_buffer = new Float32Array(new SharedArrayBuffer(32)); + // See https://github.com/whatwg/html/issues/5380 for why not `new SharedArrayBuffer()` + // WebAssembly.Memory's size is in multiples of 64 KiB + const shared_buffer = new Float32Array(new WebAssembly.Memory({ shared:true, initial:1, maximum:1 }).buffer); should( () => { buffer.copyFromChannel(shared_buffer, 0); @@ -202,7 +204,9 @@ buffer.copyToChannel(x, 3); }, '6: buffer.copyToChannel(x, 3)').throw(DOMException, 'IndexSizeError'); - let shared_buffer = new Float32Array(new SharedArrayBuffer(32)); + // See https://github.com/whatwg/html/issues/5380 for why not `new SharedArrayBuffer()` + // WebAssembly.Memory's size is in multiples of 64 KiB + const shared_buffer = new Float32Array(new WebAssembly.Memory({ shared:true, initial:1, maximum:1 }).buffer); should( () => { buffer.copyToChannel(shared_buffer, 0); diff --git a/tests/wpt/web-platform-tests/xhr/send-data-sharedarraybuffer.any.js b/tests/wpt/web-platform-tests/xhr/send-data-sharedarraybuffer.any.js index b902888f560..912f622697d 100644 --- a/tests/wpt/web-platform-tests/xhr/send-data-sharedarraybuffer.any.js +++ b/tests/wpt/web-platform-tests/xhr/send-data-sharedarraybuffer.any.js @@ -1,8 +1,9 @@ // META: title=XMLHttpRequest.send(sharedarraybuffer) test(() => { - var xhr = new XMLHttpRequest(); - var buf = new SharedArrayBuffer(); + const xhr = new XMLHttpRequest(); + // See https://github.com/whatwg/html/issues/5380 for why not `new SharedArrayBuffer()` + const buf = new WebAssembly.Memory({ shared:true, initial:1, maximum:1 }).buffer; xhr.open("POST", "./resources/content.py", true); assert_throws_js(TypeError, function() { @@ -13,8 +14,9 @@ test(() => { ["Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array", "DataView"].forEach((type) => { test(() => { - var xhr = new XMLHttpRequest(); - var arr = new self[type](new SharedArrayBuffer()); + const xhr = new XMLHttpRequest(); + // See https://github.com/whatwg/html/issues/5380 for why not `new SharedArrayBuffer()` + const arr = new self[type](new WebAssembly.Memory({ shared:true, initial:1, maximum:1 }).buffer); xhr.open("POST", "./resources/content.py", true); assert_throws_js(TypeError, function() {