summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/generic-sensor
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
commitfbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch)
tree4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /testing/web-platform/tests/generic-sensor
parentReleasing progress-linux version 124.0.1-1~progress7.99u1. (diff)
downloadfirefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz
firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/generic-sensor')
-rw-r--r--testing/web-platform/tests/generic-sensor/README.md40
1 files changed, 0 insertions, 40 deletions
diff --git a/testing/web-platform/tests/generic-sensor/README.md b/testing/web-platform/tests/generic-sensor/README.md
deleted file mode 100644
index 250300b51e..0000000000
--- a/testing/web-platform/tests/generic-sensor/README.md
+++ /dev/null
@@ -1,40 +0,0 @@
-The `resources/generic-sensor-helpers.js` tests require an implementation of
-the `GenericSensorTest` interface, which should emulate platform
-sensor backends. The `GenericSensorTest` interface is defined as:
-
-```
- class MockSensor {
- // Sets fake data that is used to deliver sensor reading updates.
- async setSensorReading(FrozenArray<double> readingData);
- setStartShouldFail(boolean shouldFail); // Sets flag that forces sensor to fail.
- getSamplingFrequency(); // Return the sampling frequency.
- };
-
- class MockSensorProvider {
- // Sets flag that forces mock SensorProvider to fail when getSensor() is
- // invoked.
- setGetSensorShouldFail(DOMString sensorType, boolean shouldFail);
- // Sets flag that forces mock SensorProvider to permissions denied when
- // getSensor() is invoked.
- setPermissionsDenied(DOMString sensorType, boolean permissionsDenied);
- getCreatedSensor(DOMString sensorType); // Return `MockSensor` interface.
- setMaximumSupportedFrequency(double frequency); // Sets the maximum frequency.
- setMinimumSupportedFrequency(double frequency); // Sets the minimum frequency.
- }
-
- class GenericSensorTest {
- initialize(); // Sets up the testing environment.
- async reset(); // Frees the resources.
- getSensorProvider(); // Returns `MockSensorProvider` interface.
- };
-```
-
-The Chromium implementation of the `GenericSensorTest` interface is located in
-[generic_sensor_mocks.js](../resources/chromium/generic_sensor_mocks.js).
-
-Other browser vendors should provide their own implementations of
-the `GenericSensorTest` interface.
-
-[Known issue](https://github.com/web-platform-tests/wpt/issues/9686): a
-WebDriver extension is a better approach for the Generic Sensor tests
-automation.