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 deleted file mode 100644 index baa9f1a7541..00000000000 --- a/tests/wpt/metadata-layout-2020/css/CSS2/floats/hit-test-floats-005.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[hit-test-floats-005.html] - [Miss clipped 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 cb2edcb5dcd..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,6 +5,9 @@ [[data-expected-height\] 7] expected: FAIL - [[data-expected-height\] 4] + [[data-expected-height\] 1] + expected: FAIL + + [[data-expected-height\] 2] expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-ui/appearance-button-002.tentative.html.ini b/tests/wpt/metadata-layout-2020/css/css-ui/appearance-button-002.tentative.html.ini new file mode 100644 index 00000000000..c166ea99deb --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-ui/appearance-button-002.tentative.html.ini @@ -0,0 +1,2 @@ +[appearance-button-002.tentative.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-ui/appearance-menulist-button-002.tentative.html.ini b/tests/wpt/metadata-layout-2020/css/css-ui/appearance-menulist-button-002.tentative.html.ini new file mode 100644 index 00000000000..21178f6a0a9 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-ui/appearance-menulist-button-002.tentative.html.ini @@ -0,0 +1,2 @@ +[appearance-menulist-button-002.tentative.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-ui/webkit-appearance-button-002.tentative.html.ini b/tests/wpt/metadata-layout-2020/css/css-ui/webkit-appearance-button-002.tentative.html.ini new file mode 100644 index 00000000000..f76be95ab6e --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-ui/webkit-appearance-button-002.tentative.html.ini @@ -0,0 +1,2 @@ +[webkit-appearance-button-002.tentative.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-ui/webkit-appearance-menulist-button-002.tentative.html.ini b/tests/wpt/metadata-layout-2020/css/css-ui/webkit-appearance-menulist-button-002.tentative.html.ini new file mode 100644 index 00000000000..d482c8119d6 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-ui/webkit-appearance-menulist-button-002.tentative.html.ini @@ -0,0 +1,2 @@ +[webkit-appearance-menulist-button-002.tentative.html] + 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 deleted file mode 100644 index 4c79907309b..00000000000 --- a/tests/wpt/metadata-layout-2020/css/cssom-view/CaretPosition-001.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[CaretPosition-001.html] - [Element at (400, 100)] - expected: FAIL - diff --git a/tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPosition.html.ini b/tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPosition.html.ini index c131078eace..23c61ede1a1 100644 --- a/tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPosition.html.ini +++ b/tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPosition.html.ini @@ -17,3 +17,6 @@ [test the top of layer] expected: FAIL + [test some point of the element: top left corner] + 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/scrollingElement.html.ini b/tests/wpt/metadata-layout-2020/css/cssom-view/scrollingElement.html.ini index 59a11df4bc7..2feec30bf75 100644 --- a/tests/wpt/metadata-layout-2020/css/cssom-view/scrollingElement.html.ini +++ b/tests/wpt/metadata-layout-2020/css/cssom-view/scrollingElement.html.ini @@ -5,3 +5,24 @@ [scrollingElement in no-quirks mode] expected: FAIL + [scrollingElement in quirks mode (body table)] + expected: FAIL + + [scrollingElement in no-quirks mode ] + expected: FAIL + + [scrollingElement in no-quirks mode (root table)] + expected: FAIL + + [scrollingElement in no-quirks mode (body table)] + expected: FAIL + + [scrollingElement in quirks mode (root table, body table)] + expected: FAIL + + [scrollingElement in quirks mode (root table)] + expected: FAIL + + [scrollingElement in no-quirks mode (root table, body table)] + expected: FAIL + diff --git a/tests/wpt/metadata-layout-2020/css/cssom/CSS-namespace-object-class-string.html.ini b/tests/wpt/metadata-layout-2020/css/cssom/CSS-namespace-object-class-string.html.ini new file mode 100644 index 00000000000..bb7130b6553 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/cssom/CSS-namespace-object-class-string.html.ini @@ -0,0 +1,13 @@ +[CSS-namespace-object-class-string.html] + [Object.prototype.toString applied after deleting @@toStringTag] + expected: FAIL + + [@@toStringTag exists on the namespace object with the appropriate descriptor] + expected: FAIL + + [Object.prototype.toString applied after modifying the namespace object's @@toStringTag] + expected: FAIL + + [Object.prototype.toString applied to the namespace object] + 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 eb1eba631ec..a7ddeaab5a4 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 @@ -312,9 +312,6 @@ [Response: combined response Content-Type: text/html;" \\" text/plain ";charset=GBK] expected: NOTRUN - [ -
diff --git a/tests/wpt/web-platform-tests/css/cssom/CSS-namespace-object-class-string.html b/tests/wpt/web-platform-tests/css/cssom/CSS-namespace-object-class-string.html new file mode 100644 index 00000000000..96c427f6cf2 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/cssom/CSS-namespace-object-class-string.html @@ -0,0 +1,47 @@ + + +CSSOM - Symbol.toStringTag value of CSS namespace object + + + + + diff --git a/tests/wpt/web-platform-tests/gamepad/idlharness-extensions.window.js b/tests/wpt/web-platform-tests/gamepad/idlharness-extensions.window.js new file mode 100644 index 00000000000..dcf76878fc9 --- /dev/null +++ b/tests/wpt/web-platform-tests/gamepad/idlharness-extensions.window.js @@ -0,0 +1,12 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js +// META: timeout=long + +// https://w3c.github.io/gamepad/extensions.html + +'use strict'; + +idl_test( + ['gamepad-extensions'], + ['gamepad'], +); diff --git a/tests/wpt/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-resumes-onload.html b/tests/wpt/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-resumes-onload.html new file mode 100644 index 00000000000..b166763d14f --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-resumes-onload.html @@ -0,0 +1,18 @@ + +resource selection should not delay the load event indefinitely + + +
+ + diff --git a/tests/wpt/web-platform-tests/interfaces/gamepad-extensions.idl b/tests/wpt/web-platform-tests/interfaces/gamepad-extensions.idl new file mode 100644 index 00000000000..f2a2811b4b4 --- /dev/null +++ b/tests/wpt/web-platform-tests/interfaces/gamepad-extensions.idl @@ -0,0 +1,39 @@ +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into reffy-reports +// (https://github.com/tidoust/reffy-reports) +// Source: Gamepad Extensions (https://w3c.github.io/gamepad/extensions.html) + +enum GamepadHand { + "", /* unknown, both hands, or not applicable */ + "left", + "right" +}; + +[Exposed=Window] +interface GamepadHapticActuator { + readonly attribute GamepadHapticActuatorType type; + Promise pulse(double value, double duration); +}; + +enum GamepadHapticActuatorType { + "vibration" +}; + +[Exposed=Window] +interface GamepadPose { + readonly attribute boolean hasOrientation; + readonly attribute boolean hasPosition; + + readonly attribute Float32Array? position; + readonly attribute Float32Array? linearVelocity; + readonly attribute Float32Array? linearAcceleration; + readonly attribute Float32Array? orientation; + readonly attribute Float32Array? angularVelocity; + readonly attribute Float32Array? angularAcceleration; +}; + +partial interface Gamepad { + readonly attribute GamepadHand hand; + readonly attribute FrozenArray hapticActuators; + readonly attribute GamepadPose? pose; +}; diff --git a/tests/wpt/web-platform-tests/tools/wptrunner/requirements_firefox.txt b/tests/wpt/web-platform-tests/tools/wptrunner/requirements_firefox.txt index 21906c57fd2..a053971000b 100644 --- a/tests/wpt/web-platform-tests/tools/wptrunner/requirements_firefox.txt +++ b/tests/wpt/web-platform-tests/tools/wptrunner/requirements_firefox.txt @@ -1,4 +1,4 @@ -marionette_driver==3.0.0 +marionette_driver==3.1.0 mozcrash==2.0.0 mozinstall==2.0.0 mozleak==0.2 diff --git a/tests/wpt/web-platform-tests/wasm/jsapi/namespace-object-class-string.any.js b/tests/wpt/web-platform-tests/wasm/jsapi/namespace-object-class-string.any.js new file mode 100644 index 00000000000..2f63aca2c55 --- /dev/null +++ b/tests/wpt/web-platform-tests/wasm/jsapi/namespace-object-class-string.any.js @@ -0,0 +1,40 @@ +"use strict"; +// https://heycam.github.io/webidl/#es-namespaces +// https://webassembly.github.io/spec/js-api/#namespacedef-webassembly + +test(() => { + assert_own_property(WebAssembly, Symbol.toStringTag); + + const propDesc = Object.getOwnPropertyDescriptor(WebAssembly, Symbol.toStringTag); + assert_equals(propDesc.value, "WebAssembly", "value"); + assert_equals(propDesc.writable, false, "writable"); + assert_equals(propDesc.enumerable, false, "enumerable"); + assert_equals(propDesc.configurable, true, "configurable"); +}, "@@toStringTag exists on the namespace object with the appropriate descriptor"); + +test(() => { + assert_equals(WebAssembly.toString(), "[object WebAssembly]"); + assert_equals(Object.prototype.toString.call(WebAssembly), "[object WebAssembly]"); +}, "Object.prototype.toString applied to the namespace object"); + +test(t => { + assert_own_property(WebAssembly, Symbol.toStringTag, "Precondition: @@toStringTag on the namespace object"); + t.add_cleanup(() => { + Object.defineProperty(WebAssembly, Symbol.toStringTag, { value: "WebAssembly" }); + }); + + Object.defineProperty(WebAssembly, Symbol.toStringTag, { value: "Test" }); + assert_equals(WebAssembly.toString(), "[object Test]"); + assert_equals(Object.prototype.toString.call(WebAssembly), "[object Test]"); +}, "Object.prototype.toString applied after modifying the namespace object's @@toStringTag"); + +test(t => { + assert_own_property(WebAssembly, Symbol.toStringTag, "Precondition: @@toStringTag on the namespace object"); + t.add_cleanup(() => { + Object.defineProperty(WebAssembly, Symbol.toStringTag, { value: "WebAssembly" }); + }); + + assert_true(delete WebAssembly[Symbol.toStringTag]); + assert_equals(WebAssembly.toString(), "[object Object]"); + assert_equals(Object.prototype.toString.call(WebAssembly), "[object Object]"); +}, "Object.prototype.toString applied after deleting @@toStringTag"); 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 3abb65ed930..729be6ed0b6 100644 --- a/tests/wpt/webgl/meta/conformance2/rendering/draw-buffers.html.ini +++ b/tests/wpt/webgl/meta/conformance2/rendering/draw-buffers.html.ini @@ -203,3 +203,6 @@ [WebGL test #42: attachment 5 should be 0,255,0,255\nat (4, 0) expected: 0,255,0,255 was 255,0,0,0] expected: FAIL + [WebGL test #51: attachment 6 should be 0,255,0,255\nat (0, 0) expected: 0,255,0,255 was 0,0,0,255] + expected: FAIL +