summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/battery-status
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/meta/battery-status
parentInitial commit. (diff)
downloadfirefox-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/battery-status')
-rw-r--r--testing/web-platform/meta/battery-status/__dir__.ini3
-rw-r--r--testing/web-platform/meta/battery-status/battery-allowed-by-permissions-policy-attribute-redirect-on-load.https.sub.html.ini3
-rw-r--r--testing/web-platform/meta/battery-status/battery-allowed-by-permissions-policy-attribute.https.sub.html.ini6
-rw-r--r--testing/web-platform/meta/battery-status/battery-allowed-by-permissions-policy.https.sub.html.ini9
-rw-r--r--testing/web-platform/meta/battery-status/battery-allowed-in-same-origin-iframe.https.html.ini4
-rw-r--r--testing/web-platform/meta/battery-status/battery-default-permissions-policy.https.sub.html.ini6
-rw-r--r--testing/web-platform/meta/battery-status/battery-disabled-by-permissions-policy.https.sub.html.ini3
-rw-r--r--testing/web-platform/meta/battery-status/battery-disallowed-in-cross-origin-iframe.https.sub.html.ini4
-rw-r--r--testing/web-platform/meta/battery-status/battery-promise-window.https.html.ini5
-rw-r--r--testing/web-platform/meta/battery-status/battery-promise.https.html.ini7
-rw-r--r--testing/web-platform/meta/battery-status/idlharness.https.window.js.ini82
11 files changed, 132 insertions, 0 deletions
diff --git a/testing/web-platform/meta/battery-status/__dir__.ini b/testing/web-platform/meta/battery-status/__dir__.ini
new file mode 100644
index 0000000000..36238e7bda
--- /dev/null
+++ b/testing/web-platform/meta/battery-status/__dir__.ini
@@ -0,0 +1,3 @@
+implementation-status: backlog
+bug: 1634369
+prefs: [dom.battery.enabled:true]
diff --git a/testing/web-platform/meta/battery-status/battery-allowed-by-permissions-policy-attribute-redirect-on-load.https.sub.html.ini b/testing/web-platform/meta/battery-status/battery-allowed-by-permissions-policy-attribute-redirect-on-load.https.sub.html.ini
new file mode 100644
index 0000000000..8cf6ccf142
--- /dev/null
+++ b/testing/web-platform/meta/battery-status/battery-allowed-by-permissions-policy-attribute-redirect-on-load.https.sub.html.ini
@@ -0,0 +1,3 @@
+[battery-allowed-by-permissions-policy-attribute-redirect-on-load.https.sub.html]
+ [permissions policy allow="battery" allows same-origin relocation.]
+ expected: FAIL
diff --git a/testing/web-platform/meta/battery-status/battery-allowed-by-permissions-policy-attribute.https.sub.html.ini b/testing/web-platform/meta/battery-status/battery-allowed-by-permissions-policy-attribute.https.sub.html.ini
new file mode 100644
index 0000000000..3132c2b010
--- /dev/null
+++ b/testing/web-platform/meta/battery-status/battery-allowed-by-permissions-policy-attribute.https.sub.html.ini
@@ -0,0 +1,6 @@
+[battery-allowed-by-permissions-policy-attribute.https.sub.html]
+ [permissions policy "battery" can be enabled in same-origin iframe using allow="battery" attribute]
+ expected: FAIL
+
+ [permissions policy "battery" can be enabled in cross-origin iframe using allow="battery" attribute]
+ expected: FAIL
diff --git a/testing/web-platform/meta/battery-status/battery-allowed-by-permissions-policy.https.sub.html.ini b/testing/web-platform/meta/battery-status/battery-allowed-by-permissions-policy.https.sub.html.ini
new file mode 100644
index 0000000000..ee9b341bdb
--- /dev/null
+++ b/testing/web-platform/meta/battery-status/battery-allowed-by-permissions-policy.https.sub.html.ini
@@ -0,0 +1,9 @@
+[battery-allowed-by-permissions-policy.https.sub.html]
+ [Permissions-Policy header "battery=*" allows the top-level document.]
+ expected: FAIL
+
+ [Permissions-Policy header "battery=*" allows same-origin iframes.]
+ expected: FAIL
+
+ [Permissions-Policy header "battery=*" allows cross-origin iframes.]
+ expected: FAIL
diff --git a/testing/web-platform/meta/battery-status/battery-allowed-in-same-origin-iframe.https.html.ini b/testing/web-platform/meta/battery-status/battery-allowed-in-same-origin-iframe.https.html.ini
new file mode 100644
index 0000000000..0fe5316395
--- /dev/null
+++ b/testing/web-platform/meta/battery-status/battery-allowed-in-same-origin-iframe.https.html.ini
@@ -0,0 +1,4 @@
+[battery-allowed-in-same-origin-iframe.https.html]
+ [navigator.getBattery() is allowed in same origin iframe]
+ expected: FAIL
+
diff --git a/testing/web-platform/meta/battery-status/battery-default-permissions-policy.https.sub.html.ini b/testing/web-platform/meta/battery-status/battery-default-permissions-policy.https.sub.html.ini
new file mode 100644
index 0000000000..35b474bcac
--- /dev/null
+++ b/testing/web-platform/meta/battery-status/battery-default-permissions-policy.https.sub.html.ini
@@ -0,0 +1,6 @@
+[battery-default-permissions-policy.https.sub.html]
+ [Default "battery" permissions policy allows the top-level document.]
+ expected: FAIL
+
+ [Default "battery" permissions policy allows same-origin iframes.]
+ expected: FAIL
diff --git a/testing/web-platform/meta/battery-status/battery-disabled-by-permissions-policy.https.sub.html.ini b/testing/web-platform/meta/battery-status/battery-disabled-by-permissions-policy.https.sub.html.ini
new file mode 100644
index 0000000000..89825c17d5
--- /dev/null
+++ b/testing/web-platform/meta/battery-status/battery-disabled-by-permissions-policy.https.sub.html.ini
@@ -0,0 +1,3 @@
+[battery-disabled-by-permissions-policy.https.sub.html]
+ [Permissions-Policy header "battery=()" disallows the top-level document.]
+ expected: FAIL
diff --git a/testing/web-platform/meta/battery-status/battery-disallowed-in-cross-origin-iframe.https.sub.html.ini b/testing/web-platform/meta/battery-status/battery-disallowed-in-cross-origin-iframe.https.sub.html.ini
new file mode 100644
index 0000000000..61b1a46666
--- /dev/null
+++ b/testing/web-platform/meta/battery-status/battery-disallowed-in-cross-origin-iframe.https.sub.html.ini
@@ -0,0 +1,4 @@
+[battery-disallowed-in-cross-origin-iframe.https.sub.html]
+ [throw a 'NotAllowedError' when invoking navigator.getBattery() within cross-origin iframe]
+ expected: FAIL
+
diff --git a/testing/web-platform/meta/battery-status/battery-promise-window.https.html.ini b/testing/web-platform/meta/battery-status/battery-promise-window.https.html.ini
new file mode 100644
index 0000000000..93f335005e
--- /dev/null
+++ b/testing/web-platform/meta/battery-status/battery-promise-window.https.html.ini
@@ -0,0 +1,5 @@
+[battery-promise-window.https.html]
+ expected: TIMEOUT
+ [window.open() makes a different Navigator object thus getting another battery promise]
+ expected: TIMEOUT
+
diff --git a/testing/web-platform/meta/battery-status/battery-promise.https.html.ini b/testing/web-platform/meta/battery-status/battery-promise.https.html.ini
new file mode 100644
index 0000000000..11c975773d
--- /dev/null
+++ b/testing/web-platform/meta/battery-status/battery-promise.https.html.ini
@@ -0,0 +1,7 @@
+[battery-promise.https.html]
+ [navigator.getBattery() shall return BatteryManager as a promise]
+ expected: FAIL
+
+ [navigator.getBattery() shall always return the same promise]
+ expected: FAIL
+
diff --git a/testing/web-platform/meta/battery-status/idlharness.https.window.js.ini b/testing/web-platform/meta/battery-status/idlharness.https.window.js.ini
new file mode 100644
index 0000000000..5ff6e769cb
--- /dev/null
+++ b/testing/web-platform/meta/battery-status/idlharness.https.window.js.ini
@@ -0,0 +1,82 @@
+[idlharness.https.window.html]
+ [Navigator interface: operation getBattery()]
+ expected: FAIL
+
+ [BatteryManager interface: manager must inherit property "chargingTime" with the proper type]
+ expected: FAIL
+
+ [BatteryManager interface: manager must inherit property "level" with the proper type]
+ expected: FAIL
+
+ [BatteryManager interface: manager must inherit property "onlevelchange" with the proper type]
+ expected: FAIL
+
+ [BatteryManager must be primary interface of manager]
+ expected: FAIL
+
+ [Stringification of manager]
+ expected: FAIL
+
+ [BatteryManager interface: manager must inherit property "dischargingTime" with the proper type]
+ expected: FAIL
+
+ [BatteryManager interface: existence and properties of interface object]
+ expected: FAIL
+
+ [BatteryManager interface: attribute onlevelchange]
+ expected: FAIL
+
+ [Navigator interface: navigator must inherit property "getBattery()" with the proper type]
+ expected: FAIL
+
+ [BatteryManager interface: attribute level]
+ expected: FAIL
+
+ [BatteryManager interface: existence and properties of interface prototype object]
+ expected: FAIL
+
+ [BatteryManager interface: existence and properties of interface prototype object's @@unscopables property]
+ expected: FAIL
+
+ [BatteryManager interface: manager must inherit property "ondischargingtimechange" with the proper type]
+ expected: FAIL
+
+ [BatteryManager interface: manager must inherit property "onchargingchange" with the proper type]
+ expected: FAIL
+
+ [idl_test setup]
+ expected: FAIL
+
+ [BatteryManager interface: manager must inherit property "onchargingtimechange" with the proper type]
+ expected: FAIL
+
+ [BatteryManager interface: manager must inherit property "charging" with the proper type]
+ expected: FAIL
+
+ [BatteryManager interface: attribute charging]
+ expected: FAIL
+
+ [BatteryManager interface: attribute onchargingchange]
+ expected: FAIL
+
+ [BatteryManager interface: attribute chargingTime]
+ expected: FAIL
+
+ [BatteryManager interface: existence and properties of interface prototype object's "constructor" property]
+ expected: FAIL
+
+ [BatteryManager interface: attribute ondischargingtimechange]
+ expected: FAIL
+
+ [BatteryManager interface: attribute dischargingTime]
+ expected: FAIL
+
+ [BatteryManager interface object name]
+ expected: FAIL
+
+ [BatteryManager interface object length]
+ expected: FAIL
+
+ [BatteryManager interface: attribute onchargingtimechange]
+ expected: FAIL
+