Tast: Add helper function to resize/drag window |
|||
Issue descriptionAdd a helper function in Tast to resize / drag a window. It should have the option to simulate the resize/dragging with both: - Touch events (when a touch display is avaialble) - Mouse/Touchpad (when such input device is available)
,
Dec 18
Please update the input package (https://chromium.googlesource.com/chromiumos/platform/tast-tests/+/HEAD/src/chromiumos/tast/local/input/) to support injecting touch/mouse events instead of shelling out to evemu-play. And please also keep the UI-specific parts of this (e.g. drag/resize) within your test until there are more users. In Tast, we generally avoid expanding API surfaces until there are enough potential users to guide the design.
,
Dec 18
derat@ I'll do that. thanks!
,
Jan 9
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform/tast-tests/+/623acd4fcd0ebc5dc81ec8c765c2c2e12f10fde0 commit 623acd4fcd0ebc5dc81ec8c765c2c2e12f10fde0 Author: Ricardo Quesada <ricardoq@google.com> Date: Wed Jan 09 07:25:55 2019 tast: add Touch event support to event. Add Multi Touch support to event & device. Add example that shows how to the use the API. Split intput.go in three: raw.go, keyboard.go and touch.go Split intput_test.go in two: keyboard_test.go and touch_test.go Add touch.go example. Add unittest. This CL adds the needed functionality that will be used to create move/resize/drag tests for ARC++. Limitations/scope: This CL does not try to implement the full multi-touch specification. Only the one needed to perform certain tests. BUG= chromium:916174 TEST=tast run DUT example.Keyboard TEST=tast run DUT example.Touch TEST=fast_build.sh -T TEST=tested on Eve, Nocture, Caroline, Kevin and Scarlet. Works as expected. Change-Id: Ic7cca5d085e31f28d8909d9ceebff02bbbf02ff7 Reviewed-on: https://chromium-review.googlesource.com/1379305 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: Ricardo Quesada <ricardoq@chromium.org> Reviewed-by: Ricardo Quesada <ricardoq@chromium.org> [rename] https://crrev.com/623acd4fcd0ebc5dc81ec8c765c2c2e12f10fde0/src/chromiumos/tast/local/input/keyboard_test.go [delete] https://crrev.com/602328a6dae2c4f6a3bd4c561d6c2002990a60bd/src/chromiumos/tast/local/input/event.go [add] https://crrev.com/623acd4fcd0ebc5dc81ec8c765c2c2e12f10fde0/src/chromiumos/tast/local/bundles/cros/example/touch.go [add] https://crrev.com/623acd4fcd0ebc5dc81ec8c765c2c2e12f10fde0/src/chromiumos/tast/local/input/touch.go [add] https://crrev.com/623acd4fcd0ebc5dc81ec8c765c2c2e12f10fde0/src/chromiumos/tast/local/input/ioctl.go [add] https://crrev.com/623acd4fcd0ebc5dc81ec8c765c2c2e12f10fde0/src/chromiumos/tast/local/input/raw.go [modify] https://crrev.com/623acd4fcd0ebc5dc81ec8c765c2c2e12f10fde0/src/chromiumos/tast/local/input/device.go [add] https://crrev.com/623acd4fcd0ebc5dc81ec8c765c2c2e12f10fde0/src/chromiumos/tast/local/input/touch_test.go [add] https://crrev.com/623acd4fcd0ebc5dc81ec8c765c2c2e12f10fde0/src/chromiumos/tast/local/input/keyboard.go [modify] https://crrev.com/623acd4fcd0ebc5dc81ec8c765c2c2e12f10fde0/src/chromiumos/tast/local/input/device_test.go [rename] https://crrev.com/623acd4fcd0ebc5dc81ec8c765c2c2e12f10fde0/src/chromiumos/tast/local/bundles/cros/example/keyboard.go
,
Jan 9
|
|||
►
Sign in to add a comment |
|||
Comment 1 by ricardoq@chromium.org
, Dec 18