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

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

Issue 2834183002: Add time stamp to the constructor of the events (Closed)
Patch Set: 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/extension/pointerevent_coalesced_events_attributes-manual.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/pointerevents/extension/pointerevent_coalesced_events_attributes-manual.html b/third_party/WebKit/LayoutTests/external/wpt/pointerevents/extension/pointerevent_coalesced_events_attributes-manual.html
index 4610806b3fca31a59a368ebd7b250852c15e2e2c..c0e592bdb3010893079575fc4eb99ee187a806c7 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/pointerevents/extension/pointerevent_coalesced_events_attributes-manual.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/pointerevents/extension/pointerevent_coalesced_events_attributes-manual.html
@@ -77,8 +77,17 @@
test (function() {
for (var i=0; i<coalescedEvents.length; i++) {
assert_equals(coalescedEvents[i].isTrusted, true, 'isTrusted flag should be true for coalesced events.');
+ if (i > 0)
+ assert_greater_than_equal(coalescedEvents[i].timeStamp, coalescedEvents[i-1].timeStamp, 'Time stamps of coalesced events must be ascending.');
}
}, expectedPointerType + ' pointermove coalesced events should all be marked as trusted.');
+ console.log('navid');
dtapuska 2017/04/21 20:18:10 I think the console.log('navid') should be removed
Navid Zolghadr 2017/04/24 15:19:41 I somehow have very clear memory of removing these
+ test (function() {
+ for (var i=1; i<coalescedEvents.length; i++) {
+ console.log('i=' + i + ' ' +coalescedEvents[i].timeStamp + ' ' + coalescedEvents[i-1].timeStamp);
dtapuska 2017/04/21 20:18:10 likewise with this log.
+ assert_greater_than_equal(coalescedEvents[i].timeStamp, coalescedEvents[i-1].timeStamp, 'Time stamps of coalesced events must be ascending.');
+ }
+ }, expectedPointerType + ' time stamps of coalesced events must be ascending.');
test (function() {
for (var i=0; i<coalescedEvents.length; i++) {
assert_equals(coalescedEvents[i].bubbles, false, 'Bubbles attribute should be false for coalesced events.');

Powered by Google App Engine
This is Rietveld 408576698