On 26/10/2020 14:11, Mirko Brodesser wrote:

Supporting synthesizing drag-and-drop events [1]

That seems like the kind of thing that ought to be covered by testdriver. Would something like
new test_driver.Actions()
  .pointerMove(0,0,{origin:elem1})
  .pointerDown()
  .pointerMove(0,0,{origin:elem2})
  .pointerUp()
  .send();

work?

Obviously if the concern is verbosity we could add helper functions for common patterns. Looking at the other functions there, I know wheel events are missing; that's a recent addition to the webdriver spec that we haven't implemented in marionette, but we can prioritise that work if it's needed for tests.

and convenience functions for checking the clipboard [2] would be helpful. In 
general, it's presumably worth checking what kind of convenience functions are 
offered [3] and used by mochitests.

Clipboard is a good idea.

Looking at SpecialPowers usage [1] reveals a lot that's just poking at other internal APIs, so it's hard to see what the underlying requirements are.

EventUtils usage [2] looks like it's mostly stuff that should be covered in testdriver, with the exception of IME stuff which might be interesting to investigate.

[1] https://paste.mozilla.org/stbR88is
[2] https://paste.mozilla.org/g4qMtnMx
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to