diff --git a/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-height-003.xht.ini b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-height-003.xht.ini new file mode 100644 index 00000000000..a7c02218dae --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-height-003.xht.ini @@ -0,0 +1,2 @@ +[absolute-non-replaced-height-003.xht] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-height-004.xht.ini b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-height-004.xht.ini new file mode 100644 index 00000000000..d5edb75b0ee --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-height-004.xht.ini @@ -0,0 +1,2 @@ +[absolute-non-replaced-height-004.xht] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-height-005.xht.ini b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-height-005.xht.ini new file mode 100644 index 00000000000..acbe4a16f4d --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-height-005.xht.ini @@ -0,0 +1,2 @@ +[absolute-non-replaced-height-005.xht] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-height-010.xht.ini b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-height-010.xht.ini new file mode 100644 index 00000000000..ffa0aa5f51d --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-height-010.xht.ini @@ -0,0 +1,2 @@ +[absolute-non-replaced-height-010.xht] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-height-011.xht.ini b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-height-011.xht.ini new file mode 100644 index 00000000000..ff562b47bae --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-height-011.xht.ini @@ -0,0 +1,2 @@ +[absolute-non-replaced-height-011.xht] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-height-012.xht.ini b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-height-012.xht.ini new file mode 100644 index 00000000000..5cd0779a01b --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-height-012.xht.ini @@ -0,0 +1,2 @@ +[absolute-non-replaced-height-012.xht] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-max-height-004.xht.ini b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-max-height-004.xht.ini new file mode 100644 index 00000000000..520f8f51740 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-max-height-004.xht.ini @@ -0,0 +1,2 @@ +[absolute-non-replaced-max-height-004.xht] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-max-height-005.xht.ini b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-max-height-005.xht.ini new file mode 100644 index 00000000000..f0a70485254 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-max-height-005.xht.ini @@ -0,0 +1,2 @@ +[absolute-non-replaced-max-height-005.xht] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-max-height-006.xht.ini b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-max-height-006.xht.ini new file mode 100644 index 00000000000..b49a7b20e06 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-max-height-006.xht.ini @@ -0,0 +1,2 @@ +[absolute-non-replaced-max-height-006.xht] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-max-height-010.xht.ini b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-max-height-010.xht.ini new file mode 100644 index 00000000000..26bf546864a --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-max-height-010.xht.ini @@ -0,0 +1,2 @@ +[absolute-non-replaced-max-height-010.xht] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-max-height-012.xht.ini b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-max-height-012.xht.ini new file mode 100644 index 00000000000..bbeee78f08a --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/CSS2/positioning/absolute-non-replaced-max-height-012.xht.ini @@ -0,0 +1,2 @@ +[absolute-non-replaced-max-height-012.xht] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-animations/display-none-dont-cancel.tentative.html.ini b/tests/wpt/metadata-layout-2020/css/css-animations/display-none-dont-cancel.tentative.html.ini new file mode 100644 index 00000000000..0ac75b5ef27 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-animations/display-none-dont-cancel.tentative.html.ini @@ -0,0 +1,15 @@ +[display-none-dont-cancel.tentative.html] + [display:none animating to display:inline should be inline for the whole animation.] + expected: FAIL + + [A CSS variable of display:none animating to display:inline should be inline for the whole animation.] + expected: FAIL + + [Animating from display:none to display:none should not cancel the animation.] + expected: FAIL + + [Animating from display:none to display:none with an intermediate variable should not cancel the animation.] + expected: FAIL + + [Animating a variable of "none" which gets set to display elsewhere should not cancel the animation.] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-backgrounds/background-attachment-fixed-inline-scrolled.html.ini b/tests/wpt/metadata-layout-2020/css/css-backgrounds/background-attachment-fixed-inline-scrolled.html.ini new file mode 100644 index 00000000000..2789084260c --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-backgrounds/background-attachment-fixed-inline-scrolled.html.ini @@ -0,0 +1,2 @@ +[background-attachment-fixed-inline-scrolled.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-flexbox/abspos/position-absolute-013.html.ini b/tests/wpt/metadata-layout-2020/css/css-flexbox/abspos/position-absolute-013.html.ini index d4f9786638e..0c429395c15 100644 --- a/tests/wpt/metadata-layout-2020/css/css-flexbox/abspos/position-absolute-013.html.ini +++ b/tests/wpt/metadata-layout-2020/css/css-flexbox/abspos/position-absolute-013.html.ini @@ -964,159 +964,3 @@ [.flexbox 129] expected: FAIL - - [.flexbox 10] - expected: FAIL - - [.flexbox 12] - expected: FAIL - - [.flexbox 20] - expected: FAIL - - [.flexbox 31] - expected: FAIL - - [.flexbox 33] - expected: FAIL - - [.flexbox 47] - expected: FAIL - - [.flexbox 58] - expected: FAIL - - [.flexbox 60] - expected: FAIL - - [.flexbox 68] - expected: FAIL - - [.flexbox 79] - expected: FAIL - - [.flexbox 81] - expected: FAIL - - [.flexbox 95] - expected: FAIL - - [.flexbox 107] - expected: FAIL - - [.flexbox 115] - expected: FAIL - - [.flexbox 117] - expected: FAIL - - [.flexbox 128] - expected: FAIL - - [.flexbox 142] - expected: FAIL - - [.flexbox 144] - expected: FAIL - - [.flexbox 155] - expected: FAIL - - [.flexbox 167] - expected: FAIL - - [.flexbox 176] - expected: FAIL - - [.flexbox 188] - expected: FAIL - - [.flexbox 203] - expected: FAIL - - [.flexbox 215] - expected: FAIL - - [.flexbox 224] - expected: FAIL - - [.flexbox 236] - expected: FAIL - - [.flexbox 250] - expected: FAIL - - [.flexbox 252] - expected: FAIL - - [.flexbox 262] - expected: FAIL - - [.flexbox 264] - expected: FAIL - - [.flexbox 271] - expected: FAIL - - [.flexbox 273] - expected: FAIL - - [.flexbox 283] - expected: FAIL - - [.flexbox 285] - expected: FAIL - - [.flexbox 298] - expected: FAIL - - [.flexbox 300] - expected: FAIL - - [.flexbox 308] - expected: FAIL - - [.flexbox 319] - expected: FAIL - - [.flexbox 321] - expected: FAIL - - [.flexbox 335] - expected: FAIL - - [.flexbox 346] - expected: FAIL - - [.flexbox 348] - expected: FAIL - - [.flexbox 356] - expected: FAIL - - [.flexbox 367] - expected: FAIL - - [.flexbox 369] - expected: FAIL - - [.flexbox 383] - expected: FAIL - - [.flexbox 395] - expected: FAIL - - [.flexbox 403] - expected: FAIL - - [.flexbox 405] - expected: FAIL - - [.flexbox 416] - expected: FAIL - - [.flexbox 430] - expected: FAIL - - [.flexbox 432] - expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-flexbox/justify-content-007.html.ini b/tests/wpt/metadata-layout-2020/css/css-flexbox/justify-content-007.html.ini new file mode 100644 index 00000000000..ea29b95ecec --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-flexbox/justify-content-007.html.ini @@ -0,0 +1,3 @@ +[justify-content-007.html] + [.flexitem + .flexitem 1] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-flexbox/table-as-flex-item-max-content.html.ini b/tests/wpt/metadata-layout-2020/css/css-flexbox/table-as-flex-item-max-content.html.ini new file mode 100644 index 00000000000..0757e0f9b55 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-flexbox/table-as-flex-item-max-content.html.ini @@ -0,0 +1,2 @@ +[table-as-flex-item-max-content.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-fonts/variations/font-weight-matching.html.ini b/tests/wpt/metadata-layout-2020/css/css-fonts/variations/font-weight-matching.html.ini index 5aa97a62ffc..2aa858c8719 100644 --- a/tests/wpt/metadata-layout-2020/css/css-fonts/variations/font-weight-matching.html.ini +++ b/tests/wpt/metadata-layout-2020/css/css-fonts/variations/font-weight-matching.html.ini @@ -40,4 +40,3 @@ [Test @font-face matching for weight 420] expected: FAIL - diff --git a/tests/wpt/metadata-layout-2020/css/css-position/overlay/overlay-computed.html.ini b/tests/wpt/metadata-layout-2020/css/css-position/overlay/overlay-computed.html.ini new file mode 100644 index 00000000000..cc0692d0132 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-position/overlay/overlay-computed.html.ini @@ -0,0 +1,18 @@ +[overlay-computed.html] + [Property overlay value 'none'] + expected: FAIL + + [Property overlay value 'auto'] + expected: FAIL + + [Property overlay value 'inherit'] + expected: FAIL + + [Property overlay value 'initial'] + expected: FAIL + + [Property overlay value 'revert'] + expected: FAIL + + [Property overlay value 'unset'] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-position/overlay/overlay-transition-property.html.ini b/tests/wpt/metadata-layout-2020/css/css-position/overlay/overlay-transition-property.html.ini new file mode 100644 index 00000000000..aacfbd3b035 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-position/overlay/overlay-transition-property.html.ini @@ -0,0 +1,3 @@ +[overlay-transition-property.html] + [Property transition value 'overlay 1s'] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-position/overlay/overlay-valid.html.ini b/tests/wpt/metadata-layout-2020/css/css-position/overlay/overlay-valid.html.ini new file mode 100644 index 00000000000..5c27614af3c --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/css-position/overlay/overlay-valid.html.ini @@ -0,0 +1,18 @@ +[overlay-valid.html] + [e.style['overlay'\] = "none" should set the property value] + expected: FAIL + + [e.style['overlay'\] = "auto" should set the property value] + expected: FAIL + + [e.style['overlay'\] = "inherit" should set the property value] + expected: FAIL + + [e.style['overlay'\] = "initial" should set the property value] + expected: FAIL + + [e.style['overlay'\] = "revert" should set the property value] + expected: FAIL + + [e.style['overlay'\] = "unset" should set the property value] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-transitions/properties-value-002.html.ini b/tests/wpt/metadata-layout-2020/css/css-transitions/properties-value-002.html.ini index 56b0fa56d4b..17c3b71eca7 100644 --- a/tests/wpt/metadata-layout-2020/css/css-transitions/properties-value-002.html.ini +++ b/tests/wpt/metadata-layout-2020/css/css-transitions/properties-value-002.html.ini @@ -4,3 +4,27 @@ [vertical-align vertical(keyword) / events] expected: FAIL + + [margin-bottom percentage(%) / values] + expected: FAIL + + [margin-left percentage(%) / values] + expected: FAIL + + [margin-right percentage(%) / values] + expected: FAIL + + [margin-top percentage(%) / values] + expected: FAIL + + [padding-bottom percentage(%) / values] + expected: FAIL + + [padding-left percentage(%) / values] + expected: FAIL + + [padding-right percentage(%) / values] + expected: FAIL + + [padding-top percentage(%) / values] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-transitions/properties-value-inherit-001.html.ini b/tests/wpt/metadata-layout-2020/css/css-transitions/properties-value-inherit-001.html.ini index 1f5e357c51f..719b9b6ff15 100644 --- a/tests/wpt/metadata-layout-2020/css/css-transitions/properties-value-inherit-001.html.ini +++ b/tests/wpt/metadata-layout-2020/css/css-transitions/properties-value-inherit-001.html.ini @@ -544,153 +544,3 @@ [margin-right length(mm) / events] expected: FAIL - - [margin-right length(cm) / events] - expected: FAIL - - [margin-right length(in) / events] - expected: FAIL - - [margin-top length(pt) / events] - expected: FAIL - - [margin-top length(pc) / events] - expected: FAIL - - [margin-top length(px) / events] - expected: FAIL - - [margin-top length(em) / events] - expected: FAIL - - [margin-top length(ex) / events] - expected: FAIL - - [margin-top length(mm) / events] - expected: FAIL - - [margin-top length(cm) / events] - expected: FAIL - - [margin-top length(in) / events] - expected: FAIL - - [height length(pt) / events] - expected: FAIL - - [height length(pc) / events] - expected: FAIL - - [height length(px) / events] - expected: FAIL - - [height length(em) / events] - expected: FAIL - - [height length(ex) / events] - expected: FAIL - - [height length(mm) / events] - expected: FAIL - - [height length(cm) / events] - expected: FAIL - - [height length(in) / events] - expected: FAIL - - [height percentage(%) / events] - expected: FAIL - - [width length(pt) / events] - expected: FAIL - - [width length(pc) / events] - expected: FAIL - - [width length(px) / events] - expected: FAIL - - [width length(em) / events] - expected: FAIL - - [width length(ex) / events] - expected: FAIL - - [width length(mm) / events] - expected: FAIL - - [width length(cm) / events] - expected: FAIL - - [width length(in) / events] - expected: FAIL - - [width percentage(%) / events] - expected: FAIL - - [min-height length(pt) / events] - expected: FAIL - - [min-height length(pc) / events] - expected: FAIL - - [min-height length(px) / events] - expected: FAIL - - [min-height length(em) / events] - expected: FAIL - - [min-height length(ex) / events] - expected: FAIL - - [min-height length(mm) / events] - expected: FAIL - - [min-height length(cm) / events] - expected: FAIL - - [min-height length(in) / events] - expected: FAIL - - [min-height percentage(%) / events] - expected: FAIL - - [min-width length(pt) / events] - expected: FAIL - - [min-width length(pc) / events] - expected: FAIL - - [min-width length(px) / events] - expected: FAIL - - [min-width length(em) / events] - expected: FAIL - - [min-width length(ex) / events] - expected: FAIL - - [min-width length(mm) / events] - expected: FAIL - - [min-width length(cm) / events] - expected: FAIL - - [min-width length(in) / events] - expected: FAIL - - [min-width percentage(%) / events] - expected: FAIL - - [max-height length(pt) / events] - expected: FAIL - - [max-height length(pc) / events] - expected: FAIL - - [max-height length(px) / events] - expected: FAIL - - [max-height length(em) / events] - expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPoint-dynamic-anon-box.html.ini b/tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPoint-dynamic-anon-box.html.ini index cf67b5d03dd..80ed711305d 100644 --- a/tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPoint-dynamic-anon-box.html.ini +++ b/tests/wpt/metadata-layout-2020/css/cssom-view/elementFromPoint-dynamic-anon-box.html.ini @@ -1,3 +1,4 @@ [elementFromPoint-dynamic-anon-box.html] + expected: CRASH [Link should be clickable after hiding a scrollbox with an anonymous table inside] 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 fef9ce7fc04..1a06450c5c1 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 @@ -16,3 +16,6 @@ [test some point of the element: top left corner] expected: FAIL + + [test the top of layer] + 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 314c2710dc9..78f6aab8d85 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 @@ -1,3 +1,6 @@ [elementsFromPoint-iframes.html] [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/selectors/selectors-4/lang-011.html.ini b/tests/wpt/metadata-layout-2020/css/selectors/selectors-4/lang-011.html.ini new file mode 100644 index 00000000000..b168bf5cd3a --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/selectors/selectors-4/lang-011.html.ini @@ -0,0 +1,2 @@ +[lang-011.html] + expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/selectors/selectors-4/lang-012.html.ini b/tests/wpt/metadata-layout-2020/css/selectors/selectors-4/lang-012.html.ini new file mode 100644 index 00000000000..cdc6bafba43 --- /dev/null +++ b/tests/wpt/metadata-layout-2020/css/selectors/selectors-4/lang-012.html.ini @@ -0,0 +1,2 @@ +[lang-012.html] + 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 8edde75f4d0..df1b6f0e51b 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 @@ -186,9 +186,6 @@ [fetch(): separate response Content-Type: text/plain;charset=gbk text/plain] expected: NOTRUN - [Request: combined response Content-Type: text/plain] - expected: FAIL - [ + diff --git a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-destination-dynamic-index.html b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-destination-dynamic-index.html new file mode 100644 index 00000000000..2e0f1ea4973 --- /dev/null +++ b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-destination-dynamic-index.html @@ -0,0 +1,34 @@ + + + + + diff --git a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-destination-getState-back-forward.html b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-destination-getState-back-forward.html index c118aa7a1f3..c8b1043aba6 100644 --- a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-destination-getState-back-forward.html +++ b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-destination-getState-back-forward.html @@ -16,8 +16,8 @@ async_test(t => { assert_not_equals(e.destination, null); assert_not_equals(e.destination.getState(), undefined); assert_not_equals(e.destination.getState(), e.destination.getState()); - assert_equals(e.destination.key, null); - assert_equals(e.destination.id, null); + assert_equals(e.destination.key, ""); + assert_equals(e.destination.id, ""); assert_equals(e.destination.index, -1); }); navigation.back(); diff --git a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-destination-getState-navigate.html b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-destination-getState-navigate.html index 9c34c5753a1..5dac40de566 100644 --- a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-destination-getState-navigate.html +++ b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-destination-getState-navigate.html @@ -13,8 +13,8 @@ async_test(t => { assert_not_equals(e.destination.getState(), undefined); assert_equals(e.destination.getState().statevar, "state"); assert_not_equals(e.destination.getState(), e.destination.getState()); - assert_equals(e.destination.key, null); - assert_equals(e.destination.id, null); + assert_equals(e.destination.key, ""); + assert_equals(e.destination.id, ""); assert_equals(e.destination.index, -1); }); navigation.navigate("#foo", { state: navState }); diff --git a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-destination-getState-reload.html b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-destination-getState-reload.html index b3afb72482c..a180e086a94 100644 --- a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-destination-getState-reload.html +++ b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-destination-getState-reload.html @@ -13,8 +13,8 @@ async_test(t => { assert_not_equals(e.destination.getState(), undefined); assert_equals(e.destination.getState().statevar, "state"); assert_not_equals(e.destination.getState(), e.destination.getState()); - assert_equals(e.destination.key, null); - assert_equals(e.destination.id, null); + assert_equals(e.destination.key, ""); + assert_equals(e.destination.id, ""); assert_equals(e.destination.index, -1); e.intercept(); }); diff --git a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-form-get.html b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-form-get.html index 69a49eb08a6..87a102ddc05 100644 --- a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-form-get.html +++ b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-form-get.html @@ -15,8 +15,8 @@ async_test(t => { assert_equals(e.downloadRequest, null); assert_equals(e.destination.url, location.href + "?"); assert_false(e.destination.sameDocument); - assert_equals(e.destination.key, null); - assert_equals(e.destination.id, null); + assert_equals(e.destination.key, ""); + assert_equals(e.destination.id, ""); assert_equals(e.destination.index, -1); // Because it's a GET, not a POST diff --git a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-form-userInitiated.html b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-form-userInitiated.html index 454f0773962..40c5905447c 100644 --- a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-form-userInitiated.html +++ b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-form-userInitiated.html @@ -20,8 +20,8 @@ async_test(t => { assert_equals(e.downloadRequest, null); assert_equals(e.destination.url, location.href); assert_false(e.destination.sameDocument); - assert_equals(e.destination.key, null); - assert_equals(e.destination.id, null); + assert_equals(e.destination.key, ""); + assert_equals(e.destination.id, ""); assert_equals(e.destination.index, -1); assert_not_equals(e.formData, null); }); diff --git a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-form-with-target.html b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-form-with-target.html index b23ab3a70cc..f6fe05c938f 100644 --- a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-form-with-target.html +++ b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-form-with-target.html @@ -18,8 +18,8 @@ async_test(t => { assert_equals(new URL(e.destination.url).pathname, "/navigation-api/navigate-event/foo.html"); assert_false(e.destination.sameDocument); - assert_equals(e.destination.key, null); - assert_equals(e.destination.id, null); + assert_equals(e.destination.key, ""); + assert_equals(e.destination.id, ""); assert_equals(e.destination.index, -1); assert_not_equals(e.formData, null); }); diff --git a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-form.html b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-form.html index b537a9b58f0..c57d72c3deb 100644 --- a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-form.html +++ b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-form.html @@ -15,8 +15,8 @@ async_test(t => { assert_equals(e.downloadRequest, null); assert_equals(e.destination.url, location.href); assert_false(e.destination.sameDocument); - assert_equals(e.destination.key, null); - assert_equals(e.destination.id, null); + assert_equals(e.destination.key, ""); + assert_equals(e.destination.id, ""); assert_equals(e.destination.index, -1); assert_not_equals(e.formData, null); }); diff --git a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-history-go-0.html b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-history-go-0.html index 96d98cf44c8..b1f41425b62 100644 --- a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-history-go-0.html +++ b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-history-go-0.html @@ -14,8 +14,8 @@ async_test(t => { assert_equals(e.downloadRequest, null); assert_equals(new URL(e.destination.url).pathname, "/common/blank.html"); assert_false(e.destination.sameDocument); - assert_equals(e.destination.key, null); - assert_equals(e.destination.id, null); + assert_equals(e.destination.key, ""); + assert_equals(e.destination.id, ""); assert_equals(e.destination.index, -1); assert_equals(e.formData, null); e.preventDefault(); diff --git a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-history-pushState.html b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-history-pushState.html index 2f8c81c7090..266309a79e1 100644 --- a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-history-pushState.html +++ b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-history-pushState.html @@ -13,8 +13,8 @@ async_test(t => { assert_equals(e.downloadRequest, null); assert_equals(new URL(e.destination.url).hash, "#1"); assert_true(e.destination.sameDocument); - assert_equals(e.destination.key, null); - assert_equals(e.destination.id, null); + assert_equals(e.destination.key, ""); + assert_equals(e.destination.id, ""); assert_equals(e.destination.index, -1); assert_equals(e.formData, null); e.preventDefault(); diff --git a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-history-replaceState.html b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-history-replaceState.html index d8417fbfd30..ea6d3df455d 100644 --- a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-history-replaceState.html +++ b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-history-replaceState.html @@ -13,8 +13,8 @@ async_test(t => { assert_equals(e.downloadRequest, null); assert_equals(new URL(e.destination.url).hash, "#1"); assert_true(e.destination.sameDocument); - assert_equals(e.destination.key, null); - assert_equals(e.destination.id, null); + assert_equals(e.destination.key, ""); + assert_equals(e.destination.id, ""); assert_equals(e.destination.index, -1); assert_equals(e.formData, null); e.preventDefault(); diff --git a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-iframe-location.html b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-iframe-location.html index 059b9950118..25d51476f3f 100644 --- a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-iframe-location.html +++ b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-iframe-location.html @@ -17,8 +17,8 @@ async_test(t => { assert_equals(e.downloadRequest, null); assert_equals(new URL(e.destination.url).hash, "#1"); assert_true(e.destination.sameDocument); - assert_equals(e.destination.key, null); - assert_equals(e.destination.id, null); + assert_equals(e.destination.key, ""); + assert_equals(e.destination.id, ""); assert_equals(e.destination.index, -1); assert_equals(e.formData, null); e.preventDefault(); diff --git a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-location.html b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-location.html index c5aa0be97a4..a4d0c60776d 100644 --- a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-location.html +++ b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-location.html @@ -13,8 +13,8 @@ async_test(t => { assert_equals(e.downloadRequest, null); assert_equals(new URL(e.destination.url).hash, "#1"); assert_true(e.destination.sameDocument); - assert_equals(e.destination.key, null); - assert_equals(e.destination.id, null); + assert_equals(e.destination.key, ""); + assert_equals(e.destination.id, ""); assert_equals(e.destination.index, -1); assert_equals(e.formData, null); }); diff --git a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-meta-refresh.html b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-meta-refresh.html index 1f8ed306851..9fa59b29f24 100644 --- a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-meta-refresh.html +++ b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-meta-refresh.html @@ -16,8 +16,8 @@ async_test(t => { assert_equals(e.downloadRequest, null); assert_equals(e.destination.url, i.contentWindow.location.href); assert_false(e.destination.sameDocument); - assert_equals(e.destination.key, null); - assert_equals(e.destination.id, null); + assert_equals(e.destination.key, ""); + assert_equals(e.destination.id, ""); assert_equals(e.destination.index, -1); assert_equals(e.formData, null); e.preventDefault(); diff --git a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-navigation-navigate.html b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-navigation-navigate.html index 76f98c72361..ffc8ea867f7 100644 --- a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-navigation-navigate.html +++ b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-navigation-navigate.html @@ -12,8 +12,8 @@ async_test(t => { assert_equals(e.downloadRequest, null); assert_equals(new URL(e.destination.url).hash, "#foo"); assert_true(e.destination.sameDocument); - assert_equals(e.destination.key, null); - assert_equals(e.destination.id, null); + assert_equals(e.destination.key, ""); + assert_equals(e.destination.id, ""); assert_equals(e.destination.index, -1); assert_equals(e.formData, null); }); diff --git a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-to-srcdoc.html b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-to-srcdoc.html index 26ad135b6ad..8bbb66a31fd 100644 --- a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-to-srcdoc.html +++ b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-to-srcdoc.html @@ -17,8 +17,8 @@ async_test(t => { assert_equals(e.downloadRequest, null); assert_equals(e.destination.url, "about:srcdoc"); assert_false(e.destination.sameDocument); - assert_equals(e.destination.key, null); - assert_equals(e.destination.id, null); + assert_equals(e.destination.key, ""); + assert_equals(e.destination.id, ""); assert_equals(e.destination.index, -1); assert_equals(e.formData, null); e.preventDefault(); diff --git a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-window-open-self.html b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-window-open-self.html index 274c8bc4d57..a6e443fd5a1 100644 --- a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-window-open-self.html +++ b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-window-open-self.html @@ -12,8 +12,8 @@ async_test(t => { assert_equals(e.downloadRequest, null); assert_equals(new URL(e.destination.url).hash, "#1"); assert_true(e.destination.sameDocument); - assert_equals(e.destination.key, null); - assert_equals(e.destination.id, null); + assert_equals(e.destination.key, ""); + assert_equals(e.destination.id, ""); assert_equals(e.destination.index, -1); assert_equals(e.formData, null); e.preventDefault(); diff --git a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-window-open.html b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-window-open.html index afc998271f6..1fe2402bc91 100644 --- a/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-window-open.html +++ b/tests/wpt/web-platform-tests/navigation-api/navigate-event/navigate-window-open.html @@ -17,8 +17,8 @@ async_test(t => { assert_equals(e.downloadRequest, null); assert_equals(new URL(e.destination.url).hash, "#1"); assert_true(e.destination.sameDocument); - assert_equals(e.destination.key, null); - assert_equals(e.destination.id, null); + assert_equals(e.destination.key, ""); + assert_equals(e.destination.id, ""); assert_equals(e.destination.index, -1); assert_equals(e.formData, null); e.preventDefault(); diff --git a/tests/wpt/web-platform-tests/page-visibility/resources/window_state_context.js b/tests/wpt/web-platform-tests/page-visibility/resources/window_state_context.js index 40f10a56448..fa96bf3b760 100644 --- a/tests/wpt/web-platform-tests/page-visibility/resources/window_state_context.js +++ b/tests/wpt/web-platform-tests/page-visibility/resources/window_state_context.js @@ -15,5 +15,23 @@ function window_state_context(t) { rect = await test_driver.minimize_window(); } - return {minimize, restore}; + function visibilityEventPromise() { + return new Promise(resolve => new PerformanceObserver( + (entries, observer) => { observer.disconnect(); resolve(); }).observe( + {type: "visibility-state"})) + } + + async function minimizeAndWait() { + const promise = visibilityEventPromise(); + await Promise.all([minimize(), promise]); + await new Promise(resolve => t.step_timeout(resolve, 0)); + } + + async function restoreAndWait() { + const promise = visibilityEventPromise(); + await Promise.all([restore(), promise]); + await new Promise(resolve => t.step_timeout(resolve, 0)); + } + + return {minimize, restore, minimizeAndWait, restoreAndWait}; } diff --git a/tests/wpt/web-platform-tests/page-visibility/visibility-state-entry.tentative.html b/tests/wpt/web-platform-tests/page-visibility/visibility-state-entry.tentative.html index c62b6c583f4..0dbe634d25b 100644 --- a/tests/wpt/web-platform-tests/page-visibility/visibility-state-entry.tentative.html +++ b/tests/wpt/web-platform-tests/page-visibility/visibility-state-entry.tentative.html @@ -1,6 +1,6 @@ Test VisibleStateEntry - + @@ -15,68 +15,56 @@ setup(() => { }); promise_test(async t => { - const {minimize, restore} = window_state_context(t); + const {minimizeAndWait, restoreAndWait} = window_state_context(t); + const all = performance.getEntries(); let entries = performance.getEntriesByType("visibility-state"); assert_equals(entries.length, 1); assert_equals(entries[0].name, "visible"); assert_equals(entries[0].startTime, 0); assert_equals(entries[0].duration, 0); - await minimize(); + await minimizeAndWait(); entries = performance.getEntriesByType("visibility-state"); assert_equals(entries.length, 2); assert_equals(entries[1].name, "hidden"); assert_equals(entries[1].duration, 0); - await restore(); + await restoreAndWait(); + entries = performance.getEntriesByType("visibility-state"); assert_equals(entries.length, 3); assert_equals(entries[2].name, "visible"); assert_equals(entries[2].duration, 0); }, "Hiding/showing the page should create visibility-state entries"); promise_test(async t => { - const {minimize, restore} = window_state_context(t); - await minimize(); - const popup = window.open("resources/blank_page_green.html"); - t.add_cleanup(() => popup.close()); - await restore(); - let entries = popup.performance.getEntriesByType("visibility-state"); - assert_equals(entries.length, 2); + const {minimizeAndWait} = window_state_context(t); + await minimizeAndWait(); + const iframe = document.createElement("iframe"); + iframe.src = "resources/blank_page_green.html"; + const loaded = new Promise(resolve => iframe.addEventListener("load", resolve)); + t.add_cleanup(() => iframe.remove()); + document.body.appendChild(iframe); + await loaded; + const entries = iframe.contentWindow.performance.getEntriesByType("visibility-state"); assert_equals(entries[0].name, "hidden"); assert_equals(entries[0].startTime, 0); - assert_equals(entries[1].name, "visible"); - assert_greater_than(entries[1].startTime, 0); - }, "If a page starts as hidden, the first visibility-state entry should be hidden"); promise_test(async t => { const {minimize, restore} = window_state_context(t); - await minimize(); const observed = new Promise(resolve => new PerformanceObserver(list => { - const entries = list.getEntries(); - assert_equals(entries.length, 1); - assert_equals(entries[0].name, "visible"); - assert_greater_than(entries[0].startTime, 0); - assert_equals(entries[0].duration, 0); + if (list.getEntries()[0].name === "visible") resolve(); - }).observe({entryTypes: ['visibility-state'], buffered: true})); + }).observe({entryTypes: ['visibility-state']})); + await minimize(); await restore(); await observed; }, "Visibility state entries should be queued to performance observers"); promise_test(async t => { - const {minimize, restore} = window_state_context(t); - await minimize(); - await restore(); - await new Promise(resolve => new PerformanceObserver(list => { - const entries = list.getEntries(); - assert_equals(entries.length, 3); - assert_equals(entries[0].name, "visible"); - assert_equals(entries[0].startTime, 0); - assert_equals(entries[0].duration, 0); - assert_equals(entries[1].name, "hidden"); - assert_equals(entries[1].duration, 0); - assert_equals(entries[2].name, "visible"); - assert_equals(entries[2].duration, 0); - resolve(); - }).observe({entryTypes: ['visibility-state'], buffered: true})); -}, "Visibility state entries should respect the buffered flag"); + const entry = await new Promise(resolve => new PerformanceObserver( + (list, observer) => { + observer.disconnect(); + resolve(list.getEntries()[0]); + }).observe({type: "visibility-state", buffered: true})); + assert_equals(entry.name, "visible"); +}, "Visibility state observers should respect the buffered flag"); diff --git a/tests/wpt/web-platform-tests/resources/chromium/mock-pressure-service.js b/tests/wpt/web-platform-tests/resources/chromium/mock-pressure-service.js index 91efe529f2a..21811ed52da 100644 --- a/tests/wpt/web-platform-tests/resources/chromium/mock-pressure-service.js +++ b/tests/wpt/web-platform-tests/resources/chromium/mock-pressure-service.js @@ -1,5 +1,5 @@ import {PressureManager, PressureManagerReceiver, PressureStatus} from '/gen/services/device/public/mojom/pressure_manager.mojom.m.js' -import {PressureFactor, PressureState} from '/gen/services/device/public/mojom/pressure_update.mojom.m.js' +import {PressureFactor, PressureSource, PressureState} from '/gen/services/device/public/mojom/pressure_update.mojom.m.js' class MockPressureService { constructor() { @@ -9,11 +9,8 @@ class MockPressureService { this.interceptor_.oninterfacerequest = e => { this.receiver_.$.bindHandle(e.handle); }; - this.receiver_.onConnectionError.addListener(() => { - this.stopPlatformCollector(); - this.observer_ = null; - }); this.reset(); + this.mojomSourceType_ = new Map([['cpu', PressureSource.kCpu]]); this.mojomStateType_ = new Map([ ['nominal', PressureState.kNominal], ['fair', PressureState.kFair], ['serious', PressureState.kSerious], ['critical', PressureState.kCritical] @@ -40,22 +37,27 @@ class MockPressureService { } reset() { - this.observer_ = null; + this.observers_ = []; this.pressureUpdate_ = null; this.pressureServiceReadingTimerId_ = null; this.pressureStatus_ = PressureStatus.kOk; this.updatesDelivered_ = 0; } - async addClient(observer) { - if (this.observer_ !== null) - throw new Error('BindObserver() has already been called'); + async addClient(observer, source) { + if (this.observers_.indexOf(observer) >= 0) + throw new Error('addClient() has already been called'); - this.observer_ = observer; - this.observer_.onConnectionError.addListener(() => { - this.stopPlatformCollector(); - this.observer_ = null; + // TODO(crbug.com/1342184): Consider other sources. + // For now, "cpu" is the only source. + if (source !== PressureSource.kCpu) + throw new Error('Call addClient() with a wrong PressureSource'); + + observer.onConnectionError.addListener(() => { + // Remove this observer from observer array. + this.observers_.splice(this.observers_.indexOf(observer), 1); }); + this.observers_.push(observer); return {status: this.pressureStatus_}; } @@ -83,20 +85,21 @@ class MockPressureService { const epochDeltaInMs = unixEpoch - windowsEpoch; const timeout = (1 / sampleRate) * 1000; - this.pressureServiceReadingTimerId_ = window.setInterval(() => { - if (this.pressureUpdate_ === null || this.observer_ === null) + this.pressureServiceReadingTimerId_ = self.setInterval(() => { + if (this.pressureUpdate_ === null || this.observers_.length === 0) return; this.pressureUpdate_.timestamp = { internalValue: BigInt((new Date().getTime() + epochDeltaInMs) * 1000) }; - this.observer_.onPressureUpdated(this.pressureUpdate_); + for (let observer of this.observers_) + observer.onPressureUpdated(this.pressureUpdate_); this.updatesDelivered_++; }, timeout); } stopPlatformCollector() { if (this.pressureServiceReadingTimerId_ != null) { - window.clearInterval(this.pressureServiceReadingTimerId_); + self.clearInterval(this.pressureServiceReadingTimerId_); this.pressureServiceReadingTimerId_ = null; } this.updatesDelivered_ = 0; @@ -106,7 +109,10 @@ class MockPressureService { return this.updatesDelivered_; } - setPressureUpdate(state, factors) { + setPressureUpdate(source, state, factors) { + if (!this.mojomSourceType_.has(source)) + throw new Error(`PressureSource '${source}' is invalid`); + if (!this.mojomStateType_.has(state)) throw new Error(`PressureState '${state}' is invalid`); @@ -120,6 +126,7 @@ class MockPressureService { } this.pressureUpdate_ = { + source: this.mojomSourceType_.get(source), state: this.mojomStateType_.get(state), factors: pressureFactors, }; diff --git a/tests/wpt/web-platform-tests/resources/chromium/mock-subapps.js b/tests/wpt/web-platform-tests/resources/chromium/mock-subapps.js index b63e97b8c4d..b81936713b1 100644 --- a/tests/wpt/web-platform-tests/resources/chromium/mock-subapps.js +++ b/tests/wpt/web-platform-tests/resources/chromium/mock-subapps.js @@ -37,7 +37,7 @@ self.SubAppsServiceTest = (() => { remove() { return Promise.resolve({ - result: testInternal.serviceResultCode, + result: testInternal.removeCallReturnValue, }); } } @@ -48,6 +48,7 @@ self.SubAppsServiceTest = (() => { serviceResultCode: 0, addCallReturnValue: [], listCallReturnValue: [], + removeCallReturnValue: [], } class SubAppsServiceTestChromium { @@ -55,7 +56,7 @@ self.SubAppsServiceTest = (() => { Object.freeze(this); // Make it immutable. } - initialize(service_result_code, add_call_return_value, list_call_return_value) { + initialize(service_result_code, add_call_return_value, list_call_return_value, remove_call_return_value) { if (!testInternal.initialized) { testInternal = { mockSubAppsService: new MockSubAppsService(), @@ -63,6 +64,7 @@ self.SubAppsServiceTest = (() => { serviceResultCode: service_result_code, addCallReturnValue: add_call_return_value, listCallReturnValue: list_call_return_value, + removeCallReturnValue: remove_call_return_value, }; }; } @@ -76,6 +78,7 @@ self.SubAppsServiceTest = (() => { serviceResultCode: 0, addCallReturnValue: [], listCallReturnValue: [], + removeCallReturnValue: [], }; await new Promise(resolve => setTimeout(resolve, 0)); } diff --git a/tests/wpt/web-platform-tests/screen-orientation/orientation-reading.html b/tests/wpt/web-platform-tests/screen-orientation/orientation-reading.html index 0bebb6723a3..90bbb8071da 100644 --- a/tests/wpt/web-platform-tests/screen-orientation/orientation-reading.html +++ b/tests/wpt/web-platform-tests/screen-orientation/orientation-reading.html @@ -6,110 +6,91 @@ diff --git a/tests/wpt/web-platform-tests/scroll-animations/css/animation-duration-auto.tentative.html b/tests/wpt/web-platform-tests/scroll-animations/css/animation-duration-auto.tentative.html index f44a682890d..375489c26a4 100644 --- a/tests/wpt/web-platform-tests/scroll-animations/css/animation-duration-auto.tentative.html +++ b/tests/wpt/web-platform-tests/scroll-animations/css/animation-duration-auto.tentative.html @@ -13,7 +13,7 @@ width: 100px; height: 100px; } - #scroller > div { + #scroller > #content { height: 200px; width: 200px; } @@ -36,9 +36,9 @@
-
+
+
-
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/scroll-animations/css/scroll-timeline-axis-writing-mode.html b/tests/wpt/web-platform-tests/scroll-animations/css/scroll-timeline-axis-writing-mode.html index 37b4dfdf549..958ce4964e8 100644 --- a/tests/wpt/web-platform-tests/scroll-animations/css/scroll-timeline-axis-writing-mode.html +++ b/tests/wpt/web-platform-tests/scroll-animations/css/scroll-timeline-axis-writing-mode.html @@ -41,15 +41,16 @@ scroll-timeline: timeline_inline_in_vertical inline; writing-mode: vertical-lr; } - #container > div { + .target { width: 0px; animation-name: expand; animation-duration: 10s; animation-timing-function: linear; + position: absolute; } /* Ensure stable expectations if feature is not supported */ @supports not (animation-timeline:foo) { - #container > div { animation-play-state: paused; } + .target { animation-play-state: paused; } } #element_initial_axis { animation-timeline: timeline_initial_axis; } #element_vertical { animation-timeline: timeline_vertical; } @@ -59,21 +60,33 @@ #element_block_in_vertical { animation-timeline: timeline_block_in_vertical; } #element_inline_in_vertical { animation-timeline: timeline_inline_in_vertical; } -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/wpt/web-platform-tests/scroll-animations/css/view-timeline-attachment.html b/tests/wpt/web-platform-tests/scroll-animations/css/view-timeline-attachment.html new file mode 100644 index 00000000000..47f4444b0dc --- /dev/null +++ b/tests/wpt/web-platform-tests/scroll-animations/css/view-timeline-attachment.html @@ -0,0 +1,338 @@ + +View Timeline Attachment + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/scroll-animations/css/view-timeline-inset-animation.html b/tests/wpt/web-platform-tests/scroll-animations/css/view-timeline-inset-animation.html index a95086b62bf..a7e807c2e81 100644 --- a/tests/wpt/web-platform-tests/scroll-animations/css/view-timeline-inset-animation.html +++ b/tests/wpt/web-platform-tests/scroll-animations/css/view-timeline-inset-animation.html @@ -1,5 +1,6 @@ Animations using view-timeline-inset + diff --git a/tests/wpt/web-platform-tests/scroll-animations/css/view-timeline-keyframe-boundary-interpolation.html b/tests/wpt/web-platform-tests/scroll-animations/css/view-timeline-keyframe-boundary-interpolation.html index 1dc766d961c..04eb6489490 100644 --- a/tests/wpt/web-platform-tests/scroll-animations/css/view-timeline-keyframe-boundary-interpolation.html +++ b/tests/wpt/web-platform-tests/scroll-animations/css/view-timeline-keyframe-boundary-interpolation.html @@ -80,7 +80,10 @@ promise_test(async t => { await waitForNextFrame(); - const anim = document.getAnimations()[0]; + const anims = document.getAnimations(); + assert_equals(anims.length, 1, + "Should have one animation attatched to the view-timeline"); + const anim = anims[0]; await anim.ready; await waitForNextFrame(); diff --git a/tests/wpt/web-platform-tests/scroll-animations/css/view-timeline-lookup.html b/tests/wpt/web-platform-tests/scroll-animations/css/view-timeline-lookup.html index c1797c7ba1c..b8a5b0008be 100644 --- a/tests/wpt/web-platform-tests/scroll-animations/css/view-timeline-lookup.html +++ b/tests/wpt/web-platform-tests/scroll-animations/css/view-timeline-lookup.html @@ -260,8 +260,7 @@ }, 'view-timeline on ancestor sibling, closer scroll-timeline wins'); - -