diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/meta/ambient-light | |
parent | Initial commit. (diff) | |
download | firefox-upstream.tar.xz firefox-upstream.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/meta/ambient-light')
10 files changed, 152 insertions, 0 deletions
diff --git a/testing/web-platform/meta/ambient-light/AmbientLightSensor-disabled-by-feature-policy.https.html.ini b/testing/web-platform/meta/ambient-light/AmbientLightSensor-disabled-by-feature-policy.https.html.ini new file mode 100644 index 0000000000..687631a5cb --- /dev/null +++ b/testing/web-platform/meta/ambient-light/AmbientLightSensor-disabled-by-feature-policy.https.html.ini @@ -0,0 +1,10 @@ +[AmbientLightSensor-disabled-by-feature-policy.https.html] + [AmbientLightSensor: Feature-Policy header ambient-light-sensor 'none' disallows the top-level document.] + expected: FAIL + + [AmbientLightSensor: Feature-Policy header ambient-light-sensor 'none' disallows same-origin iframes.] + expected: FAIL + + [AmbientLightSensor: Feature-Policy header ambient-light-sensor 'none' disallows cross-origin iframes.] + expected: FAIL + diff --git a/testing/web-platform/meta/ambient-light/AmbientLightSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html.ini b/testing/web-platform/meta/ambient-light/AmbientLightSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html.ini new file mode 100644 index 0000000000..745006d757 --- /dev/null +++ b/testing/web-platform/meta/ambient-light/AmbientLightSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html.ini @@ -0,0 +1,7 @@ +[AmbientLightSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html] + [AmbientLightSensor: Feature-Policy allow='ambient-light-sensor' attribute allows same-origin relocation] + expected: FAIL + + [AmbientLightSensor: Feature-Policy allow='ambient-light-sensor' attribute disallows cross-origin relocation] + expected: FAIL + diff --git a/testing/web-platform/meta/ambient-light/AmbientLightSensor-enabled-by-feature-policy-attribute.https.html.ini b/testing/web-platform/meta/ambient-light/AmbientLightSensor-enabled-by-feature-policy-attribute.https.html.ini new file mode 100644 index 0000000000..9603f934db --- /dev/null +++ b/testing/web-platform/meta/ambient-light/AmbientLightSensor-enabled-by-feature-policy-attribute.https.html.ini @@ -0,0 +1,8 @@ +[AmbientLightSensor-enabled-by-feature-policy-attribute.https.html] + expected: + if os == "win": [OK, TIMEOUT] + [AmbientLightSensor: Feature-Policy allow='ambient-light-sensor' attribute allows same-origin iframe] + expected: FAIL + + [AmbientLightSensor: Feature-Policy allow='ambient-light-sensor' attribute allows cross-origin iframe] + expected: FAIL diff --git a/testing/web-platform/meta/ambient-light/AmbientLightSensor-enabled-by-feature-policy.https.html.ini b/testing/web-platform/meta/ambient-light/AmbientLightSensor-enabled-by-feature-policy.https.html.ini new file mode 100644 index 0000000000..ad7f31e093 --- /dev/null +++ b/testing/web-platform/meta/ambient-light/AmbientLightSensor-enabled-by-feature-policy.https.html.ini @@ -0,0 +1,10 @@ +[AmbientLightSensor-enabled-by-feature-policy.https.html] + [AmbientLightSensor: Feature-Policy header ambient-light-sensor * allows the top-level document.] + expected: FAIL + + [AmbientLightSensor: Feature-Policy header ambient-light-sensor * allows same-origin iframes.] + expected: FAIL + + [AmbientLightSensor: Feature-Policy header ambient-light-sensor * allows cross-origin iframes.] + expected: FAIL + diff --git a/testing/web-platform/meta/ambient-light/AmbientLightSensor-enabled-on-self-origin-by-feature-policy.https.html.ini b/testing/web-platform/meta/ambient-light/AmbientLightSensor-enabled-on-self-origin-by-feature-policy.https.html.ini new file mode 100644 index 0000000000..3e75d3606e --- /dev/null +++ b/testing/web-platform/meta/ambient-light/AmbientLightSensor-enabled-on-self-origin-by-feature-policy.https.html.ini @@ -0,0 +1,10 @@ +[AmbientLightSensor-enabled-on-self-origin-by-feature-policy.https.html] + [AmbientLightSensor: Feature-Policy header ambient-light-sensor 'self' allows the top-level document.] + expected: FAIL + + [AmbientLightSensor: Feature-Policy header ambient-light-sensor 'self' allows same-origin iframes.] + expected: FAIL + + [AmbientLightSensor: Feature-Policy header ambient-light-sensor 'self' disallows cross-origin iframes.] + expected: FAIL + diff --git a/testing/web-platform/meta/ambient-light/AmbientLightSensor-iframe-access.https.html.ini b/testing/web-platform/meta/ambient-light/AmbientLightSensor-iframe-access.https.html.ini new file mode 100644 index 0000000000..da024628cd --- /dev/null +++ b/testing/web-platform/meta/ambient-light/AmbientLightSensor-iframe-access.https.html.ini @@ -0,0 +1,13 @@ +[AmbientLightSensor-iframe-access.https.html] + expected: ERROR + [AmbientLightSensor: sensor is suspended and resumed when focus traverses from to cross-origin frame] + expected: FAIL + + [AmbientLightSensor: sensor is not suspended when focus traverses from to same-origin frame] + expected: NOTRUN + + [AmbientLightSensor: losing a document's frame with an active sensor does not crash] + expected: NOTRUN + + [AmbientLightSensor: calling start() in a non-fully active document does not crash] + expected: NOTRUN diff --git a/testing/web-platform/meta/ambient-light/AmbientLightSensor-supported-by-feature-policy.html.ini b/testing/web-platform/meta/ambient-light/AmbientLightSensor-supported-by-feature-policy.html.ini new file mode 100644 index 0000000000..87364e4d20 --- /dev/null +++ b/testing/web-platform/meta/ambient-light/AmbientLightSensor-supported-by-feature-policy.html.ini @@ -0,0 +1,4 @@ +[AmbientLightSensor-supported-by-feature-policy.html] + [document.featurePolicy.features should advertise ambient-light-sensor.] + expected: FAIL + diff --git a/testing/web-platform/meta/ambient-light/AmbientLightSensor.https.html.ini b/testing/web-platform/meta/ambient-light/AmbientLightSensor.https.html.ini new file mode 100644 index 0000000000..ab401a1e48 --- /dev/null +++ b/testing/web-platform/meta/ambient-light/AmbientLightSensor.https.html.ini @@ -0,0 +1,58 @@ +[AmbientLightSensor.https.html] + expected: ERROR + [AmbientLightSensor: Test that sensor can be successfully created and its states are correct.] + expected: NOTRUN + + [AmbientLightSensor: Test that frequency is capped to the maximum supported frequency.] + expected: NOTRUN + + [AmbientLightSensor: Test that onerror is send when start() call has failed.] + expected: NOTRUN + + [AmbientLightSensor: Test that frequency is capped to allowed maximum.] + expected: NOTRUN + + [AmbientLightSensor: Test that frequency is limited to the minimum supported frequency.] + expected: NOTRUN + + [AmbientLightSensor: sensor reading is correct.] + expected: NOTRUN + + [AmbientLightSensor: throw 'TypeError' if frequency is invalid.] + expected: FAIL + + [AmbientLightSensor: Test that sensor cannot be constructed within iframe disallowed to use feature policy.] + expected: NOTRUN + + [AmbientLightSensor: frequency hint works.] + expected: NOTRUN + + [AmbientLightSensor: Test that onerror is sent when permissions are not granted.] + expected: NOTRUN + + [AmbientLightSensor: no exception is thrown when calling stop() on already stopped sensor.] + expected: NOTRUN + + [AmbientLightSensor: Test that 'onreading' is called and sensor reading is valid.] + expected: NOTRUN + + [AmbientLightSensor: sensor timestamp is updated when time passes.] + expected: NOTRUN + + [AmbientLightSensor: Test that fresh reading is fetched on start().] + expected: NOTRUN + + [AmbientLightSensor: Test that sensor can be constructed within an iframe allowed to use feature policy.] + expected: NOTRUN + + [AmbientLightSensor: no exception is thrown when calling start() on already started sensor.] + expected: NOTRUN + + [AmbientLightSensor: Test that onerror is sent when sensor is not supported.] + expected: FAIL + + [AmbientLightSensor: Readings delivered by shared platform sensor are immediately accessible to all sensors.] + expected: NOTRUN + + [AmbientLightSensor: Test that readings are all mapped to expectedReadings correctly.] + expected: NOTRUN diff --git a/testing/web-platform/meta/ambient-light/__dir__.ini b/testing/web-platform/meta/ambient-light/__dir__.ini new file mode 100644 index 0000000000..2ef043b928 --- /dev/null +++ b/testing/web-platform/meta/ambient-light/__dir__.ini @@ -0,0 +1 @@ +implementation-status: backlog diff --git a/testing/web-platform/meta/ambient-light/idlharness.https.window.js.ini b/testing/web-platform/meta/ambient-light/idlharness.https.window.js.ini new file mode 100644 index 0000000000..f20352e9d1 --- /dev/null +++ b/testing/web-platform/meta/ambient-light/idlharness.https.window.js.ini @@ -0,0 +1,31 @@ +[idlharness.https.window.html] + [AmbientLightSensor interface: existence and properties of interface prototype object's @@unscopables property] + expected: FAIL + + [AmbientLightSensor interface object length] + expected: FAIL + + [AmbientLightSensor interface: existence and properties of interface object] + expected: FAIL + + [AmbientLightSensor interface: existence and properties of interface prototype object's "constructor" property] + expected: FAIL + + [AmbientLightSensor interface object name] + expected: FAIL + + [AmbientLightSensor must be primary interface of new AmbientLightSensor()] + expected: FAIL + + [AmbientLightSensor interface: new AmbientLightSensor() must inherit property "illuminance" with the proper type] + expected: FAIL + + [Stringification of new AmbientLightSensor()] + expected: FAIL + + [AmbientLightSensor interface: attribute illuminance] + expected: FAIL + + [AmbientLightSensor interface: existence and properties of interface prototype object] + expected: FAIL + |