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-animations/animation-base-response-003.html.ini b/tests/wpt/metadata-layout-2020/css/css-animations/animation-base-response-003.html.ini new file mode 100644 index 00000000000..261190d6a21 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-animations/animation-base-response-003.html.ini @@ -0,0 +1,4 @@ +[animation-base-response-003.html] + [Identical elements are all responsive to font-size animation] + expected: FAIL + diff --git a/tests/wpt/metadata-layout-2020/css/css-flexbox/flex-flow-percentage-margins-no-available-space-assert.html.ini b/tests/wpt/metadata-layout-2020/css/css-flexbox/flex-flow-percentage-margins-no-available-space-assert.html.ini new file mode 100644 index 00000000000..5c7a587b84e --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-flexbox/flex-flow-percentage-margins-no-available-space-assert.html.ini @@ -0,0 +1,2 @@ +[flex-flow-percentage-margins-no-available-space-assert.html] + expected: CRASH diff --git a/tests/wpt/metadata/css/css-flexbox/flex-minimum-size-002.html.ini b/tests/wpt/metadata-layout-2020/css/css-flexbox/flex-minimum-size-001.html.ini similarity index 87% rename from tests/wpt/metadata/css/css-flexbox/flex-minimum-size-002.html.ini rename to tests/wpt/metadata-layout-2020/css/css-flexbox/flex-minimum-size-001.html.ini index d473487df51..c0483aa5ee9 100644 --- a/tests/wpt/metadata/css/css-flexbox/flex-minimum-size-002.html.ini +++ b/tests/wpt/metadata-layout-2020/css/css-flexbox/flex-minimum-size-001.html.ini @@ -1,4 +1,4 @@ -[flex-minimum-size-002.html] +[flex-minimum-size-001.html] [.flexbox, .inline-flexbox 1] expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-flexbox/flexbox-with-multi-column-property.html.ini b/tests/wpt/metadata-layout-2020/css/css-flexbox/flexbox-with-multi-column-property.html.ini new file mode 100644 index 00000000000..1a5d16bcfb2 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-flexbox/flexbox-with-multi-column-property.html.ini @@ -0,0 +1,2 @@ +[flexbox-with-multi-column-property.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-flexbox/flexitem-stretch-image.html.ini b/tests/wpt/metadata-layout-2020/css/css-flexbox/flexitem-stretch-image.html.ini new file mode 100644 index 00000000000..598d542c576 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-flexbox/flexitem-stretch-image.html.ini @@ -0,0 +1,4 @@ +[flexitem-stretch-image.html] + [.flexbox 1] + expected: FAIL + diff --git a/tests/wpt/metadata-layout-2020/css/css-flexbox/flexitem-stretch-range.html.ini b/tests/wpt/metadata-layout-2020/css/css-flexbox/flexitem-stretch-range.html.ini new file mode 100644 index 00000000000..e5010b774b5 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-flexbox/flexitem-stretch-range.html.ini @@ -0,0 +1,2 @@ +[flexitem-stretch-range.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-flexbox/negative-overflow.html.ini b/tests/wpt/metadata-layout-2020/css/css-flexbox/negative-overflow.html.ini new file mode 100644 index 00000000000..fd7a93bb1dc --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-flexbox/negative-overflow.html.ini @@ -0,0 +1,31 @@ +[negative-overflow.html] + [.flexbox 10] + expected: FAIL + + [.flexbox 11] + expected: FAIL + + [.flexbox 5] + expected: FAIL + + [.flexbox 6] + expected: FAIL + + [.flexbox 7] + expected: FAIL + + [.flexbox 1] + expected: FAIL + + [.flexbox 2] + expected: FAIL + + [.flexbox 3] + expected: FAIL + + [.flexbox 8] + expected: FAIL + + [.flexbox 9] + expected: FAIL + diff --git a/tests/wpt/metadata-layout-2020/css/css-fonts/generic-family-keywords-001.html.ini b/tests/wpt/metadata-layout-2020/css/css-fonts/generic-family-keywords-001.html.ini new file mode 100644 index 00000000000..77d5720a911 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-fonts/generic-family-keywords-001.html.ini @@ -0,0 +1,2 @@ +[generic-family-keywords-001.html] + expected: ERROR diff --git a/tests/wpt/metadata-layout-2020/css/css-fonts/generic-family-keywords-002.html.ini b/tests/wpt/metadata-layout-2020/css/css-fonts/generic-family-keywords-002.html.ini new file mode 100644 index 00000000000..74f8887074c --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-fonts/generic-family-keywords-002.html.ini @@ -0,0 +1,2 @@ +[generic-family-keywords-002.html] + expected: ERROR diff --git a/tests/wpt/metadata-layout-2020/css/css-transitions/no-transition-from-ua-to-blocking-stylesheet.html.ini b/tests/wpt/metadata-layout-2020/css/css-transitions/no-transition-from-ua-to-blocking-stylesheet.html.ini index e35a452a186..70a00a101f6 100644 --- a/tests/wpt/metadata-layout-2020/css/css-transitions/no-transition-from-ua-to-blocking-stylesheet.html.ini +++ b/tests/wpt/metadata-layout-2020/css/css-transitions/no-transition-from-ua-to-blocking-stylesheet.html.ini @@ -1,2 +1,2 @@ [no-transition-from-ua-to-blocking-stylesheet.html] - expected: TIMEOUT + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-transitions/transition-base-response-003.html.ini b/tests/wpt/metadata-layout-2020/css/css-transitions/transition-base-response-003.html.ini new file mode 100644 index 00000000000..28a4e5febe6 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-transitions/transition-base-response-003.html.ini @@ -0,0 +1,4 @@ +[transition-base-response-003.html] + [Identical elements are all responsive to font-size transition] + 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/elementFromPosition.html.ini b/tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPosition.html.ini index 23c61ede1a1..c131078eace 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,6 +17,3 @@ [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-invalid-cases.html.ini b/tests/wpt/metadata-layout-2020/css/cssom-view/elementsFromPoint-invalid-cases.html.ini new file mode 100644 index 00000000000..e181af5397f --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/cssom-view/elementsFromPoint-invalid-cases.html.ini @@ -0,0 +1,4 @@ +[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/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 e21e03bd937..b6d82b3d857 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,27 +312,18 @@ [Response: combined response Content-Type: text/html;" \\" text/plain ";charset=GBK] expected: NOTRUN - [ - - - diff --git a/tests/wpt/web-platform-tests/html/user-activation/activation-api-iframe.tentative.html b/tests/wpt/web-platform-tests/html/user-activation/activation-api-iframe.tentative.html deleted file mode 100644 index 91fac9b246c..00000000000 --- a/tests/wpt/web-platform-tests/html/user-activation/activation-api-iframe.tentative.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - -

Clicking in iframe has activation state in child

-
    -
  1. Click inside the yellow area. -
- - - - diff --git a/tests/wpt/web-platform-tests/html/user-activation/activation-api-setTimeout.tentative.html b/tests/wpt/web-platform-tests/html/user-activation/activation-api-setTimeout.tentative.html deleted file mode 100644 index a8eba38c60e..00000000000 --- a/tests/wpt/web-platform-tests/html/user-activation/activation-api-setTimeout.tentative.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - -

Clicking on document sets user activation even after setTimeout

-

Click anywhere in the document.

- - - diff --git a/tests/wpt/web-platform-tests/html/user-activation/basic.html b/tests/wpt/web-platform-tests/html/user-activation/basic.html new file mode 100644 index 00000000000..fe8cebc1089 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/user-activation/basic.html @@ -0,0 +1,30 @@ + + + + + + + + + +

Basic user activation test

+

Tests that a popup is allowed with user activation.

+
    +
  1. Click anywhere in the document. +
+ + + diff --git a/tests/wpt/web-platform-tests/html/user-activation/chained-setTimeout.tentative.html b/tests/wpt/web-platform-tests/html/user-activation/chained-setTimeout.tentative.html new file mode 100644 index 00000000000..133f137eed6 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/user-activation/chained-setTimeout.tentative.html @@ -0,0 +1,64 @@ + + + + + + + + + + + +

User activation state in chained setTimeout calls

+

Tests that user activation state is visible in arbitrary call depth of setTimeout.

+
    +
  1. Click anywhere in the document. +
+ diff --git a/tests/wpt/web-platform-tests/html/user-activation/consumption-crossorigin.sub.tentative.html b/tests/wpt/web-platform-tests/html/user-activation/consumption-crossorigin.sub.tentative.html new file mode 100644 index 00000000000..01e4d35a43e --- /dev/null +++ b/tests/wpt/web-platform-tests/html/user-activation/consumption-crossorigin.sub.tentative.html @@ -0,0 +1,131 @@ + + + + + + + + + + + +

User activation consumption across cross-origin frame boundary

+

Tests that user activation consumption resets the transient states in all cross-origin frames.

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

User activation consumption across same-origin frame boundary

+

Tests that user activation consumption resets the transient states in all same-origin frames.

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

Post-navigation activation state in child

+

Tests that navigating a cross-origin child frame resets its activation states.

+
    +
  1. Click inside the yellow area. +
+ + + + diff --git a/tests/wpt/web-platform-tests/html/user-activation/navigation-state-reset-sameorigin.tentative.html b/tests/wpt/web-platform-tests/html/user-activation/navigation-state-reset-sameorigin.tentative.html new file mode 100644 index 00000000000..144d7d4bf50 --- /dev/null +++ b/tests/wpt/web-platform-tests/html/user-activation/navigation-state-reset-sameorigin.tentative.html @@ -0,0 +1,53 @@ + + + + + + + + + + +

Post-navigation activation state in child

+

Tests that navigating a same-origin child frame resets its activation states.

+
    +
  1. Click inside the yellow area. +
+ + + + diff --git a/tests/wpt/web-platform-tests/html/user-activation/resources/consumption-crossorigin-child.sub.html b/tests/wpt/web-platform-tests/html/user-activation/resources/consumption-crossorigin-child.sub.html new file mode 100644 index 00000000000..c9f37ac8efd --- /dev/null +++ b/tests/wpt/web-platform-tests/html/user-activation/resources/consumption-crossorigin-child.sub.html @@ -0,0 +1,29 @@ + + + + + + + +
Cross-origin child frame
+ + + diff --git a/tests/wpt/web-platform-tests/html/user-activation/resources/consumption-sameorigin-child.html b/tests/wpt/web-platform-tests/html/user-activation/resources/consumption-sameorigin-child.html new file mode 100644 index 00000000000..9e421fc0f1e --- /dev/null +++ b/tests/wpt/web-platform-tests/html/user-activation/resources/consumption-sameorigin-child.html @@ -0,0 +1,29 @@ + + + + + + + +
Same-origin child frame
+ + + diff --git a/tests/wpt/web-platform-tests/interfaces/image-capture.idl b/tests/wpt/web-platform-tests/interfaces/image-capture.idl index 148bd7bb4cd..094f3f5cafe 100644 --- a/tests/wpt/web-platform-tests/interfaces/image-capture.idl +++ b/tests/wpt/web-platform-tests/interfaces/image-capture.idl @@ -93,27 +93,27 @@ partial dictionary MediaTrackCapabilities { }; partial dictionary MediaTrackConstraintSet { - ConstrainDOMString whiteBalanceMode; - ConstrainDOMString exposureMode; - ConstrainDOMString focusMode; - ConstrainPoint2D pointsOfInterest; + ConstrainDOMString whiteBalanceMode; + ConstrainDOMString exposureMode; + ConstrainDOMString focusMode; + ConstrainPoint2D pointsOfInterest; - ConstrainDouble exposureCompensation; - ConstrainDouble exposureTime; - ConstrainDouble colorTemperature; - ConstrainDouble iso; + ConstrainDouble exposureCompensation; + ConstrainDouble exposureTime; + ConstrainDouble colorTemperature; + ConstrainDouble iso; - ConstrainDouble brightness; - ConstrainDouble contrast; - ConstrainDouble saturation; - ConstrainDouble sharpness; + ConstrainDouble brightness; + ConstrainDouble contrast; + ConstrainDouble saturation; + ConstrainDouble sharpness; - ConstrainDouble focusDistance; - ConstrainDouble pan; - ConstrainDouble tilt; - ConstrainDouble zoom; + ConstrainDouble focusDistance; + (boolean or ConstrainDouble) pan; + (boolean or ConstrainDouble) tilt; + (boolean or ConstrainDouble) zoom; - ConstrainBoolean torch; + ConstrainBoolean torch; }; partial dictionary MediaTrackSettings { diff --git a/tests/wpt/web-platform-tests/interfaces/video-raf.idl b/tests/wpt/web-platform-tests/interfaces/video-raf.idl index 4584050093f..df4aa4c33de 100644 --- a/tests/wpt/web-platform-tests/interfaces/video-raf.idl +++ b/tests/wpt/web-platform-tests/interfaces/video-raf.idl @@ -4,15 +4,16 @@ // Source: HTMLVideoElement.requestAnimationFrame() (https://wicg.github.io/video-raf/) dictionary VideoFrameMetadata { - required DOMHighResTimeStamp presentedTime; + required DOMHighResTimeStamp presentationTime; required DOMHighResTimeStamp expectedDisplayTime; required unsigned long width; required unsigned long height; + required double mediaTime; - double presentationTimestamp; + required unsigned long presentedFrames; double processingDuration; - unsigned long presentedFrames; + DOMHighResTimeStamp captureTime; DOMHighResTimeStamp receiveTime; unsigned long rtpTimestamp; diff --git a/tests/wpt/web-platform-tests/interfaces/webxr-ar-module.idl b/tests/wpt/web-platform-tests/interfaces/webxr-ar-module.idl index c5899d657b2..2a525d2da89 100644 --- a/tests/wpt/web-platform-tests/interfaces/webxr-ar-module.idl +++ b/tests/wpt/web-platform-tests/interfaces/webxr-ar-module.idl @@ -13,3 +13,13 @@ partial interface XRSession { // Attributes readonly attribute XREnvironmentBlendMode environmentBlendMode; }; + +enum XRInteractionMode { + "screen-space", + "world-space", +}; + +partial interface XRSession { + // Attributes + readonly attribute XRInteractionMode interactionMode; +}; diff --git a/tests/wpt/web-platform-tests/lint.whitelist b/tests/wpt/web-platform-tests/lint.whitelist index 7c282eefeab..bd5a5d5c172 100644 --- a/tests/wpt/web-platform-tests/lint.whitelist +++ b/tests/wpt/web-platform-tests/lint.whitelist @@ -606,6 +606,13 @@ CSS-COLLIDING-SUPPORT-NAME: css/css-display/support/util.js CSS-COLLIDING-SUPPORT-NAME: css/CSS2/normal-flow/support/replaced-min-max-1.png CSS-COLLIDING-SUPPORT-NAME: css/vendor-imports/mozilla/mozilla-central-reftests/ui3/support/replaced-min-max-1.png +CSS-COLLIDING-TEST-NAME: css/css-sizing/contain-intrinsic-size/parsing/contain-intrinsic-size-invalid.html +CSS-COLLIDING-TEST-NAME: css/css-sizing/aspect-ratio/parsing/contain-intrinsic-size-invalid.html +CSS-COLLIDING-TEST-NAME: css/css-sizing/contain-intrinsic-size/parsing/contain-intrinsic-size-computed.html +CSS-COLLIDING-TEST-NAME: css/css-sizing/aspect-ratio/parsing/contain-intrinsic-size-computed.html +CSS-COLLIDING-TEST-NAME: css/css-sizing/contain-intrinsic-size/parsing/contain-intrinsic-size-valid.html +CSS-COLLIDING-TEST-NAME: css/css-sizing/aspect-ratio/parsing/contain-intrinsic-size-valid.html + # CSS tests that used to be at the top level and weren't subject to lints MISSING-LINK: css/css-fonts/matching/fixed-stretch-style-over-weight.html SUPPORT-WRONG-DIR: css/css-fonts/matching/font-matching.css diff --git a/tests/wpt/web-platform-tests/mathml/presentation-markup/fractions/frac-linethickness-002.html b/tests/wpt/web-platform-tests/mathml/presentation-markup/fractions/frac-linethickness-002.html index 6cb1b8b4351..0a1d7efef6c 100644 --- a/tests/wpt/web-platform-tests/mathml/presentation-markup/fractions/frac-linethickness-002.html +++ b/tests/wpt/web-platform-tests/mathml/presentation-markup/fractions/frac-linethickness-002.html @@ -56,6 +56,12 @@ assert_approx_equals(LineThickness("namedspace"), defaultRuleThickness, epsilon); }, "Named space"); + test(function() { + assert_true(MathMLFeatureDetection.has_mspace()); + /* Calc() expressions are invalid in MathML Core. */ + assert_approx_equals(LineThickness("calc"), defaultRuleThickness, epsilon); + }, "Calc() expression"); + done(); } @@ -85,5 +91,11 @@ + + + + + + diff --git a/tests/wpt/web-platform-tests/paint-timing/fcp-only/fcp-text-input.html b/tests/wpt/web-platform-tests/paint-timing/fcp-only/fcp-text-input.html new file mode 100644 index 00000000000..6a0cd86881f --- /dev/null +++ b/tests/wpt/web-platform-tests/paint-timing/fcp-only/fcp-text-input.html @@ -0,0 +1,23 @@ + + +Performance Paint Timing Test: FCP due for non-empty text input + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/paint-timing/fcp-only/fcp-typographic-pseudo.html b/tests/wpt/web-platform-tests/paint-timing/fcp-only/fcp-typographic-pseudo.html new file mode 100644 index 00000000000..5ec62b7d59d --- /dev/null +++ b/tests/wpt/web-platform-tests/paint-timing/fcp-only/fcp-typographic-pseudo.html @@ -0,0 +1,32 @@ + + +Performance Paint Timing Test: FCP should not fire when all text is hidden due to typographic pseudo-elements + + + + + + +
+
A
+
+ + + diff --git a/tests/wpt/web-platform-tests/paint-timing/fcp-only/fcp-with-rtl.html b/tests/wpt/web-platform-tests/paint-timing/fcp-only/fcp-with-rtl.html new file mode 100644 index 00000000000..0915b0083da --- /dev/null +++ b/tests/wpt/web-platform-tests/paint-timing/fcp-only/fcp-with-rtl.html @@ -0,0 +1,30 @@ + + +Performance Paint Timing Test: FCP due to direction change + + + + + + +
TEXT
+ + + diff --git a/tests/wpt/web-platform-tests/resource-timing/idlharness.any.js b/tests/wpt/web-platform-tests/resource-timing/idlharness.any.js index a7542f191c1..aa860d3dd16 100644 --- a/tests/wpt/web-platform-tests/resource-timing/idlharness.any.js +++ b/tests/wpt/web-platform-tests/resource-timing/idlharness.any.js @@ -1,5 +1,6 @@ // META: script=/resources/WebIDLParser.js // META: script=/resources/idlharness.js +// META: timeout=long 'use strict'; diff --git a/tests/wpt/web-platform-tests/web-animations/interfaces/DocumentOrShadowRoot/getAnimations.html b/tests/wpt/web-platform-tests/web-animations/interfaces/DocumentOrShadowRoot/getAnimations.html index 67addc05476..9bcc042a8fe 100644 --- a/tests/wpt/web-platform-tests/web-animations/interfaces/DocumentOrShadowRoot/getAnimations.html +++ b/tests/wpt/web-platform-tests/web-animations/interfaces/DocumentOrShadowRoot/getAnimations.html @@ -68,7 +68,7 @@ test(t => { promise_test(async t => { const iframe = document.createElement('iframe'); - insertFrameAndAwaitLoad(t, iframe, document) + await insertFrameAndAwaitLoad(t, iframe, document) const div = createDiv(t, iframe.contentDocument) const effect = new KeyframeEffect(div, null, 100 * MS_PER_SEC); @@ -88,8 +88,8 @@ promise_test(async t => { const iframe1 = document.createElement('iframe'); const iframe2 = document.createElement('iframe'); - insertFrameAndAwaitLoad(t, iframe1, document); - insertFrameAndAwaitLoad(t, iframe2, document); + await insertFrameAndAwaitLoad(t, iframe1, document); + await insertFrameAndAwaitLoad(t, iframe2, document); const div_frame1 = createDiv(t, iframe1.contentDocument) const div_main_frame = createDiv(t) diff --git a/tests/wpt/web-platform-tests/web-animations/testcommon.js b/tests/wpt/web-platform-tests/web-animations/testcommon.js index 811fe784c26..1eb24f658c2 100644 --- a/tests/wpt/web-platform-tests/web-animations/testcommon.js +++ b/tests/wpt/web-platform-tests/web-animations/testcommon.js @@ -180,12 +180,12 @@ function waitForNextFrame() { }); } -async function insertFrameAndAwaitLoad(test, iframe, document) { +async function insertFrameAndAwaitLoad(test, iframe, doc) { const eventWatcher = new EventWatcher(test, iframe, ['load']); const event_promise = eventWatcher.wait_for('load'); - document.body.appendChild(iframe); - test.add_cleanup(() => { document.body.removeChild(iframe); }); + doc.body.appendChild(iframe); + test.add_cleanup(() => { doc.body.removeChild(iframe); }); await event_promise; } diff --git a/tests/wpt/web-platform-tests/web-animations/timing-model/timelines/update-and-send-events-replacement.html b/tests/wpt/web-platform-tests/web-animations/timing-model/timelines/update-and-send-events-replacement.html index fced6ead657..04389a9e270 100644 --- a/tests/wpt/web-platform-tests/web-animations/timing-model/timelines/update-and-send-events-replacement.html +++ b/tests/wpt/web-platform-tests/web-animations/timing-model/timelines/update-and-send-events-replacement.html @@ -989,14 +989,14 @@ promise_test(async t => { promise_test(async t => { const outerIframe = document.createElement('iframe'); - insertFrameAndAwaitLoad(t, outerIframe, document); outerIframe.width = 10; outerIframe.height = 10; + await insertFrameAndAwaitLoad(t, outerIframe, document); const innerIframe = document.createElement('iframe'); - insertFrameAndAwaitLoad(t, innerIframe, outerIframe.contentDocument); innerIframe.width = 10; innerIframe.height = 10; + await insertFrameAndAwaitLoad(t, innerIframe, outerIframe.contentDocument); const div = createDiv(t, innerIframe.contentDocument); diff --git a/tests/wpt/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/cancel-scheduled-values.html b/tests/wpt/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/cancel-scheduled-values.html new file mode 100644 index 00000000000..0174922fe8a --- /dev/null +++ b/tests/wpt/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/cancel-scheduled-values.html @@ -0,0 +1,123 @@ + + + + + cancelScheduledValues + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/webaudio/the-audio-api/the-delaynode-interface/maxdelay-rounding.html b/tests/wpt/web-platform-tests/webaudio/the-audio-api/the-delaynode-interface/maxdelay-rounding.html new file mode 100644 index 00000000000..84d9f181389 --- /dev/null +++ b/tests/wpt/web-platform-tests/webaudio/the-audio-api/the-delaynode-interface/maxdelay-rounding.html @@ -0,0 +1,78 @@ + + + + + Test DelayNode when maxDelayTime requires rounding + + + + + + + + + +