Skip to content

Commit 74e8c63

Browse files
committed
Bug 1554870 [wpt PR 17041] - Remove the test that checks that pointer events and compatibility mouse events have the same timestamp, a=testonly
Automatic update from web-platform-tests Remove the test that checks that pointer events and compatibility mouse events have the same timestamp. There is no requirement by the specification to do this as per the discussion in w3c/pointerevents#284. This addresses web-platform-tests/wpt#17016. (#17041) -- wp5At-commits: b89470bffd7c2fea14d7822fc18862cf5d8b57b4 wpt-pr: 17041 UltraBlame original commit: 48ef3551127afc3366932e147ead62fe9aeb5a6a
1 parent be83c0a commit 74e8c63

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
var target_list = ["target0", "target1"];
4747
var pointer_event_list = ["pointerdown" , "pointermove", "pointerup"];
4848
var mouse_event_list = ["mousedown", "mouseup", "mousemove"];
49-
var last_pointer_event = null;
5049

5150
target_list.forEach(function(targetId) {
5251
var target = document.getElementById(targetId);
@@ -64,8 +63,6 @@
6463

6564
if (label === "pointerdown@target0")
6665
event.preventDefault();
67-
68-
last_pointer_event = event;
6966
});
7067
});
7168

@@ -77,11 +74,6 @@
7774
event_log.push(event.type + "@" + targetId);
7875

7976
include_next_mousemove = (event.type == "mousedown");
80-
test(function() {
81-
test(function () {
82-
assert_equals(event.timeStamp, last_pointer_event.timeStamp, "The time stamp of the compat mouse event should be the same as its pointerevent");
83-
});
84-
}, event.type + "'s time stamp should be the same as " + last_pointer_event.type + "'s time stamp.");
8577
});
8678
});
8779
});

0 commit comments

Comments
 (0)