Additional selection tests and interpolation fix
authormegan_gardner@apple.com <megan_gardner@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jan 2017 23:30:33 +0000 (23:30 +0000)
committermegan_gardner@apple.com <megan_gardner@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jan 2017 23:30:33 +0000 (23:30 +0000)
commite9d8802037cb16950f852f888e9bef8ede3bcaeb
tree2e54a1ae2f1a1f15a849ec51a39c75c6c2722b66
parent3fdc85e194fa25f8aeb8760d40b65c944dac8cf1
Additional selection tests and interpolation fix
https://bugs.webkit.org/show_bug.cgi?id=167171

Reviewed by Simon Fraser.

Tools:

We weren't adding the final event when interpolating event streams.

* WebKitTestRunner/ios/HIDEventGenerator.mm:
(-[HIDEventGenerator interpolatedEvents:]):

LayoutTests:

Selections tests for dragging left and right.
Factored out common functions used across tests.

* fast/events/touch/ios/long-press-then-drag-left-to-change-selected-text-expected.txt: Added.
* fast/events/touch/ios/long-press-then-drag-left-to-change-selected-text.html: Added.
* fast/events/touch/ios/long-press-then-drag-right-to-change-selected-text-expected.txt: Added.
* fast/events/touch/ios/long-press-then-drag-right-to-change-selected-text.html: Added.
* fast/events/touch/ios/resources: Added.
* fast/events/touch/ios/resources/basic-gestures.js: Added.
(pressAtPoint):
(dragFromPointToPoint):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@210941 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/touch/ios/long-press-then-drag-left-to-change-selected-text-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/touch/ios/long-press-then-drag-left-to-change-selected-text.html [new file with mode: 0644]
LayoutTests/fast/events/touch/ios/long-press-then-drag-right-to-change-selected-text-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/touch/ios/long-press-then-drag-right-to-change-selected-text.html [new file with mode: 0644]
LayoutTests/fast/events/touch/ios/resources/basic-gestures.js [new file with mode: 0644]
Tools/ChangeLog
Tools/WebKitTestRunner/ios/HIDEventGenerator.mm