Skip to content

Commit

Permalink
Remove the test that checks that pointer events and compatibility mou…
Browse files Browse the repository at this point in the history
…se 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 #17016. (#17041)
  • Loading branch information
graouts committed May 28, 2019
1 parent 9954b61 commit b89470b
Showing 1 changed file with 0 additions and 8 deletions.
Expand Up @@ -46,7 +46,6 @@
var target_list = ["target0", "target1"];
var pointer_event_list = ["pointerdown" , "pointermove", "pointerup"];
var mouse_event_list = ["mousedown", "mouseup", "mousemove"];
var last_pointer_event = null;

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

if (label === "pointerdown@target0")
event.preventDefault();

last_pointer_event = event;
});
});

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

include_next_mousemove = (event.type == "mousedown");
test(function() {
test(function () {
assert_equals(event.timeStamp, last_pointer_event.timeStamp, "The time stamp of the compat mouse event should be the same as its pointerevent");
});
}, event.type + "'s time stamp should be the same as " + last_pointer_event.type + "'s time stamp.");
});
});
});
Expand Down

0 comments on commit b89470b

Please sign in to comment.