WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
177289
Add long press and drag test
https://bugs.webkit.org/show_bug.cgi?id=177289
Summary
Add long press and drag test
Megan Gardner
Reported
2017-09-20 19:52:12 PDT
Add long press and drag test
Attachments
Patch
(8.06 KB, patch)
2017-09-20 19:57 PDT
,
Megan Gardner
no flags
Details
Formatted Diff
Diff
Patch
(7.98 KB, patch)
2017-10-02 19:15 PDT
,
Megan Gardner
wenson_hsieh
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Megan Gardner
Comment 1
2017-09-20 19:57:13 PDT
Created
attachment 321402
[details]
Patch
Simon Fraser (smfr)
Comment 2
2017-09-20 20:42:17 PDT
Comment on
attachment 321402
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=321402&action=review
> LayoutTests/fast/events/touch/ios/long-press-then-drag-to-select-text.html:36 > + output += 'FAIL: failed to select correct word as a result of a drag after long press. Incorrect selection: ' + document.getSelection().toString();
Odd spacing here. Tabs?
> LayoutTests/fast/events/touch/ios/resources/basic-gestures.js:64 > +function longPressAtPointNoLift(X, Y)
The "NoLift" is awkward. Maybe pressAndHoldAtPoint?
> LayoutTests/fast/events/touch/ios/resources/basic-gestures.js:70 > + {
Canonical style would be to outdent opening and closing braces.
> LayoutTests/fast/events/touch/ios/resources/basic-gestures.js:105 > + uiController.sendEventStream(JSON.stringify(eventStream), function() {}); > + uiController.uiScriptComplete();
These should be indented.
> LayoutTests/fast/events/touch/ios/resources/basic-gestures.js:151 > + uiController.sendEventStream(JSON.stringify(eventStream), function() {}); > + uiController.uiScriptComplete();
Ditto.
Tim Horton
Comment 3
2017-09-20 21:05:13 PDT
Comment on
attachment 321402
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=321402&action=review
> LayoutTests/fast/events/touch/ios/resources/basic-gestures.js:11 > +// should switch to this method in all tests, as it is more clear what is being done.
Comments should start with a capital and be a complete sentence :P (also, is this just a find-and-replace? Might be worth it to just do it? Or not, either way)
>> LayoutTests/fast/events/touch/ios/resources/basic-gestures.js:64 >> +function longPressAtPointNoLift(X, Y) > > The "NoLift" is awkward. Maybe pressAndHoldAtPoint?
Agreed.
Megan Gardner
Comment 4
2017-09-21 11:48:47 PDT
https://trac.webkit.org/r222337
Radar WebKit Bug Importer
Comment 5
2017-09-27 12:19:54 PDT
<
rdar://problem/34693068
>
Matt Lewis
Comment 6
2017-09-27 17:07:17 PDT
Reverted
r222337
for reason: This test is failing on iOS. Committed
r222587
: <
http://trac.webkit.org/changeset/222587
>
Megan Gardner
Comment 7
2017-10-02 19:15:23 PDT
Created
attachment 322485
[details]
Patch
Wenson Hsieh
Comment 8
2017-10-03 14:53:42 PDT
Comment on
attachment 322485
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=322485&action=review
> LayoutTests/fast/events/touch/ios/long-press-then-drag-to-select-text.html:24 > + var dragY = secondTargetRect.y+secondTargetRect.height / 2;
Spaces around binary operators! (i.e. the +s)
> LayoutTests/fast/events/touch/ios/resources/basic-gestures.js:11 > +function longPressAtPointNoLift(X, Y)
I liked pressAndHoldAtPoint better than longPressAtPointNoLift :P
> LayoutTests/fast/events/touch/ios/resources/basic-gestures.js:118 > + {
I think the formatting turned a bit Xcode-y here...can we make this consistent with the function above?
Megan Gardner
Comment 9
2018-05-04 14:22:47 PDT
Somehow this got left in a weird state.
https://trac.webkit.org/changeset/222813/webkit
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug