RESOLVED FIXED 181841
Use promises for basic-gestures.js and 'await' for the corresponding tests
https://bugs.webkit.org/show_bug.cgi?id=181841
Summary Use promises for basic-gestures.js and 'await' for the corresponding tests
Frédéric Wang (:fredw)
Reported 2018-01-19 00:55:52 PST
Use promises for basic-gestures.js and 'await' for the corresponding tests
Attachments
Patch (55.18 KB, patch)
2018-01-19 01:01 PST, Frédéric Wang (:fredw)
megan_gardner: review+
ews-watchlist: commit-queue-
Archive of layout-test-results from ews101 for mac-sierra (2.24 MB, application/zip)
2018-01-19 02:02 PST, EWS Watchlist
no flags
Frédéric Wang (:fredw)
Comment 1 2018-01-19 01:01:50 PST
EWS Watchlist
Comment 2 2018-01-19 02:02:30 PST
Comment on attachment 331715 [details] Patch Attachment 331715 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/6132466 New failing tests: media/modern-media-controls/media-controller/media-controller-fade-controls-when-entering-fullscreen.html
EWS Watchlist
Comment 3 2018-01-19 02:02:31 PST
Created attachment 331717 [details] Archive of layout-test-results from ews101 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-sierra Platform: Mac OS X 10.12.6
Frédéric Wang (:fredw)
Comment 4 2018-01-19 02:07:31 PST
The failure on mac seems unrelated as it happened without the patch: https://webkit-queues.webkit.org/patch/331715/mac-ews
Megan Gardner
Comment 5 2018-01-19 08:30:09 PST
Comment on attachment 331715 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=331715&action=review Looks good other than the few formatting things, and the seemingly unneeded 'done' return. > LayoutTests/fast/events/touch/ios/long-press-then-drag-left-to-change-selected-text.html:69 > + output += 'FAIL: failed to reduce selection to a single character by dragging right. Incorrect Selection: ' + document.getSelection().toString(); extraneous spaces after + Looks like they were there in the original, but should still be removed. > LayoutTests/fast/events/touch/ios/long-press-then-drag-to-select-text.html:37 > + output += 'FAIL: failed to reduce selection to a single character by dragging down. Incorrect Selection: ' + document.getSelection().toString(); extraneous spaces after + > LayoutTests/fast/events/touch/ios/long-press-then-drag-up-to-change-selected-text.html:69 > + output += 'FAIL: failed to reduce selection to a single character by dragging down. Incorrect Selection: ' + document.getSelection().toString(); Extraneous spaces after + > LayoutTests/resources/basic-gestures.js:7 > + uiController.uiScriptComplete('Done'); Is there a reason that this function now returns 'Done'?
Frédéric Wang (:fredw)
Comment 6 2018-01-19 08:35:25 PST
Comment on attachment 331715 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=331715&action=review >> LayoutTests/fast/events/touch/ios/long-press-then-drag-left-to-change-selected-text.html:69 >> + output += 'FAIL: failed to reduce selection to a single character by dragging right. Incorrect Selection: ' + document.getSelection().toString(); > > extraneous spaces after + > Looks like they were there in the original, but should still be removed. Right, I'll fix these. >> LayoutTests/resources/basic-gestures.js:7 >> + uiController.uiScriptComplete('Done'); > > Is there a reason that this function now returns 'Done'? mmh, no. I think I initially copied it from ui-helper.js but that should not affect the tests here.
Wenson Hsieh
Comment 7 2018-01-19 09:01:29 PST
Comment on attachment 331715 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=331715&action=review r=me > LayoutTests/resources/basic-gestures.js:232 > + uiController.uiScriptComplete(); Nit - not a new issue, but the indentation level is off on all of these: ``` uiController.sendEventStream(JSON.stringify(eventStream), function() {}); uiController.uiScriptComplete(); })();`, resolve); ```
Frédéric Wang (:fredw)
Comment 8 2018-01-19 09:07:09 PST
Just for future reference: Megan Gardner was actually not a reviewer when I landed this patch. webkit-patch displayed a warning but I could not abort it in time. So the commit is https://trac.webkit.org/changeset/227201/webkit and "reviewed by Wenson Hsieh". (In reply to Wenson Hsieh from comment #7) > Nit - not a new issue, but the indentation level is off on all of these: > > ``` > uiController.sendEventStream(JSON.stringify(eventStream), function() {}); > uiController.uiScriptComplete(); > })();`, resolve); > ``` Right, but the patch already landed so I prefer not to send another one for whitespace-only change.
Radar WebKit Bug Importer
Comment 9 2018-01-19 09:09:13 PST
Note You need to log in before you can comment on or make changes to this bug.