[csswg-drafts] [testing] Consider developing "test-only" APIs to aid in testing things that would otherwise require manual tests

tabatkins has just created a new issue for https://github.com/w3c/csswg-drafts:

== [testing] Consider developing "test-only" APIs to aid in testing things that would otherwise require manual tests ==
One of the pain points of testing some of our specs are things that require manual testing. This includes almost anything related to user-interaction, such as :hover, or Scroll Snap, etc.

Some specs with similar problems define special test-only APIs, which provide control over things that would normally come from the outside world, and which are only intended to be exposed to special test environments.  One example of this is the [Web Bluetooth Test API](https://wicg.github.io/webusb/test/), which exposes a "fake" USB device with well-known behavior, which can then be used to exercise the normal API in ways that are predictable and don't require a test machine to actually have anything plugged into it.

We should be able to offer similar things for various hard-to-test CSS things.

/cc @jgraham

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2578 using your GitHub account

Received on Monday, 16 April 2018 19:24:22 UTC