diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-scroll-snap-2/snapchanging')
5 files changed, 16 insertions, 16 deletions
diff --git a/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-after-layout-change.tentative.html b/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-after-layout-change.tentative.html index 5474b7ddce..ff307981e8 100644 --- a/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-after-layout-change.tentative.html +++ b/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-after-layout-change.tentative.html @@ -102,7 +102,7 @@ // assert snapchanging that should have already happened. await scroll_promise; - assertSnapEvent(snap_evt, [box2.id]); + assertSnapEventDeprecated(snap_evt, [box2.id]); evt_promise = waitForSnapEvent(scroller, "snapchanging", false); // Change layout while pointer is still down. @@ -111,7 +111,7 @@ box2.style.left = box3_prev_left; box3.style.left = box2_prev_left; snap_evt = await evt_promise; - assertSnapEvent(snap_evt, [box3.id]); + assertSnapEventDeprecated(snap_evt, [box3.id]); }, "snapchanging fires after layout change"); </script> </body> diff --git a/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-on-programmatic-root-scroll.tentative.html b/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-on-programmatic-root-scroll.tentative.html index d031811c17..7044cfac96 100644 --- a/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-on-programmatic-root-scroll.tentative.html +++ b/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-on-programmatic-root-scroll.tentative.html @@ -80,7 +80,7 @@ y: snap_area_2.offsetTop } }; - await test_snap_event(t, test_data, "snapchanging"); + await test_snap_event_deprecated(t, test_data, "snapchanging"); }, "snapchanging fires on programmatic scrolls that changes a scroller's" + " snap targets."); diff --git a/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-on-programmatic-scroll.tentative.html b/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-on-programmatic-scroll.tentative.html index 5a0de1deb3..86946b84e9 100644 --- a/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-on-programmatic-scroll.tentative.html +++ b/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-on-programmatic-scroll.tentative.html @@ -87,7 +87,7 @@ y: snap_area_2.offsetTop } }; - await test_snap_event(t, test_data, "snapchanging"); + await test_snap_event_deprecated(t, test_data, "snapchanging"); }, "snapchanging fires on programmatic scrolls that changes a scroller's" + " snap targets."); diff --git a/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-on-user-root-scroll.tentative.html b/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-on-user-root-scroll.tentative.html index 29d0239e2d..a9b003e6c5 100644 --- a/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-on-user-root-scroll.tentative.html +++ b/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-on-user-root-scroll.tentative.html @@ -92,7 +92,7 @@ y: snap_area_2.offsetTop } }; - await test_snap_event(t, test_data, "snapchanging"); + await test_snap_event_deprecated(t, test_data, "snapchanging"); }, "touch scrolling fires snapchanging."); // Wheel scroll test. @@ -110,7 +110,7 @@ y: snap_area_2.offsetTop } }; - await test_snap_event(t, test_data, "snapchanging"); + await test_snap_event_deprecated(t, test_data, "snapchanging"); }, "mouse wheel scroll triggers snapchanging."); // Scrollbar drag test. @@ -136,7 +136,7 @@ y: snap_area_2.offsetTop } }; - await test_snap_event(t, test_data, "snapchanging"); + await test_snap_event_deprecated(t, test_data, "snapchanging"); }, "scrollbar dragging fires snapchanging."); // Keyboard test. @@ -154,7 +154,7 @@ y: snap_area_2.offsetTop } }; - await test_snap_event(t, test_data, "snapchanging"); + await test_snap_event_deprecated(t, test_data, "snapchanging"); }, "keyboard scroll triggers snapchanging."); // Touch scroll test: peek at snap_area_2 and then drag back to @@ -183,8 +183,8 @@ .send(); let evts = await evts_promise; assert_equals(evts.length, 2, "2 snapchanging events are seens"); - assertSnapEvent(evts[0], [snap_area_2.id]); - assertSnapEvent(evts[1], [snap_area_1.id]); + assertSnapEventDeprecated(evts[0], [snap_area_2.id]); + assertSnapEventDeprecated(evts[1], [snap_area_1.id]); }, "snapchanging fires as scroll moves through different snap targets."); // snapchanging doesn't fire test. diff --git a/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-on-user-scroll.tentative.html b/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-on-user-scroll.tentative.html index 2c1f9742b6..28ca96ec93 100644 --- a/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-on-user-scroll.tentative.html +++ b/testing/web-platform/tests/css/css-scroll-snap-2/snapchanging/snapchanging-on-user-scroll.tentative.html @@ -81,7 +81,7 @@ y: snap_area_2.offsetTop } }; - await test_snap_event(t, test_data, "snapchanging"); + await test_snap_event_deprecated(t, test_data, "snapchanging"); }, "touch scrolling fires snapchanging."); // Wheel scroll test. @@ -100,7 +100,7 @@ y: snap_area_2.offsetTop } }; - await test_snap_event(t, test_data, "snapchanging"); + await test_snap_event_deprecated(t, test_data, "snapchanging"); }, "mouse wheel scroll triggers snapchanging."); // Scrollbar drag test. @@ -127,7 +127,7 @@ y: snap_area_2.offsetTop } }; - await test_snap_event(t, test_data, "snapchanging"); + await test_snap_event_deprecated(t, test_data, "snapchanging"); }, "scrollbar dragging fires snapchanging."); // Keyboard test. @@ -145,7 +145,7 @@ y: snap_area_2.offsetTop } }; - await test_snap_event(t, test_data, "snapchanging"); + await test_snap_event_deprecated(t, test_data, "snapchanging"); }, "keyboard scroll triggers snapchanging."); // Touch scroll test: peek at snap_area_2 and then drag back to @@ -174,8 +174,8 @@ .send(); let evts = await evts_promise; assert_equals(evts.length, 2, "2 snapchanging events are seens"); - assertSnapEvent(evts[0], [snap_area_2.id]); - assertSnapEvent(evts[1], [snap_area_1.id]); + assertSnapEventDeprecated(evts[0], [snap_area_2.id]); + assertSnapEventDeprecated(evts[1], [snap_area_1.id]); }, "snapchanging fires as scroll moves through different snap targets."); // snapchanging doesn't fire test. |