diff --git a/tests/wpt/metadata/2dcontext/drawing-paths-to-the-canvas/canvas_focus_drawCustomFocusRing_001.html.ini b/tests/wpt/metadata/2dcontext/drawing-paths-to-the-canvas/canvas_focus_drawCustomFocusRing_001.html.ini deleted file mode 100644 index 3c26f50e1d1..00000000000 --- a/tests/wpt/metadata/2dcontext/drawing-paths-to-the-canvas/canvas_focus_drawCustomFocusRing_001.html.ini +++ /dev/null @@ -1,8 +0,0 @@ -[canvas_focus_drawCustomFocusRing_001.html] - type: testharness - [drawCustomFocusRing must return false for an element that is not focused.] - expected: FAIL - - [drawCustomFocusRing must return false for an element that is not a descendant of the canvas element.] - expected: FAIL - diff --git a/tests/wpt/metadata/2dcontext/imagebitmap/createImageBitmap-transfer.html.ini b/tests/wpt/metadata/2dcontext/imagebitmap/createImageBitmap-transfer.html.ini new file mode 100644 index 00000000000..72da108c5d4 --- /dev/null +++ b/tests/wpt/metadata/2dcontext/imagebitmap/createImageBitmap-transfer.html.ini @@ -0,0 +1,34 @@ +[createImageBitmap-transfer.html] + [Transfer ImageBitmap created from an HTMLCanvasElement] + expected: FAIL + + [Transfer ImageBitmap created from an HTMLVideoElement] + expected: FAIL + + [Transfer ImageBitmap created from an HTMLVideoElement from a data URL] + expected: FAIL + + [Transfer ImageBitmap created from a bitmap HTMLImageElement] + expected: FAIL + + [Transfer ImageBitmap created from a vector HTMLImageElement] + expected: FAIL + + [Transfer ImageBitmap created from a bitmap SVGImageElement] + expected: FAIL + + [Transfer ImageBitmap created from a vector SVGImageElement] + expected: FAIL + + [Transfer ImageBitmap created from an OffscreenCanvas] + expected: FAIL + + [Transfer ImageBitmap created from an ImageData] + expected: FAIL + + [Transfer ImageBitmap created from an ImageBitmap] + expected: FAIL + + [Transfer ImageBitmap created from a Blob] + expected: FAIL + diff --git a/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini b/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini index e363bfabdfc..cac5158543c 100644 --- a/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini +++ b/tests/wpt/metadata/FileAPI/url/url-in-tags-revoke.window.js.ini @@ -6,3 +6,6 @@ [Fetching a blob URL immediately before revoking it works in - - - - - -

Description

-

This test checks whether drawCustomFocusRing returns false if the element passed as an argument is not focused or is not a descendant of the element with whose context the method is associated.

-
-
- - -
- - - diff --git a/tests/wpt/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer.html b/tests/wpt/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer.html new file mode 100644 index 00000000000..030263472a3 --- /dev/null +++ b/tests/wpt/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer.html @@ -0,0 +1,43 @@ + + +createImageBitmap transferring test + + + + + +
+ diff --git a/tests/wpt/web-platform-tests/2dcontext/imagebitmap/transfer-worker.js b/tests/wpt/web-platform-tests/2dcontext/imagebitmap/transfer-worker.js new file mode 100644 index 00000000000..55465a899ca --- /dev/null +++ b/tests/wpt/web-platform-tests/2dcontext/imagebitmap/transfer-worker.js @@ -0,0 +1,3 @@ +addEventListener('message', evt => { + postMessage(evt.data, [evt.data.bitmap]); +}); diff --git a/tests/wpt/web-platform-tests/BackgroundSync/interfaces.any.js b/tests/wpt/web-platform-tests/BackgroundSync/interfaces.any.js new file mode 100644 index 00000000000..dd677fc4044 --- /dev/null +++ b/tests/wpt/web-platform-tests/BackgroundSync/interfaces.any.js @@ -0,0 +1,29 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +'use strict'; + +// https://wicg.github.io/BackgroundSync/spec/ + +promise_test(async () => { + const dom = await fetch('/interfaces/dom.idl').then(r => r.text()); + const html = await fetch('/interfaces/html.idl').then(r => r.text()); + const sw = await fetch('/interfaces/ServiceWorker.idl').then(r => r.text()); + const idl = await fetch('/interfaces/BackgroundSync.idl').then(response => response.text()); + + const idlArray = new IdlArray(); + idlArray.add_untested_idls(dom, { only: ['Event', 'EventInit', 'EventTarget'] }); + idlArray.add_untested_idls(html, { only: [ + 'WorkerGlobalScope', + 'WindowOrWorkerGlobalScope' + ] }); + idlArray.add_untested_idls(sw, { only: [ + 'ServiceWorkerRegistration', + 'ServiceWorkerGlobalScope', + 'ExtendableEvent', + 'ExtendableEventInit', + ] }); + idlArray.add_idls(idl); + idlArray.test(); + done(); +}, 'Background Sync interfaces.'); diff --git a/tests/wpt/web-platform-tests/FileAPI/url/url-in-tags-revoke.window.js b/tests/wpt/web-platform-tests/FileAPI/url/url-in-tags-revoke.window.js index e610e0bff28..a564730c338 100644 --- a/tests/wpt/web-platform-tests/FileAPI/url/url-in-tags-revoke.window.js +++ b/tests/wpt/web-platform-tests/FileAPI/url/url-in-tags-revoke.window.js @@ -16,6 +16,27 @@ async_test(t => { }); }, 'Fetching a blob URL immediately before revoking it works in an iframe.'); +async_test(t => { + const run_result = 'test_frame_OK'; + const blob_contents = '\n\n' + + ''; + const blob = new Blob([blob_contents], {type: 'text/html'}); + const url = URL.createObjectURL(blob); + + const frame = document.createElement('iframe'); + frame.setAttribute('src', '/common/blank.html'); + frame.setAttribute('style', 'display:none;'); + document.body.appendChild(frame); + + frame.onload = t.step_func(() => { + frame.contentWindow.location = url; + URL.revokeObjectURL(url); + frame.onload = t.step_func_done(() => { + assert_equals(frame.contentWindow.test_result, run_result); + }); + }); +}, 'Fetching a blob URL immediately before revoking it works in an iframe navigation.'); + async_test(t => { const run_result = 'test_script_OK'; const blob_contents = 'window.script_test_result = "' + run_result + '";'; diff --git a/tests/wpt/web-platform-tests/README.md b/tests/wpt/web-platform-tests/README.md index cc2870b78d2..307a886864d 100644 --- a/tests/wpt/web-platform-tests/README.md +++ b/tests/wpt/web-platform-tests/README.md @@ -110,7 +110,7 @@ line syntax is: **On Windows**: You will need to preceed the prior command with `python` or the path to the python binary. ```bash -python wpt product [tests] +python wpt run product [tests] ``` where `product` is currently `firefox` or `chrome` and `[tests]` is a @@ -271,7 +271,7 @@ will be `C:\\OpenSSL-Win32\\bin\\openssl.cfg`). ### Trusting Root CA To prevent browser SSL warnings when running HTTPS tests locally, the -web-platform-tests Root CA file `rootca.pem` in [tools/certs](tools/certs) +web-platform-tests Root CA file `cacert.pem` in [tools/certs](tools/certs) must be added as a trusted certificate in your OS/browser. Publication diff --git a/tests/wpt/web-platform-tests/accelerometer/idlharness.https.html b/tests/wpt/web-platform-tests/accelerometer/idlharness.https.html index 3c3c96e88e8..1f32be98685 100644 --- a/tests/wpt/web-platform-tests/accelerometer/idlharness.https.html +++ b/tests/wpt/web-platform-tests/accelerometer/idlharness.https.html @@ -15,7 +15,7 @@ function doTest([dom, generic_sensor, accelerometer]) { const idl_array = new IdlArray(); idl_array.add_untested_idls(dom); idl_array.add_untested_idls('interface EventHandler {};'); - idl_array.add_idls(generic_sensor, { only: ['Sensor'] }); + idl_array.add_idls(generic_sensor, { only: ['Sensor', 'SensorOptions'] }); idl_array.add_idls(accelerometer); idl_array.add_objects({ Accelerometer: ['new Accelerometer();'], diff --git a/tests/wpt/web-platform-tests/accname/description_1.0_combobox-focusable-manual.html b/tests/wpt/web-platform-tests/accname/description_1.0_combobox-focusable-manual.html new file mode 100644 index 00000000000..ce26e8a6936 --- /dev/null +++ b/tests/wpt/web-platform-tests/accname/description_1.0_combobox-focusable-manual.html @@ -0,0 +1,73 @@ + + + + Description 1.0 combobox-focusable + + + + + + + + + +

This test examines the ARIA properties for Description 1.0 combobox-focusable.

+
+ English +
+ +
+
+
+ + diff --git a/tests/wpt/web-platform-tests/accname/description_from_content_of_describedby_element-manual.html b/tests/wpt/web-platform-tests/accname/description_from_content_of_describedby_element-manual.html index 2e7c86c6873..167b52972f5 100644 --- a/tests/wpt/web-platform-tests/accname/description_from_content_of_describedby_element-manual.html +++ b/tests/wpt/web-platform-tests/accname/description_from_content_of_describedby_element-manual.html @@ -22,7 +22,7 @@ "property", "description", "is", - "My name is Garaventa the weird. (QED) Where are my marbles?" + "My name is Eli the weird. (QED) Where are my marbles?" ] ], "AXAPI" : [ @@ -30,7 +30,7 @@ "property", "AXHelp", "is", - "My name is Garaventa the weird. (QED) Where are my marbles?" + "My name is Eli the weird. (QED) Where are my marbles?" ] ], "IAccessible2" : [ @@ -38,7 +38,7 @@ "property", "accDescription", "is", - "My name is Garaventa the weird. (QED) Where are my marbles?" + "My name is Eli the weird. (QED) Where are my marbles?" ] ], "UIA" : [ @@ -46,7 +46,7 @@ "property", "Description", "is", - "My name is Garaventa the weird. (QED) Where are my marbles?" + "My name is Eli the weird. (QED) Where are my marbles?" ] ] }, @@ -62,7 +62,10 @@

This test examines the ARIA properties for Description from content of describedby element.

- + +
diff --git a/tests/wpt/web-platform-tests/accname/description_from_content_of_describedby_element_which_is_hidden-manual.html b/tests/wpt/web-platform-tests/accname/description_from_content_of_describedby_element_which_is_hidden-manual.html index 9dbe3e5c7da..a49a9229512 100644 --- a/tests/wpt/web-platform-tests/accname/description_from_content_of_describedby_element_which_is_hidden-manual.html +++ b/tests/wpt/web-platform-tests/accname/description_from_content_of_describedby_element_which_is_hidden-manual.html @@ -22,7 +22,7 @@ "property", "description", "is", - "My name is Garaventa the weird. (QED) Where are my marbles?" + "My name is Eli the weird. (QED) Where are my marbles?" ] ], "AXAPI" : [ @@ -30,7 +30,7 @@ "property", "AXHelp", "is", - "My name is Garaventa the weird. (QED) Where are my marbles?" + "My name is Eli the weird. (QED) Where are my marbles?" ] ], "IAccessible2" : [ @@ -38,7 +38,7 @@ "property", "accDescription", "is", - "My name is Garaventa the weird. (QED) Where are my marbles?" + "My name is Eli the weird. (QED) Where are my marbles?" ] ], "UIA" : [ @@ -46,7 +46,7 @@ "property", "Description", "is", - "My name is Garaventa the weird. (QED) Where are my marbles?" + "My name is Eli the weird. (QED) Where are my marbles?" ] ] }, @@ -62,7 +62,10 @@

This test examines the ARIA properties for Description from content of describedby element which is hidden.

-
+ +
diff --git a/tests/wpt/web-platform-tests/accname/name_1.0_combobox-focusable-manual.html b/tests/wpt/web-platform-tests/accname/name_1.0_combobox-focusable-manual.html index d525dc8d745..abc53273b7c 100644 --- a/tests/wpt/web-platform-tests/accname/name_1.0_combobox-focusable-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_1.0_combobox-focusable-manual.html @@ -22,7 +22,7 @@ "property", "name", "is", - "Choose your language. English" + "Choose your language." ] ], "AXAPI" : [ @@ -30,7 +30,7 @@ "property", "AXDescription", "is", - "Choose your language. English" + "Choose your language." ] ], "IAccessible2" : [ @@ -38,7 +38,7 @@ "property", "accName", "is", - "Choose your language. English" + "Choose your language." ] ], "UIA" : [ @@ -46,7 +46,7 @@ "property", "Name", "is", - "Choose your language. English" + "Choose your language." ] ] }, diff --git a/tests/wpt/web-platform-tests/accname/name_checkbox-label-multiple-label-alternative-manual.html b/tests/wpt/web-platform-tests/accname/name_checkbox-label-multiple-label-alternative-manual.html index 1539532598d..34bfd02b292 100644 --- a/tests/wpt/web-platform-tests/accname/name_checkbox-label-multiple-label-alternative-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_checkbox-label-multiple-label-alternative-manual.html @@ -22,7 +22,7 @@ "property", "name", "is", - "a test" + "a test This is" ] ], "AXAPI" : [ @@ -30,7 +30,7 @@ "property", "AXDescription", "is", - "a test" + "a test This is" ] ], "IAccessible2" : [ @@ -38,7 +38,7 @@ "property", "accName", "is", - "a test" + "a test This is" ] ], "UIA" : [ @@ -46,7 +46,7 @@ "property", "Name", "is", - "a test" + "a test This is" ] ] }, diff --git a/tests/wpt/web-platform-tests/accname/name_checkbox-label-multiple-label-manual.html b/tests/wpt/web-platform-tests/accname/name_checkbox-label-multiple-label-manual.html index c18ecf21080..37486e1f950 100644 --- a/tests/wpt/web-platform-tests/accname/name_checkbox-label-multiple-label-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_checkbox-label-multiple-label-manual.html @@ -22,7 +22,7 @@ "property", "name", "is", - "a test" + "This is a test" ] ], "AXAPI" : [ @@ -30,7 +30,7 @@ "property", "AXDescription", "is", - "a test" + "This is a test" ] ], "IAccessible2" : [ @@ -38,7 +38,7 @@ "property", "accName", "is", - "a test" + "This is a test" ] ], "UIA" : [ @@ -46,7 +46,7 @@ "property", "Name", "is", - "a test" + "This is a test" ] ] }, diff --git a/tests/wpt/web-platform-tests/accname/name_file-label-inline-hidden-elements-manual.html b/tests/wpt/web-platform-tests/accname/name_file-label-inline-hidden-elements-manual.html index cade7d1f507..2253f880bbe 100644 --- a/tests/wpt/web-platform-tests/accname/name_file-label-inline-hidden-elements-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_file-label-inline-hidden-elements-manual.html @@ -22,7 +22,7 @@ "property", "name", "is", - "246810" + "2 4 6 8 10" ] ], "AXAPI" : [ @@ -30,7 +30,7 @@ "property", "AXDescription", "is", - "246810" + "2 4 6 8 10" ] ], "IAccessible2" : [ @@ -38,7 +38,7 @@ "property", "accName", "is", - "246810" + "2 4 6 8 10" ] ], "UIA" : [ @@ -46,7 +46,7 @@ "property", "Name", "is", - "246810" + "2 4 6 8 10" ] ] }, diff --git a/tests/wpt/web-platform-tests/accname/name_from_content-manual.html b/tests/wpt/web-platform-tests/accname/name_from_content-manual.html index 583f30ad0e7..832652c2277 100644 --- a/tests/wpt/web-platform-tests/accname/name_from_content-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_from_content-manual.html @@ -22,7 +22,7 @@ "property", "name", "is", - "My name is Garaventa the weird. (QED) Where are my marbles?" + "My name is Eli the weird. (QED) Where are my marbles?" ] ], "AXAPI" : [ @@ -30,7 +30,7 @@ "property", "AXDescription", "is", - "My name is Garaventa the weird. (QED) Where are my marbles?" + "My name is Eli the weird. (QED) Where are my marbles?" ] ], "IAccessible2" : [ @@ -38,7 +38,7 @@ "property", "accName", "is", - "My name is Garaventa the weird. (QED) Where are my marbles?" + "My name is Eli the weird. (QED) Where are my marbles?" ] ], "UIA" : [ @@ -46,7 +46,7 @@ "property", "Name", "is", - "My name is Garaventa the weird. (QED) Where are my marbles?" + "My name is Eli the weird. (QED) Where are my marbles?" ] ] }, @@ -62,7 +62,10 @@

This test examines the ARIA properties for Name from content.

-
+ +
My name is
diff --git a/tests/wpt/web-platform-tests/accname/name_from_content_of_label-manual.html b/tests/wpt/web-platform-tests/accname/name_from_content_of_label-manual.html index d2407633ae8..1ceb4ab4dc1 100644 --- a/tests/wpt/web-platform-tests/accname/name_from_content_of_label-manual.html +++ b/tests/wpt/web-platform-tests/accname/name_from_content_of_label-manual.html @@ -22,7 +22,7 @@ "property", "name", "is", - "My name is Garaventa the weird. (QED) Where are my marbles?" + "My name is Eli the weird. (QED) Where are my marbles?" ] ], "AXAPI" : [ @@ -30,7 +30,7 @@ "property", "AXDescription", "is", - "My name is Garaventa the weird. (QED) Where are my marbles?" + "My name is Eli the weird. (QED) Where are my marbles?" ] ], "IAccessible2" : [ @@ -38,7 +38,7 @@ "property", "accName", "is", - "My name is Garaventa the weird. (QED) Where are my marbles?" + "My name is Eli the weird. (QED) Where are my marbles?" ] ], "UIA" : [ @@ -46,7 +46,7 @@ "property", "Name", "is", - "My name is Garaventa the weird. (QED) Where are my marbles?" + "My name is Eli the weird. (QED) Where are my marbles?" ] ] }, @@ -62,7 +62,10 @@

This test examines the ARIA properties for Name from content of label.

- + +