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

Side by Side 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: Fix typos Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Pointer Events coalesced events count and properties<</title> 4 <title>Pointer Events coalesced events count and properties<</title>
5 <meta name="viewport" content="width=device-width"> 5 <meta name="viewport" content="width=device-width">
6 <link rel="stylesheet" type="text/css" href="../pointerevent_styles.css" > 6 <link rel="stylesheet" type="text/css" href="../pointerevent_styles.css" >
7 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharness.js"></script>
8 <script src="/resources/testharnessreport.js"></script> 8 <script src="/resources/testharnessreport.js"></script>
9 <!-- Additional helper script for common checks across event types --> 9 <!-- Additional helper script for common checks across event types -->
10 <script type="text/javascript" src="../pointerevent_support.js"></script > 10 <script type="text/javascript" src="../pointerevent_support.js"></script >
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 break; 70 break;
71 case PhaseEnum.WaitingForMove: 71 case PhaseEnum.WaitingForMove:
72 if (eventName == 'pointermove') { 72 if (eventName == 'pointermove') {
73 var coalescedEvents = event.getCoalescedEvents(); 73 var coalescedEvents = event.getCoalescedEvents();
74 test (function() { 74 test (function() {
75 assert_greater_than(event.getCoalescedEvents().l ength, 1, 'pointermove should have at least 2 coalesced events.'); 75 assert_greater_than(event.getCoalescedEvents().l ength, 1, 'pointermove should have at least 2 coalesced events.');
76 }, expectedPointerType + ' pointermove should have >2 coalesced events as main thread is busy.'); 76 }, expectedPointerType + ' pointermove should have >2 coalesced events as main thread is busy.');
77 test (function() { 77 test (function() {
78 for (var i=0; i<coalescedEvents.length; i++) { 78 for (var i=0; i<coalescedEvents.length; i++) {
79 assert_equals(coalescedEvents[i].isTrusted, tr ue, 'isTrusted flag should be true for coalesced events.'); 79 assert_equals(coalescedEvents[i].isTrusted, tr ue, 'isTrusted flag should be true for coalesced events.');
80 if (i > 0)
81 assert_greater_than_equal(coalescedEvents[i] .timeStamp, coalescedEvents[i-1].timeStamp, 'Time stamps of coalesced events mus t be ascending.');
80 } 82 }
81 }, expectedPointerType + ' pointermove coalesced e vents should all be marked as trusted.'); 83 }, expectedPointerType + ' pointermove coalesced e vents should all be marked as trusted.');
82 test (function() { 84 test (function() {
85 for (var i=1; i<coalescedEvents.length; i++)
86 assert_greater_than_equal(coalescedEvents[i].t imeStamp, coalescedEvents[i-1].timeStamp, 'Time stamps of coalesced events must be ascending.');
87 }, expectedPointerType + ' time stamps of coalesce d events must be ascending.');
88 test (function() {
83 for (var i=0; i<coalescedEvents.length; i++) { 89 for (var i=0; i<coalescedEvents.length; i++) {
84 assert_equals(coalescedEvents[i].bubbles, fals e, 'Bubbles attribute should be false for coalesced events.'); 90 assert_equals(coalescedEvents[i].bubbles, fals e, 'Bubbles attribute should be false for coalesced events.');
85 assert_equals(coalescedEvents[i].cancelable, f alse, 'Cancelable attribute should be false for coalesced events.'); 91 assert_equals(coalescedEvents[i].cancelable, f alse, 'Cancelable attribute should be false for coalesced events.');
86 } 92 }
87 }, expectedPointerType + ' pointermove coalesced e vents should all bubbles and cancelable as false.'); 93 }, expectedPointerType + ' pointermove coalesced e vents should all bubbles and cancelable as false.');
88 phase++; 94 phase++;
89 } 95 }
90 break; 96 break;
91 case PhaseEnum.WaitingForUp: 97 case PhaseEnum.WaitingForUp:
92 if (eventName == 'pointerup') { 98 if (eventName == 'pointerup') {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 </h4> 135 </h4>
130 <div id="target0"></div> 136 <div id="target0"></div>
131 <div id="target1" class="touchActionNone"></div> 137 <div id="target1" class="touchActionNone"></div>
132 <div id="complete-notice"> 138 <div id="complete-notice">
133 <p>The following pointer types were detected: <span id="pointertype- log"></span>.</p> 139 <p>The following pointer types were detected: <span id="pointertype- log"></span>.</p>
134 <p>Refresh the page to run the tests again with a different pointer type.</p> 140 <p>Refresh the page to run the tests again with a different pointer type.</p>
135 </div> 141 </div>
136 </body> 142 </body>
137 </html> 143 </html>
138 144
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/pointerevents/extension/pointerevent_coalesced_events_attributes-manual-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698