Skip to content

Commit

Permalink
Bug 1929366 [wpt PR 48983] - [CodeHealth] Misc cleanup in PointerEven…
Browse files Browse the repository at this point in the history
…t 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 <[email protected]>
Reviewed-by: Kevin Ellis <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1378549}

Co-authored-by: Mustaq Ahmed <[email protected]>
--

wpt-commits: eb02ec4fb139eee2d9360e6285a7561954f72198
wpt-pr: 48983
  • Loading branch information
chromium-wpt-export-bot authored and moz-wptsync-bot committed Nov 7, 2024
1 parent 47830bc commit d96db80
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}

function removeChild() {
parent.removeChild(child);
child.remove();
event_log.push("(child-removed)");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
if (event.target == node) {
events.push({type: event.type, target: event.target});
}
}, {capture: true});
});
}
}
div3.addEventListener("click", event => {
Expand Down
21 changes: 0 additions & 21 deletions testing/web-platform/tests/pointerevents/pointerevent_support.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d96db80

Please sign in to comment.