Also sprach smaug: > On 12/15/2017 05:38 PM, James Graham wrote: >> In particular it would help to hear about things that you would >> consider blockers to removing tests from non-wpt suites that are >> duplicated in wpt (assuming exact duplication), and limitations >> either in the capabilities of wpt > > Not being able to send (DOM) events which mimic user input prevents > converting many event handling tests to wpt. Not sure if WebDriver > could easily do some of this, or should browsers have some testing > mode which exposes APIs for this kinds of cases.
This is what testdriver [1] is supposed to help with. It only exposes a single method for issuing trusted click events [2] at the moment, but can be extended in vendor-specific ways to do more things. One could imagine hooking the click command up to the WebDriver session that already controls the browser-under-test, or by exposing a test-only web API that calls down to nsIWindowUtils’ synthetic click primitive (such as Marionette). I would be interested to hear more about what primitives for user input emulation are required. [1] https://searchfox.org/mozilla-central/source/testing/web-platform/tests/docs/_writing-tests/testdriver.md [2] https://searchfox.org/mozilla-central/rev/c8e791091973825680bbba807fc1c4f5bda0f5a1/testing/web-platform/tests/resources/testdriver.js#49-86 _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

