tree: f08d0e5dcf8ad27be8d65dc5bf6b1577abf45afc [path history] [tgz]
  1. resources/
  2. generic-sensor-feature-policy-test.sub.js
  3. generic-sensor-iframe-tests.sub.js
  4. generic-sensor-tests.js
  5. idlharness.https.window.js
  6. META.yml
  7. OWNERS
  8. README.md
  9. SensorErrorEvent-constructor.https.html
third_party/blink/web_tests/external/wpt/generic-sensor/README.md

The generic-sensor-tests.js tests require an implementation of the GenericSensorTest interface, which should emulate platform sensor backends. The GenericSensorTest interface is defined as:

  class GenericSensorTest {
    async initialize();  // Sets up the testing enviroment.
    async reset(); // Frees the resources.
  };

The Chromium implementation of the GenericSensorTest interface is located in generic_sensor_mocks.js.

Other browser vendors should provide their own implementations of the GenericSensorTest interface.

Known issue: a WebDriver extension is a better approach for the Generic Sensor tests automation.