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/floats/hit-test-floats-003.html.ini b/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-003.html.ini deleted file mode 100644 index f29da48a2a0..00000000000 --- a/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-003.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[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/cssom-view/CaretPosition-001.html.ini b/tests/wpt/metadata-layout-2020/css/cssom-view/CaretPosition-001.html.ini new file mode 100644 index 00000000000..4c79907309b --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/cssom-view/CaretPosition-001.html.ini @@ -0,0 +1,4 @@ +[CaretPosition-001.html] + [Element at (400, 100)] + expected: FAIL + diff --git a/tests/wpt/metadata-layout-2020/css/cssom-view/elementsFromPoint-invalid-cases.html.ini b/tests/wpt/metadata-layout-2020/css/cssom-view/elementsFromPoint-invalid-cases.html.ini deleted file mode 100644 index e181af5397f..00000000000 --- a/tests/wpt/metadata-layout-2020/css/cssom-view/elementsFromPoint-invalid-cases.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[elementsFromPoint-invalid-cases.html] - [The root element is the last element returned for otherwise empty queries within the viewport] - expected: FAIL - diff --git a/tests/wpt/metadata-layout-2020/css/cssom/idlharness.html.ini b/tests/wpt/metadata-layout-2020/css/cssom/idlharness.html.ini index 2c49c8bac34..0bc35af1f0d 100644 --- a/tests/wpt/metadata-layout-2020/css/cssom/idlharness.html.ini +++ b/tests/wpt/metadata-layout-2020/css/cssom/idlharness.html.ini @@ -452,3 +452,9 @@ [CSS namespace: typeof is "object"] expected: FAIL + [CSS namespace: has no name property] + expected: FAIL + + [CSS namespace: has no length property] + 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 a5246461def..1e7ee4e99d3 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 @@ -309,27 +309,21 @@ [Response: combined response Content-Type: text/html;" \\" text/plain ";charset=GBK] expected: NOTRUN - [ + + + diff --git a/tests/wpt/web-platform-tests/resource-timing/TAO-null-opaque-origin.sub.html b/tests/wpt/web-platform-tests/resource-timing/TAO-null-opaque-origin.sub.html deleted file mode 100644 index 0a457637c51..00000000000 --- a/tests/wpt/web-platform-tests/resource-timing/TAO-null-opaque-origin.sub.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - -Resource Timing TAO - "null" and opaque origin - - - - - - - -

Description

-

This test validates that for a cross origin resource, the timing allow check algorithm will succeed when the value of Timing-Allow-Origin is null and the origin is an opaque origin.

-
- - - - diff --git a/tests/wpt/web-platform-tests/resource-timing/resources/TAOResponse.py b/tests/wpt/web-platform-tests/resource-timing/resources/TAOResponse.py index 908b68861ae..c25ccc03cb3 100644 --- a/tests/wpt/web-platform-tests/resource-timing/resources/TAOResponse.py +++ b/tests/wpt/web-platform-tests/resource-timing/resources/TAOResponse.py @@ -14,7 +14,7 @@ def main(request, response): # null, fail unless it's an opaque origin response.headers.set(b'Timing-Allow-Origin', b'null') elif tao == b'Null': - # case-insentive null, fail + # case-insensitive null, fail response.headers.set(b'Timing-Allow-Origin', b'Null') elif tao == b'origin': # case-sensitive match for origin, pass diff --git a/tests/wpt/web-platform-tests/resources/idlharness.js b/tests/wpt/web-platform-tests/resources/idlharness.js index 994a0d82ef4..5a97b273f2b 100644 --- a/tests/wpt/web-platform-tests/resources/idlharness.js +++ b/tests/wpt/web-platform-tests/resources/idlharness.js @@ -3483,6 +3483,22 @@ IdlNamespace.prototype.test_self = function () subsetTestByKey(this.name, test, () => { assert_equals(typeof namespaceObject, "object"); }, `${this.name} namespace: typeof is "object"`); + + subsetTestByKey(this.name, test, () => { + assert_equals( + Object.getOwnPropertyDescriptor(namespaceObject, "length"), + undefined, + "length property must be undefined" + ); + }, `${this.name} namespace: has no length property`); + + subsetTestByKey(this.name, test, () => { + assert_equals( + Object.getOwnPropertyDescriptor(namespaceObject, "name"), + undefined, + "name property must be undefined" + ); + }, `${this.name} namespace: has no name property`); }; IdlNamespace.prototype.test = function () diff --git a/tests/wpt/web-platform-tests/resources/test/tests/functional/idlharness/IdlNamespace/test_attribute.html b/tests/wpt/web-platform-tests/resources/test/tests/functional/idlharness/IdlNamespace/test_attribute.html index ca5edf4723d..9a08dd400c1 100644 --- a/tests/wpt/web-platform-tests/resources/test/tests/functional/idlharness/IdlNamespace/test_attribute.html +++ b/tests/wpt/web-platform-tests/resources/test/tests/functional/idlharness/IdlNamespace/test_attribute.html @@ -71,6 +71,18 @@ idlArray.test(); "properties": {}, "message": null }, + { + "name": "foo namespace: has no length property", + "status_string": "PASS", + "properties": {}, + "message": null + }, + { + "name": "foo namespace: has no name property", + "status_string": "PASS", + "properties": {}, + "message": null + }, { "name": "foo namespace: attribute truth", "status_string": "PASS", 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 60d7d47c9ee..814e8428c36 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 @@ -110,6 +110,18 @@ idlArray.test(); "properties": {}, "message": null }, + { + "name": "foo namespace: has no length property", + "status_string": "PASS", + "properties": {}, + "message": null + }, + { + "name": "foo namespace: has no name property", + "status_string": "PASS", + "properties": {}, + "message": null + }, { "name": "foo namespace: operation Truth()", "status_string": "PASS", @@ -122,7 +134,6 @@ idlArray.test(); "properties": {}, "message": "assert_own_property: namespace object missing operation \"Lies\" expected property \"Lies\" missing" }, - { "name": "bar namespace: extended attributes", "status_string": "PASS", @@ -153,6 +164,18 @@ idlArray.test(); "properties": {}, "message": null }, + { + "name": "bar namespace: has no length property", + "status_string": "PASS", + "properties": {}, + "message": null + }, + { + "name": "bar namespace: has no name property", + "status_string": "PASS", + "properties": {}, + "message": null + }, { "name": "bar namespace: operation Truth()", "status_string": "PASS", @@ -190,6 +213,18 @@ idlArray.test(); "properties": {}, "message": null }, + { + "name": "baz namespace: has no length property", + "status_string": "PASS", + "properties": {}, + "message": null + }, + { + "name": "baz namespace: has no name property", + "status_string": "PASS", + "properties": {}, + "message": null + }, { "name": "baz namespace: operation LongStory(any, DOMString...)", "status_string": "PASS", diff --git a/tests/wpt/web-platform-tests/screen_enumeration/isExtended.tentative.https.window.js b/tests/wpt/web-platform-tests/screen_enumeration/isExtended.tentative.https.window.js new file mode 100644 index 00000000000..3c814ae3d91 --- /dev/null +++ b/tests/wpt/web-platform-tests/screen_enumeration/isExtended.tentative.https.window.js @@ -0,0 +1,11 @@ +// META: global=window +'use strict'; + +promise_test(async t => { + assert_equals(typeof self.screen.isExtended, 'boolean'); +}, 'screen.isExtended is present'); + +promise_test(async t => { + let iframe = document.body.appendChild(document.createElement('iframe')); + assert_equals(typeof iframe.contentWindow.screen.isExtended, 'boolean'); +}, 'screen.isExtended is present for attached iframes'); diff --git a/tests/wpt/web-platform-tests/touch-events/single-touch-manual.html b/tests/wpt/web-platform-tests/touch-events/single-touch.html similarity index 89% rename from tests/wpt/web-platform-tests/touch-events/single-touch-manual.html rename to tests/wpt/web-platform-tests/touch-events/single-touch.html index 1b47a64c157..a067bc13801 100644 --- a/tests/wpt/web-platform-tests/touch-events/single-touch-manual.html +++ b/tests/wpt/web-platform-tests/touch-events/single-touch.html @@ -16,15 +16,19 @@ + + + +