diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /testing/web-platform/meta/orientation-sensor | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/meta/orientation-sensor')
16 files changed, 338 insertions, 0 deletions
diff --git a/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor-disabled-by-feature-policy.https.html.ini b/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor-disabled-by-feature-policy.https.html.ini new file mode 100644 index 0000000000..2bf2a6905a --- /dev/null +++ b/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor-disabled-by-feature-policy.https.html.ini @@ -0,0 +1,10 @@ +[AbsoluteOrientationSensor-disabled-by-feature-policy.https.html] + [AbsoluteOrientationSensor: Feature-Policy header accelerometer 'none';gyroscope 'none';magnetometer 'none' disallows the top-level document.] + expected: FAIL + + [AbsoluteOrientationSensor: Feature-Policy header accelerometer 'none';gyroscope 'none';magnetometer 'none' disallows same-origin iframes.] + expected: FAIL + + [AbsoluteOrientationSensor: Feature-Policy header accelerometer 'none';gyroscope 'none';magnetometer 'none' disallows cross-origin iframes.] + expected: FAIL + diff --git a/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html.ini b/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html.ini new file mode 100644 index 0000000000..1a9b3fd667 --- /dev/null +++ b/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html.ini @@ -0,0 +1,7 @@ +[AbsoluteOrientationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html] + [AbsoluteOrientationSensor: Feature-Policy allow='accelerometer gyroscope magnetometer' attribute allows same-origin relocation] + expected: FAIL + + [AbsoluteOrientationSensor: Feature-Policy allow='accelerometer gyroscope magnetometer' attribute disallows cross-origin relocation] + expected: FAIL + diff --git a/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy-attribute.https.html.ini b/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy-attribute.https.html.ini new file mode 100644 index 0000000000..ae482220c8 --- /dev/null +++ b/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy-attribute.https.html.ini @@ -0,0 +1,7 @@ +[AbsoluteOrientationSensor-enabled-by-feature-policy-attribute.https.html] + [AbsoluteOrientationSensor: Feature-Policy allow='accelerometer gyroscope magnetometer' attribute allows same-origin iframe] + expected: FAIL + + [AbsoluteOrientationSensor: Feature-Policy allow='accelerometer gyroscope magnetometer' attribute allows cross-origin iframe] + expected: FAIL + diff --git a/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy.https.html.ini b/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy.https.html.ini new file mode 100644 index 0000000000..1ee530ca0a --- /dev/null +++ b/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor-enabled-by-feature-policy.https.html.ini @@ -0,0 +1,10 @@ +[AbsoluteOrientationSensor-enabled-by-feature-policy.https.html] + [AbsoluteOrientationSensor: Feature-Policy header accelerometer *;gyroscope *;magnetometer * allows the top-level document.] + expected: FAIL + + [AbsoluteOrientationSensor: Feature-Policy header accelerometer *;gyroscope *;magnetometer * allows same-origin iframes.] + expected: FAIL + + [AbsoluteOrientationSensor: Feature-Policy header accelerometer *;gyroscope *;magnetometer * allows cross-origin iframes.] + expected: FAIL + diff --git a/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor-enabled-on-self-origin-by-feature-policy.https.html.ini b/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor-enabled-on-self-origin-by-feature-policy.https.html.ini new file mode 100644 index 0000000000..275dd46a00 --- /dev/null +++ b/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor-enabled-on-self-origin-by-feature-policy.https.html.ini @@ -0,0 +1,10 @@ +[AbsoluteOrientationSensor-enabled-on-self-origin-by-feature-policy.https.html] + [AbsoluteOrientationSensor: Feature-Policy header accelerometer 'self';gyroscope 'self';magnetometer 'self' allows the top-level document.] + expected: FAIL + + [AbsoluteOrientationSensor: Feature-Policy header accelerometer 'self';gyroscope 'self';magnetometer 'self' allows same-origin iframes.] + expected: FAIL + + [AbsoluteOrientationSensor: Feature-Policy header accelerometer 'self';gyroscope 'self';magnetometer 'self' disallows cross-origin iframes.] + expected: FAIL + diff --git a/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor-iframe-access.https.html.ini b/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor-iframe-access.https.html.ini new file mode 100644 index 0000000000..f6ed2f447b --- /dev/null +++ b/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor-iframe-access.https.html.ini @@ -0,0 +1,13 @@ +[AbsoluteOrientationSensor-iframe-access.https.html] + expected: ERROR + [AbsoluteOrientationSensor: sensor is suspended and resumed when focus traverses from to cross-origin frame] + expected: FAIL + + [AbsoluteOrientationSensor: sensor is not suspended when focus traverses from to same-origin frame] + expected: NOTRUN + + [AbsoluteOrientationSensor: losing a document's frame with an active sensor does not crash] + expected: NOTRUN + + [AbsoluteOrientationSensor: calling start() in a non-fully active document does not crash] + expected: NOTRUN diff --git a/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor.https.html.ini b/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor.https.html.ini new file mode 100644 index 0000000000..f81f47679e --- /dev/null +++ b/testing/web-platform/meta/orientation-sensor/AbsoluteOrientationSensor.https.html.ini @@ -0,0 +1,70 @@ +[AbsoluteOrientationSensor.https.html] + expected: ERROR + [AbsoluteOrientationSensor.quaternion return a four-element FrozenArray.] + expected: NOTRUN + + [AbsoluteOrientationSensor.populateMatrix() method works correctly.] + expected: NOTRUN + + [AbsoluteOrientationSensor: Test that sensor can be successfully created and its states are correct.] + expected: NOTRUN + + [AbsoluteOrientationSensor: sensor reading is correct when options.referenceFrame is 'screen'.] + expected: NOTRUN + + [AbsoluteOrientationSensor: Test that 'onreading' is called and sensor reading is valid.] + expected: NOTRUN + + [AbsoluteOrientationSensor: Test that sensor can be constructed within an iframe allowed to use feature policy.] + expected: NOTRUN + + [AbsoluteOrientationSensor: throw 'TypeError' if frequency is invalid.] + expected: FAIL + + [AbsoluteOrientationSensor: Test that frequency is capped to allowed maximum.] + expected: NOTRUN + + [AbsoluteOrientationSensor: Test that frequency is capped to the maximum supported frequency.] + expected: NOTRUN + + [AbsoluteOrientationSensor: Test that frequency is limited to the minimum supported frequency.] + expected: NOTRUN + + [AbsoluteOrientationSensor: no exception is thrown when calling start() on already started sensor.] + expected: NOTRUN + + [AbsoluteOrientationSensor: Test that onerror is sent when permissions are not granted.] + expected: NOTRUN + + [AbsoluteOrientationSensor: frequency hint works.] + expected: NOTRUN + + [AbsoluteOrientationSensor: Test that onerror is sent when sensor is not supported.] + expected: FAIL + + [AbsoluteOrientationSensor: Test that sensor cannot be constructed within iframe disallowed to use feature policy.] + expected: NOTRUN + + [AbsoluteOrientationSensor: sensor reading is correct.] + expected: NOTRUN + + [AbsoluteOrientationSensor: Test that fresh reading is fetched on start().] + expected: NOTRUN + + [AbsoluteOrientationSensor: sensor timestamp is updated when time passes.] + expected: NOTRUN + + [AbsoluteOrientationSensor: Test that onerror is send when start() call has failed.] + expected: NOTRUN + + [AbsoluteOrientationSensor: no exception is thrown when calling stop() on already stopped sensor.] + expected: NOTRUN + + [AbsoluteOrientationSensor: Readings delivered by shared platform sensor are immediately accessible to all sensors.] + expected: NOTRUN + + [AbsoluteOrientationSensor: Test that readings are all mapped to expectedReadings correctly.] + expected: NOTRUN + + [AbsoluteOrientationSensor: Losing visibility must cause readings to be suspended.] + expected: NOTRUN diff --git a/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor-disabled-by-feature-policy.https.html.ini b/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor-disabled-by-feature-policy.https.html.ini new file mode 100644 index 0000000000..d4a660dcce --- /dev/null +++ b/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor-disabled-by-feature-policy.https.html.ini @@ -0,0 +1,10 @@ +[RelativeOrientationSensor-disabled-by-feature-policy.https.html] + [RelativeOrientationSensor: Feature-Policy header accelerometer 'none';gyroscope 'none' disallows the top-level document.] + expected: FAIL + + [RelativeOrientationSensor: Feature-Policy header accelerometer 'none';gyroscope 'none' disallows same-origin iframes.] + expected: FAIL + + [RelativeOrientationSensor: Feature-Policy header accelerometer 'none';gyroscope 'none' disallows cross-origin iframes.] + expected: FAIL + diff --git a/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html.ini b/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html.ini new file mode 100644 index 0000000000..74132e7b0a --- /dev/null +++ b/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html.ini @@ -0,0 +1,7 @@ +[RelativeOrientationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html] + [RelativeOrientationSensor: Feature-Policy allow='accelerometer gyroscope' attribute allows same-origin relocation] + expected: FAIL + + [RelativeOrientationSensor: Feature-Policy allow='accelerometer gyroscope' attribute disallows cross-origin relocation] + expected: FAIL + diff --git a/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy-attribute.https.html.ini b/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy-attribute.https.html.ini new file mode 100644 index 0000000000..65120e26db --- /dev/null +++ b/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy-attribute.https.html.ini @@ -0,0 +1,7 @@ +[RelativeOrientationSensor-enabled-by-feature-policy-attribute.https.html] + [RelativeOrientationSensor: Feature-Policy allow='accelerometer gyroscope' attribute allows same-origin iframe] + expected: FAIL + + [RelativeOrientationSensor: Feature-Policy allow='accelerometer gyroscope' attribute allows cross-origin iframe] + expected: FAIL + diff --git a/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy.https.html.ini b/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy.https.html.ini new file mode 100644 index 0000000000..ee7ab997a6 --- /dev/null +++ b/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor-enabled-by-feature-policy.https.html.ini @@ -0,0 +1,10 @@ +[RelativeOrientationSensor-enabled-by-feature-policy.https.html] + [RelativeOrientationSensor: Feature-Policy header accelerometer *;gyroscope * allows the top-level document.] + expected: FAIL + + [RelativeOrientationSensor: Feature-Policy header accelerometer *;gyroscope * allows same-origin iframes.] + expected: FAIL + + [RelativeOrientationSensor: Feature-Policy header accelerometer *;gyroscope * allows cross-origin iframes.] + expected: FAIL + diff --git a/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor-enabled-on-self-origin-by-feature-policy.https.html.ini b/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor-enabled-on-self-origin-by-feature-policy.https.html.ini new file mode 100644 index 0000000000..eefa4a16ec --- /dev/null +++ b/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor-enabled-on-self-origin-by-feature-policy.https.html.ini @@ -0,0 +1,10 @@ +[RelativeOrientationSensor-enabled-on-self-origin-by-feature-policy.https.html] + [RelativeOrientationSensor: Feature-Policy header accelerometer 'self';gyroscope 'self' allows the top-level document.] + expected: FAIL + + [RelativeOrientationSensor: Feature-Policy header accelerometer 'self';gyroscope 'self' allows same-origin iframes.] + expected: FAIL + + [RelativeOrientationSensor: Feature-Policy header accelerometer 'self';gyroscope 'self' disallows cross-origin iframes.] + expected: FAIL + diff --git a/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor-iframe-access.https.html.ini b/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor-iframe-access.https.html.ini new file mode 100644 index 0000000000..04025068d9 --- /dev/null +++ b/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor-iframe-access.https.html.ini @@ -0,0 +1,13 @@ +[RelativeOrientationSensor-iframe-access.https.html] + expected: ERROR + [RelativeOrientationSensor: sensor is suspended and resumed when focus traverses from to cross-origin frame] + expected: FAIL + + [RelativeOrientationSensor: sensor is not suspended when focus traverses from to same-origin frame] + expected: NOTRUN + + [RelativeOrientationSensor: losing a document's frame with an active sensor does not crash] + expected: NOTRUN + + [RelativeOrientationSensor: calling start() in a non-fully active document does not crash] + expected: NOTRUN diff --git a/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor.https.html.ini b/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor.https.html.ini new file mode 100644 index 0000000000..2227c0704f --- /dev/null +++ b/testing/web-platform/meta/orientation-sensor/RelativeOrientationSensor.https.html.ini @@ -0,0 +1,70 @@ +[RelativeOrientationSensor.https.html] + expected: ERROR + [RelativeOrientationSensor.quaternion return a four-element FrozenArray.] + expected: NOTRUN + + [RelativeOrientationSensor.populateMatrix() method works correctly.] + expected: NOTRUN + + [RelativeOrientationSensor: Test that sensor can be successfully created and its states are correct.] + expected: NOTRUN + + [RelativeOrientationSensor: frequency hint works.] + expected: NOTRUN + + [RelativeOrientationSensor: Test that frequency is capped to the maximum supported frequency.] + expected: NOTRUN + + [RelativeOrientationSensor: sensor timestamp is updated when time passes.] + expected: NOTRUN + + [RelativeOrientationSensor: no exception is thrown when calling stop() on already stopped sensor.] + expected: NOTRUN + + [RelativeOrientationSensor: sensor reading is correct when options.referenceFrame is 'screen'.] + expected: NOTRUN + + [RelativeOrientationSensor: Test that onerror is send when start() call has failed.] + expected: NOTRUN + + [RelativeOrientationSensor: sensor reading is correct.] + expected: NOTRUN + + [RelativeOrientationSensor: Test that onerror is sent when permissions are not granted.] + expected: NOTRUN + + [RelativeOrientationSensor: Test that frequency is limited to the minimum supported frequency.] + expected: NOTRUN + + [RelativeOrientationSensor: Test that onerror is sent when sensor is not supported.] + expected: FAIL + + [RelativeOrientationSensor: Test that 'onreading' is called and sensor reading is valid.] + expected: NOTRUN + + [RelativeOrientationSensor: Test that sensor can be constructed within an iframe allowed to use feature policy.] + expected: NOTRUN + + [RelativeOrientationSensor: Test that frequency is capped to allowed maximum.] + expected: NOTRUN + + [RelativeOrientationSensor: throw 'TypeError' if frequency is invalid.] + expected: FAIL + + [RelativeOrientationSensor: Test that fresh reading is fetched on start().] + expected: NOTRUN + + [RelativeOrientationSensor: no exception is thrown when calling start() on already started sensor.] + expected: NOTRUN + + [RelativeOrientationSensor: Test that sensor cannot be constructed within iframe disallowed to use feature policy.] + expected: NOTRUN + + [RelativeOrientationSensor: Readings delivered by shared platform sensor are immediately accessible to all sensors.] + expected: NOTRUN + + [RelativeOrientationSensor: Test that readings are all mapped to expectedReadings correctly.] + expected: NOTRUN + + [RelativeOrientationSensor: Losing visibility must cause readings to be suspended.] + expected: NOTRUN diff --git a/testing/web-platform/meta/orientation-sensor/__dir__.ini b/testing/web-platform/meta/orientation-sensor/__dir__.ini new file mode 100644 index 0000000000..6f1b5a6c7c --- /dev/null +++ b/testing/web-platform/meta/orientation-sensor/__dir__.ini @@ -0,0 +1,2 @@ +implementation-status: backlog +leak-threshold: [default: 51200] diff --git a/testing/web-platform/meta/orientation-sensor/idlharness.https.window.js.ini b/testing/web-platform/meta/orientation-sensor/idlharness.https.window.js.ini new file mode 100644 index 0000000000..aba85050f5 --- /dev/null +++ b/testing/web-platform/meta/orientation-sensor/idlharness.https.window.js.ini @@ -0,0 +1,82 @@ +[idlharness.https.window.html] + [AbsoluteOrientationSensor interface object name] + expected: FAIL + + [RelativeOrientationSensor interface: existence and properties of interface prototype object] + expected: FAIL + + [OrientationSensor interface: new AbsoluteOrientationSensor(); must inherit property "populateMatrix(RotationMatrixType)" with the proper type] + expected: FAIL + + [RelativeOrientationSensor interface: existence and properties of interface prototype object's "constructor" property] + expected: FAIL + + [RelativeOrientationSensor interface object name] + expected: FAIL + + [OrientationSensor interface: existence and properties of interface prototype object's "constructor" property] + expected: FAIL + + [Stringification of new AbsoluteOrientationSensor();] + expected: FAIL + + [Stringification of new RelativeOrientationSensor();] + expected: FAIL + + [AbsoluteOrientationSensor interface: existence and properties of interface object] + expected: FAIL + + [OrientationSensor interface: existence and properties of interface prototype object] + expected: FAIL + + [OrientationSensor interface: attribute quaternion] + expected: FAIL + + [AbsoluteOrientationSensor must be primary interface of new AbsoluteOrientationSensor();] + expected: FAIL + + [OrientationSensor interface: calling populateMatrix(RotationMatrixType) on new AbsoluteOrientationSensor(); with too few arguments must throw TypeError] + expected: FAIL + + [AbsoluteOrientationSensor interface: existence and properties of interface prototype object] + expected: FAIL + + [RelativeOrientationSensor interface: existence and properties of interface object] + expected: FAIL + + [RelativeOrientationSensor interface object length] + expected: FAIL + + [OrientationSensor interface: new AbsoluteOrientationSensor(); must inherit property "quaternion" with the proper type] + expected: FAIL + + [RelativeOrientationSensor interface: existence and properties of interface prototype object's @@unscopables property] + expected: FAIL + + [OrientationSensor interface object length] + expected: FAIL + + [OrientationSensor interface object name] + expected: FAIL + + [AbsoluteOrientationSensor interface: existence and properties of interface prototype object's "constructor" property] + expected: FAIL + + [AbsoluteOrientationSensor interface object length] + expected: FAIL + + [AbsoluteOrientationSensor interface: existence and properties of interface prototype object's @@unscopables property] + expected: FAIL + + [OrientationSensor interface: existence and properties of interface prototype object's @@unscopables property] + expected: FAIL + + [OrientationSensor interface: existence and properties of interface object] + expected: FAIL + + [RelativeOrientationSensor must be primary interface of new RelativeOrientationSensor();] + expected: FAIL + + [OrientationSensor interface: operation populateMatrix(RotationMatrixType)] + expected: FAIL + |