Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(485)

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_suppress_compat_events_on_drag_mouse-manual.html

Issue 2834183002: Add time stamp to the constructor of the events (Closed)
Patch Set: Fix typos Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_suppress_compat_events_on_drag_mouse-manual.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_suppress_compat_events_on_drag_mouse-manual.html b/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_suppress_compat_events_on_drag_mouse-manual.html
index 02bca85008e91da72b5c83f7fcc2f7c715f31d31..8afa04634bbddd9561172bcb6997b44c994014f3 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_suppress_compat_events_on_drag_mouse-manual.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/pointerevents/pointerevent_suppress_compat_events_on_drag_mouse-manual.html
@@ -41,8 +41,9 @@
on_event(document.getElementById("done"), "click", end_of_interaction);
var target_list = ["target0", "target1"];
- var pointer_event_list = ["pointerdown"];
+ 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);
@@ -52,12 +53,16 @@
detected_pointertypes[event.pointerType] = true;
var label = event.type + "@" + targetId;
- test(function () {
- assert_true(event.isPrimary);
- }, "primary pointer " + label);
+ if (event.type == "pointerdown") {
+ test(function () {
+ assert_true(event.isPrimary);
+ }, "primary pointer " + label);
+ }
if (label === "pointerdown@target0")
event.preventDefault();
+
+ last_pointer_event = event;
});
});
@@ -69,6 +74,11 @@
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.");
});
});
});

Powered by Google App Engine
This is Rietveld 408576698