From d96db80c47609acf83ca26dcdd679534089bf2c5 Mon Sep 17 00:00:00 2001 From: Blink WPT Bot Date: Thu, 7 Nov 2024 04:39:55 +0000 Subject: [PATCH] Bug 1929366 [wpt PR 48983] - [CodeHealth] Misc cleanup in PointerEvent wpts, a=testonly Automatic update from web-platform-tests [CodeHealth] Misc cleanup in PointerEvent wpts (#48983) This is a no-op change to remove a few unused methods/features. Change-Id: I5406533f119c052bfe63f7fffdd17e9d828b7964 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5989014 Commit-Queue: Mustaq Ahmed Reviewed-by: Kevin Ellis Cr-Commit-Position: refs/heads/main@{#1378549} Co-authored-by: Mustaq Ahmed -- wpt-commits: eb02ec4fb139eee2d9360e6285a7561954f72198 wpt-pr: 48983 --- .../pointerevent_after_target_removed.html | 2 +- ...ents_after_removing_last_over_element.html | 2 +- .../pointerevents/pointerevent_support.js | 21 ------------------- 3 files changed, 2 insertions(+), 23 deletions(-) diff --git a/testing/web-platform/tests/pointerevents/pointerevent_after_target_removed.html b/testing/web-platform/tests/pointerevents/pointerevent_after_target_removed.html index 97a1a83fc874a..a79600295e4c3 100644 --- a/testing/web-platform/tests/pointerevents/pointerevent_after_target_removed.html +++ b/testing/web-platform/tests/pointerevents/pointerevent_after_target_removed.html @@ -44,7 +44,7 @@ } function removeChild() { - parent.removeChild(child); + child.remove(); event_log.push("(child-removed)"); } diff --git a/testing/web-platform/tests/pointerevents/pointerevent_pointer_boundary_events_after_removing_last_over_element.html b/testing/web-platform/tests/pointerevents/pointerevent_pointer_boundary_events_after_removing_last_over_element.html index bf2a405f727d8..869e65ee86348 100644 --- a/testing/web-platform/tests/pointerevents/pointerevent_pointer_boundary_events_after_removing_last_over_element.html +++ b/testing/web-platform/tests/pointerevents/pointerevent_pointer_boundary_events_after_removing_last_over_element.html @@ -62,7 +62,7 @@ if (event.target == node) { events.push({type: event.type, target: event.target}); } - }, {capture: true}); + }); } } div3.addEventListener("click", event => { diff --git a/testing/web-platform/tests/pointerevents/pointerevent_support.js b/testing/web-platform/tests/pointerevents/pointerevent_support.js index f17a76e5f5e95..7dd60f5a54d90 100644 --- a/testing/web-platform/tests/pointerevents/pointerevent_support.js +++ b/testing/web-platform/tests/pointerevents/pointerevent_support.js @@ -170,27 +170,6 @@ function updateDescriptionComplete() { document.getElementById('desc').innerHTML = "Test Description: Test complete"; } -function updateDescriptionSecondStepTouchActionElement(target, scrollReturnInterval) { - window.step_timeout(function() { - objectScroller(target, 'up', 0);} - , scrollReturnInterval); - document.getElementById('desc').innerHTML = "Test Description: Try to scroll element RIGHT moving your outside of the red border"; -} - -function updateDescriptionThirdStepTouchActionElement(target, scrollReturnInterval, callback = null) { - window.step_timeout(function() { - objectScroller(target, 'left', 0); - if (callback) { - callback(); - } - }, scrollReturnInterval); - document.getElementById('desc').innerHTML = "Test Description: Try to scroll element DOWN then RIGHT starting your touch inside of the element. Then tap complete button"; -} - -function updateDescriptionFourthStepTouchActionElement(target, scrollReturnInterval) { - document.getElementById('desc').innerHTML = "Test Description: Try to scroll element RIGHT starting your touch inside of the element"; -} - function objectScroller(target, direction, value) { if (direction == 'up') { target.scrollTop = 0;