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/geolocation-sensor | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/meta/geolocation-sensor')
10 files changed, 212 insertions, 0 deletions
diff --git a/testing/web-platform/meta/geolocation-sensor/GeolocationSensor-disabled-by-feature-policy.https.html.ini b/testing/web-platform/meta/geolocation-sensor/GeolocationSensor-disabled-by-feature-policy.https.html.ini new file mode 100644 index 0000000000..275216d8a8 --- /dev/null +++ b/testing/web-platform/meta/geolocation-sensor/GeolocationSensor-disabled-by-feature-policy.https.html.ini @@ -0,0 +1,16 @@ +[GeolocationSensor-disabled-by-feature-policy.https.html] + [GeolocationSensor: Feature-Policy header geolocation 'none' disallows the top-level document.] + expected: FAIL + + [GeolocationSensor: Feature-Policy header geolocation 'none' disallows same-origin iframes.] + expected: FAIL + + [GeolocationSensor: Feature-Policy header geolocation 'none' disallows cross-origin iframes.] + expected: FAIL + + [GeolocationSensor.read(): 'SecurityError' is thrown when disabled by Feature Policy] + expected: FAIL + + [GeolocationSensor.read(): 'AbortError' takes priority] + expected: FAIL + diff --git a/testing/web-platform/meta/geolocation-sensor/GeolocationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html.ini b/testing/web-platform/meta/geolocation-sensor/GeolocationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html.ini new file mode 100644 index 0000000000..e2d9f09904 --- /dev/null +++ b/testing/web-platform/meta/geolocation-sensor/GeolocationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html.ini @@ -0,0 +1,7 @@ +[GeolocationSensor-enabled-by-feature-policy-attribute-redirect-on-load.https.html] + [GeolocationSensor: Feature-Policy allow='geolocation' attribute allows same-origin relocation] + expected: FAIL + + [GeolocationSensor: Feature-Policy allow='geolocation' attribute disallows cross-origin relocation] + expected: FAIL + diff --git a/testing/web-platform/meta/geolocation-sensor/GeolocationSensor-enabled-by-feature-policy-attribute.https.html.ini b/testing/web-platform/meta/geolocation-sensor/GeolocationSensor-enabled-by-feature-policy-attribute.https.html.ini new file mode 100644 index 0000000000..181ee6de91 --- /dev/null +++ b/testing/web-platform/meta/geolocation-sensor/GeolocationSensor-enabled-by-feature-policy-attribute.https.html.ini @@ -0,0 +1,7 @@ +[GeolocationSensor-enabled-by-feature-policy-attribute.https.html] + [GeolocationSensor: Feature-Policy allow='geolocation' attribute allows same-origin iframe] + expected: FAIL + + [GeolocationSensor: Feature-Policy allow='geolocation' attribute allows cross-origin iframe] + expected: FAIL + diff --git a/testing/web-platform/meta/geolocation-sensor/GeolocationSensor-enabled-by-feature-policy.https.html.ini b/testing/web-platform/meta/geolocation-sensor/GeolocationSensor-enabled-by-feature-policy.https.html.ini new file mode 100644 index 0000000000..5ab27b0de3 --- /dev/null +++ b/testing/web-platform/meta/geolocation-sensor/GeolocationSensor-enabled-by-feature-policy.https.html.ini @@ -0,0 +1,10 @@ +[GeolocationSensor-enabled-by-feature-policy.https.html] + [GeolocationSensor: Feature-Policy header geolocation * allows the top-level document.] + expected: FAIL + + [GeolocationSensor: Feature-Policy header geolocation * allows same-origin iframes.] + expected: FAIL + + [GeolocationSensor: Feature-Policy header geolocation * allows cross-origin iframes.] + expected: FAIL + diff --git a/testing/web-platform/meta/geolocation-sensor/GeolocationSensor-enabled-on-self-origin-by-feature-policy.https.html.ini b/testing/web-platform/meta/geolocation-sensor/GeolocationSensor-enabled-on-self-origin-by-feature-policy.https.html.ini new file mode 100644 index 0000000000..c5ba3268aa --- /dev/null +++ b/testing/web-platform/meta/geolocation-sensor/GeolocationSensor-enabled-on-self-origin-by-feature-policy.https.html.ini @@ -0,0 +1,10 @@ +[GeolocationSensor-enabled-on-self-origin-by-feature-policy.https.html] + [GeolocationSensor: Feature-Policy header geolocation 'self' allows the top-level document.] + expected: FAIL + + [GeolocationSensor: Feature-Policy header geolocation 'self' allows same-origin iframes.] + expected: FAIL + + [GeolocationSensor: Feature-Policy header geolocation 'self' disallows cross-origin iframes.] + expected: FAIL + diff --git a/testing/web-platform/meta/geolocation-sensor/GeolocationSensor-iframe-access.https.html.ini b/testing/web-platform/meta/geolocation-sensor/GeolocationSensor-iframe-access.https.html.ini new file mode 100644 index 0000000000..7bd73663ab --- /dev/null +++ b/testing/web-platform/meta/geolocation-sensor/GeolocationSensor-iframe-access.https.html.ini @@ -0,0 +1,13 @@ +[GeolocationSensor-iframe-access.https.html] + expected: ERROR + [GeolocationSensor: sensor is suspended and resumed when focus traverses from to cross-origin frame] + expected: FAIL + + [GeolocationSensor: sensor is not suspended when focus traverses from to same-origin frame] + expected: NOTRUN + + [GeolocationSensor: losing a document's frame with an active sensor does not crash] + expected: NOTRUN + + [GeolocationSensor: calling start() in a non-fully active document does not crash] + expected: NOTRUN diff --git a/testing/web-platform/meta/geolocation-sensor/GeolocationSensor.https.html.ini b/testing/web-platform/meta/geolocation-sensor/GeolocationSensor.https.html.ini new file mode 100644 index 0000000000..a59d7f872f --- /dev/null +++ b/testing/web-platform/meta/geolocation-sensor/GeolocationSensor.https.html.ini @@ -0,0 +1,61 @@ +[GeolocationSensor.https.html] + expected: ERROR + [GeolocationSensor: Test that sensor can be successfully created and its states are correct.] + expected: NOTRUN + + [GeolocationSensor: no exception is thrown when calling stop() on already stopped sensor.] + expected: NOTRUN + + [GeolocationSensor: no exception is thrown when calling start() on already started sensor.] + expected: NOTRUN + + [GeolocationSensor: sensor timestamp is updated when time passes.] + expected: NOTRUN + + [GeolocationSensor: Test that fresh reading is fetched on start().] + expected: NOTRUN + + [GeolocationSensor: Test that frequency is capped to the maximum supported frequency.] + expected: NOTRUN + + [GeolocationSensor: Test that onerror is sent when permissions are not granted.] + expected: NOTRUN + + [GeolocationSensor: frequency hint works.] + expected: NOTRUN + + [GeolocationSensor: sensor reading is correct.] + expected: NOTRUN + + [GeolocationSensor: Test that onerror is send when start() call has failed.] + expected: NOTRUN + + [GeolocationSensor: Test that frequency is capped to allowed maximum.] + expected: NOTRUN + + [GeolocationSensor: Test that frequency is limited to the minimum supported frequency.] + expected: NOTRUN + + [GeolocationSensor: Test that sensor cannot be constructed within iframe disallowed to use feature policy.] + expected: NOTRUN + + [GeolocationSensor: Test that sensor can be constructed within an iframe allowed to use feature policy.] + expected: NOTRUN + + [GeolocationSensor: Test that 'onreading' is called and sensor reading is valid.] + expected: NOTRUN + + [GeolocationSensor: throw 'TypeError' if frequency is invalid.] + expected: FAIL + + [GeolocationSensor: Test that onerror is sent when sensor is not supported.] + expected: FAIL + + [GeolocationSensor: Readings delivered by shared platform sensor are immediately accessible to all sensors.] + expected: NOTRUN + + [GeolocationSensor: Test that readings are all mapped to expectedReadings correctly.] + expected: NOTRUN + + [GeolocationSensor: Losing visibility must cause readings to be suspended.] + expected: NOTRUN diff --git a/testing/web-platform/meta/geolocation-sensor/GeolocationSensor_read.https.html.ini b/testing/web-platform/meta/geolocation-sensor/GeolocationSensor_read.https.html.ini new file mode 100644 index 0000000000..d08e10fea6 --- /dev/null +++ b/testing/web-platform/meta/geolocation-sensor/GeolocationSensor_read.https.html.ini @@ -0,0 +1,10 @@ +[GeolocationSensor_read.https.html] + [Test that read() method resolves with valid reading when signal is null] + expected: FAIL + + [Test that read() method resolves with valid reading] + expected: FAIL + + [Test that read() method rejects 'AbortError' if signal's aborted flag is set] + expected: FAIL + diff --git a/testing/web-platform/meta/geolocation-sensor/__dir__.ini b/testing/web-platform/meta/geolocation-sensor/__dir__.ini new file mode 100644 index 0000000000..7e95ffa665 --- /dev/null +++ b/testing/web-platform/meta/geolocation-sensor/__dir__.ini @@ -0,0 +1,2 @@ +implementation-status: backlog +prefs: [dom.security.featurePolicy.experimental.enabled:true, dom.reporting.enabled:true, dom.reporting.featurePolicy.enabled:true, dom.security.featurePolicy.header.enabled:true, dom.security.featurePolicy.webidl.enabled:true] diff --git a/testing/web-platform/meta/geolocation-sensor/idlharness.https.window.js.ini b/testing/web-platform/meta/geolocation-sensor/idlharness.https.window.js.ini new file mode 100644 index 0000000000..8aae90a9a2 --- /dev/null +++ b/testing/web-platform/meta/geolocation-sensor/idlharness.https.window.js.ini @@ -0,0 +1,76 @@ +[idlharness.https.window.html] + [GeolocationSensor interface: new GeolocationSensor must inherit property "speed" with the proper type] + expected: FAIL + + [Stringification of new GeolocationSensor] + expected: FAIL + + [GeolocationSensor interface: attribute altitudeAccuracy] + expected: FAIL + + [GeolocationSensor interface: existence and properties of interface prototype object's @@unscopables property] + expected: FAIL + + [GeolocationSensor interface: existence and properties of interface object] + expected: FAIL + + [GeolocationSensor interface object name] + expected: FAIL + + [GeolocationSensor interface: new GeolocationSensor must inherit property "heading" with the proper type] + expected: FAIL + + [GeolocationSensor interface: attribute latitude] + expected: FAIL + + [GeolocationSensor interface: attribute altitude] + expected: FAIL + + [GeolocationSensor interface: new GeolocationSensor must inherit property "altitudeAccuracy" with the proper type] + expected: FAIL + + [GeolocationSensor interface: new GeolocationSensor must inherit property "latitude" with the proper type] + expected: FAIL + + [GeolocationSensor interface: existence and properties of interface prototype object] + expected: FAIL + + [GeolocationSensor interface: attribute speed] + expected: FAIL + + [GeolocationSensor interface: new GeolocationSensor must inherit property "accuracy" with the proper type] + expected: FAIL + + [GeolocationSensor interface: new GeolocationSensor must inherit property "altitude" with the proper type] + expected: FAIL + + [GeolocationSensor interface: attribute accuracy] + expected: FAIL + + [GeolocationSensor interface object length] + expected: FAIL + + [GeolocationSensor interface: attribute heading] + expected: FAIL + + [GeolocationSensor must be primary interface of new GeolocationSensor] + expected: FAIL + + [GeolocationSensor interface: existence and properties of interface prototype object's "constructor" property] + expected: FAIL + + [GeolocationSensor interface: new GeolocationSensor must inherit property "longitude" with the proper type] + expected: FAIL + + [GeolocationSensor interface: attribute longitude] + expected: FAIL + + [GeolocationSensor interface: operation read(optional ReadOptions)] + expected: FAIL + + [GeolocationSensor interface: calling read(optional ReadOptions) on new GeolocationSensor with too few arguments must throw TypeError] + expected: FAIL + + [GeolocationSensor interface: new GeolocationSensor must inherit property "read(optional ReadOptions)" with the proper type] + expected: FAIL + |