Changeset 267656 in webkit
- Timestamp:
- Sep 27, 2020 5:55:58 AM (4 years ago)
- Location:
- trunk/LayoutTests/imported/w3c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r267654 r267656 1 2020-09-27 Cathie Chen <cathiechen@igalia.com> 2 3 Add support to pause in testdriver.js 4 https://bugs.webkit.org/show_bug.cgi?id=216933 5 6 Reviewed by Darin Adler 7 8 While simulating a mouse action, pause in dispatchMouseActions() is needed. Otherwise, the events are sent 9 without delay, the simulation might not be effective. The patch uses JS setTimeout to simulate a pause. 10 11 * web-platform-tests/pointerevents/pointerlock/pointerevent_pointerlock_supercedes_capture-expected.txt: 12 * web-platform-tests/pointerevents/pointerlock/pointerevent_pointermove_on_chorded_mouse_button_when_locked-expected.txt: 13 * web-platform-tests/resources/testdriver-vendor.js: 14 (pause): Use setTimeout to simulate a pause. 15 (dispatchMouseActions): 16 1 17 2020-09-27 Rob Buis <rbuis@igalia.com> 2 18 -
trunk/LayoutTests/imported/w3c/web-platform-tests/pointerevents/pointerlock/pointerevent_pointerlock_supercedes_capture-expected.txt
r264344 r267656 9 9 10 10 11 FAIL mouse no pointercapture while pointerlock assert_ equals: Pointer is unlocked expected 2but got 011 FAIL mouse no pointercapture while pointerlock assert_greater_than: More than 1 pointermove has been received after unlocked expected a number greater than 1 but got 0 12 12 -
trunk/LayoutTests/imported/w3c/web-platform-tests/pointerevents/pointerlock/pointerevent_pointermove_on_chorded_mouse_button_when_locked-expected.txt
r267647 r267656 10 10 Pointer Lock Pointer Events pointermove on button state changes Tests 11 11 12 The following pointer types were detected: (none).12 The following pointer types were detected: mouse. 13 13 14 14 Refresh the page to run the tests again. 15 15 16 16 17 Harness Error (TIMEOUT), message = null 17 PASS pointer locked pointermove events received for button state changes 18 18 19 NOTRUN pointer locked pointermove events received for button state changes20 -
trunk/LayoutTests/imported/w3c/web-platform-tests/resources/testdriver-vendor.js
r258411 r267656 8 8 } 9 9 10 function pause(duration) { 11 return new Promise(resolve => { 12 setTimeout(() => { 13 resolve(); 14 }, duration); 15 }); 16 } 17 10 18 function dispatchMouseActions(actions) 11 19 { … … 14 22 15 23 return new Promise(resolve => { 16 setTimeout( () => {24 setTimeout(async () => { 17 25 eventSender.dragMode = false; 18 26 … … 39 47 break; 40 48 case "pause": 41 // FIXME: What should we do here? 49 logDebug(() => `pause(${action.duration})`); 50 await pause(action.duration); 42 51 break; 43 52 default:
Note: See TracChangeset
for help on using the changeset viewer.