Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit d96db80

Browse files
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 <[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
1 parent 47830bc commit d96db80

File tree

3 files changed

+2
-23
lines changed

3 files changed

+2
-23
lines changed

testing/web-platform/tests/pointerevents/pointerevent_after_target_removed.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
}
4545

4646
function removeChild() {
47-
parent.removeChild(child);
47+
child.remove();
4848
event_log.push("(child-removed)");
4949
}
5050

testing/web-platform/tests/pointerevents/pointerevent_pointer_boundary_events_after_removing_last_over_element.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
if (event.target == node) {
6363
events.push({type: event.type, target: event.target});
6464
}
65-
}, {capture: true});
65+
});
6666
}
6767
}
6868
div3.addEventListener("click", event => {

testing/web-platform/tests/pointerevents/pointerevent_support.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -170,27 +170,6 @@ function updateDescriptionComplete() {
170170
document.getElementById('desc').innerHTML = "Test Description: Test complete";
171171
}
172172

173-
function updateDescriptionSecondStepTouchActionElement(target, scrollReturnInterval) {
174-
window.step_timeout(function() {
175-
objectScroller(target, 'up', 0);}
176-
, scrollReturnInterval);
177-
document.getElementById('desc').innerHTML = "Test Description: Try to scroll element RIGHT moving your outside of the red border";
178-
}
179-
180-
function updateDescriptionThirdStepTouchActionElement(target, scrollReturnInterval, callback = null) {
181-
window.step_timeout(function() {
182-
objectScroller(target, 'left', 0);
183-
if (callback) {
184-
callback();
185-
}
186-
}, scrollReturnInterval);
187-
document.getElementById('desc').innerHTML = "Test Description: Try to scroll element DOWN then RIGHT starting your touch inside of the element. Then tap complete button";
188-
}
189-
190-
function updateDescriptionFourthStepTouchActionElement(target, scrollReturnInterval) {
191-
document.getElementById('desc').innerHTML = "Test Description: Try to scroll element RIGHT starting your touch inside of the element";
192-
}
193-
194173
function objectScroller(target, direction, value) {
195174
if (direction == 'up') {
196175
target.scrollTop = 0;

0 commit comments

Comments
 (0)