summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/idle-detection
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/meta/idle-detection
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/meta/idle-detection')
-rw-r--r--testing/web-platform/meta/idle-detection/__dir__.ini1
-rw-r--r--testing/web-platform/meta/idle-detection/basics.tentative.https.window.js.ini38
-rw-r--r--testing/web-platform/meta/idle-detection/idle-detection-allowed-by-permissions-policy-attribute-redirect-on-load.https.sub.html.ini13
-rw-r--r--testing/web-platform/meta/idle-detection/idle-detection-allowed-by-permissions-policy-attribute.https.sub.html.ini13
-rw-r--r--testing/web-platform/meta/idle-detection/idle-detection-allowed-by-permissions-policy.https.sub.html.ini19
-rw-r--r--testing/web-platform/meta/idle-detection/idle-detection-default-permissions-policy.https.sub.html.ini10
-rw-r--r--testing/web-platform/meta/idle-detection/idle-detection-detached-frame.https.html.ini3
-rw-r--r--testing/web-platform/meta/idle-detection/idle-detection-disabled-by-permissions-policy.https.sub.html.ini19
-rw-r--r--testing/web-platform/meta/idle-detection/idle-permission.tentative.https.window.js.ini10
-rw-r--r--testing/web-platform/meta/idle-detection/idlharness-worker.https.window.js.ini4
-rw-r--r--testing/web-platform/meta/idle-detection/idlharness.https.window.js.ini37
-rw-r--r--testing/web-platform/meta/idle-detection/interceptor.https.html.ini31
-rw-r--r--testing/web-platform/meta/idle-detection/page-visibility.https.html.ini4
13 files changed, 202 insertions, 0 deletions
diff --git a/testing/web-platform/meta/idle-detection/__dir__.ini b/testing/web-platform/meta/idle-detection/__dir__.ini
new file mode 100644
index 0000000000..2ef043b928
--- /dev/null
+++ b/testing/web-platform/meta/idle-detection/__dir__.ini
@@ -0,0 +1 @@
+implementation-status: backlog
diff --git a/testing/web-platform/meta/idle-detection/basics.tentative.https.window.js.ini b/testing/web-platform/meta/idle-detection/basics.tentative.https.window.js.ini
new file mode 100644
index 0000000000..88f35894cf
--- /dev/null
+++ b/testing/web-platform/meta/idle-detection/basics.tentative.https.window.js.ini
@@ -0,0 +1,38 @@
+[basics.tentative.https.window.html]
+ expected: ERROR
+ [start() rejects with invalid threshold (NaN)]
+ expected: NOTRUN
+
+ [start() rejects with invalid threshold (-1)]
+ expected: NOTRUN
+
+ [start() allows threshold (61000)]
+ expected: NOTRUN
+
+ [start() uses a default value for the threshold]
+ expected: NOTRUN
+
+ [start() rejects with threshold below minimum (59000)]
+ expected: NOTRUN
+
+ [start() uses a default value for the threshold when none is passed]
+ expected: NOTRUN
+
+ [start() rejects with invalid threshold (null)]
+ expected: NOTRUN
+
+ [start() uses threshold property]
+ expected: NOTRUN
+
+ [start() rejects with invalid threshold (0)]
+ expected: NOTRUN
+
+ [start() basics]
+ expected: NOTRUN
+
+ [start() rejects threshold (60000)]
+ expected: NOTRUN
+
+ [start() uses signal property]
+ expected: NOTRUN
+
diff --git a/testing/web-platform/meta/idle-detection/idle-detection-allowed-by-permissions-policy-attribute-redirect-on-load.https.sub.html.ini b/testing/web-platform/meta/idle-detection/idle-detection-allowed-by-permissions-policy-attribute-redirect-on-load.https.sub.html.ini
new file mode 100644
index 0000000000..e00e2705e8
--- /dev/null
+++ b/testing/web-platform/meta/idle-detection/idle-detection-allowed-by-permissions-policy-attribute-redirect-on-load.https.sub.html.ini
@@ -0,0 +1,13 @@
+[idle-detection-allowed-by-permissions-policy-attribute-redirect-on-load.https.sub.html]
+ expected: ERROR
+ [Attribute allow="idle-detection" in top-level frame allows same-origin relocation.]
+ expected: NOTRUN
+
+ [Attribute allow="idle-detection" in top-level frame allows workers in same-origin relocation.]
+ expected: NOTRUN
+
+ [Attribute allow="idle-detection" in top-level frame disallows cross-origin relocation.]
+ expected: NOTRUN
+
+ [Attribute allow="idle-detection" in top-level frame disallows workers in cross-origin relocation.]
+ expected: NOTRUN
diff --git a/testing/web-platform/meta/idle-detection/idle-detection-allowed-by-permissions-policy-attribute.https.sub.html.ini b/testing/web-platform/meta/idle-detection/idle-detection-allowed-by-permissions-policy-attribute.https.sub.html.ini
new file mode 100644
index 0000000000..d0037302a2
--- /dev/null
+++ b/testing/web-platform/meta/idle-detection/idle-detection-allowed-by-permissions-policy-attribute.https.sub.html.ini
@@ -0,0 +1,13 @@
+[idle-detection-allowed-by-permissions-policy-attribute.https.sub.html]
+ expected: ERROR
+ [Attribute allow="idle-detection" in top-level frame can be enabled in same-origin iframe using Permissions Policy "idle-detection".]
+ expected: NOTRUN
+
+ [Attribute allow="idle-detection" in top-level frame can be enabled in a worker in same-origin iframe using Permissions Policy "idle-detection".]
+ expected: NOTRUN
+
+ [Attribute allow="idle-detection" in top-level frame can be enabled in cross-origin iframe using Permissions Policy "idle-detection".]
+ expected: NOTRUN
+
+ [Attribute allow="idle-detection" in top-level frame can be enabled in a worker in cross-origin iframe using Permissions Policy "idle-detection".]
+ expected: NOTRUN
diff --git a/testing/web-platform/meta/idle-detection/idle-detection-allowed-by-permissions-policy.https.sub.html.ini b/testing/web-platform/meta/idle-detection/idle-detection-allowed-by-permissions-policy.https.sub.html.ini
new file mode 100644
index 0000000000..400e6e2b59
--- /dev/null
+++ b/testing/web-platform/meta/idle-detection/idle-detection-allowed-by-permissions-policy.https.sub.html.ini
@@ -0,0 +1,19 @@
+[idle-detection-allowed-by-permissions-policy.https.sub.html]
+ expected: ERROR
+ [Permissions-Policy idle-detection=* explicity set by top-level frame allows the top-level document.]
+ expected: NOTRUN
+
+ [Permissions-Policy idle-detection=* explicity set by top-level frame allows same-origin iframes.]
+ expected: NOTRUN
+
+ [Permissions-Policy idle-detection=* explicity set by top-level frame allows workers in same-origin iframes.]
+ expected: NOTRUN
+
+ [Permissions-Policy idle-detection=* explicity set by top-level frame allows cross-origin iframes.]
+ expected: NOTRUN
+
+ [Permissions-Policy idle-detection=* explicity set by top-level frame allows workers in cross-origin iframes.]
+ expected: NOTRUN
+
+ [Inherited header permissions policy allows dedicated workers.]
+ expected: [FAIL, TIMEOUT, NOTRUN]
diff --git a/testing/web-platform/meta/idle-detection/idle-detection-default-permissions-policy.https.sub.html.ini b/testing/web-platform/meta/idle-detection/idle-detection-default-permissions-policy.https.sub.html.ini
new file mode 100644
index 0000000000..cb296f98a8
--- /dev/null
+++ b/testing/web-platform/meta/idle-detection/idle-detection-default-permissions-policy.https.sub.html.ini
@@ -0,0 +1,10 @@
+[idle-detection-default-permissions-policy.https.sub.html]
+ expected: ERROR
+ [Default "idle-detection" permissions policy "self" allows the top-level document.]
+ expected: NOTRUN
+
+ [Default "idle-detection" permissions policy "self" allows same-origin iframes.]
+ expected: NOTRUN
+
+ [Default "idle-detection" permissions policy "self" disallows cross-origin iframes.]
+ expected: NOTRUN
diff --git a/testing/web-platform/meta/idle-detection/idle-detection-detached-frame.https.html.ini b/testing/web-platform/meta/idle-detection/idle-detection-detached-frame.https.html.ini
new file mode 100644
index 0000000000..8357415c15
--- /dev/null
+++ b/testing/web-platform/meta/idle-detection/idle-detection-detached-frame.https.html.ini
@@ -0,0 +1,3 @@
+[idle-detection-detached-frame.https.html]
+ [Using an IdleDetector from a detached frame]
+ expected: FAIL
diff --git a/testing/web-platform/meta/idle-detection/idle-detection-disabled-by-permissions-policy.https.sub.html.ini b/testing/web-platform/meta/idle-detection/idle-detection-disabled-by-permissions-policy.https.sub.html.ini
new file mode 100644
index 0000000000..c0af7b7a33
--- /dev/null
+++ b/testing/web-platform/meta/idle-detection/idle-detection-disabled-by-permissions-policy.https.sub.html.ini
@@ -0,0 +1,19 @@
+[idle-detection-disabled-by-permissions-policy.https.sub.html]
+ expected: TIMEOUT
+ [Permissions-Policy idle-detection=() explicitly set by top-level frame disallows query in the top-level document.]
+ expected: FAIL
+
+ [Permissions-Policy idle-detection=() explicitly set by top-level frame disallows same-origin iframes.]
+ expected: TIMEOUT
+
+ [Permissions-Policy idle-detection=() explicitly set by top-level frame disallows workers in same-origin iframes.]
+ expected: TIMEOUT
+
+ [Permissions-Policy idle-detection=() explicitly set by top-level frame disallows cross-origin iframes.]
+ expected: TIMEOUT
+
+ [Permissions-Policy idle-detection=() explicitly set by top-level frame disallows workers in cross-origin iframes.]
+ expected: TIMEOUT
+
+ [Inherited Permissions-Policy header idle-detection=() disallows dedicated workers.]
+ expected: FAIL
diff --git a/testing/web-platform/meta/idle-detection/idle-permission.tentative.https.window.js.ini b/testing/web-platform/meta/idle-detection/idle-permission.tentative.https.window.js.ini
new file mode 100644
index 0000000000..b1614307e0
--- /dev/null
+++ b/testing/web-platform/meta/idle-detection/idle-permission.tentative.https.window.js.ini
@@ -0,0 +1,10 @@
+[idle-permission.tentative.https.window.html]
+ [Denying idle-detection permission should block access.]
+ expected: FAIL
+
+ [Granting idle-detection permission should allow access.]
+ expected: FAIL
+
+ [The idle-detection permission cannot be requested without a user gesture]
+ expected: FAIL
+
diff --git a/testing/web-platform/meta/idle-detection/idlharness-worker.https.window.js.ini b/testing/web-platform/meta/idle-detection/idlharness-worker.https.window.js.ini
new file mode 100644
index 0000000000..ef84d6b9a4
--- /dev/null
+++ b/testing/web-platform/meta/idle-detection/idlharness-worker.https.window.js.ini
@@ -0,0 +1,4 @@
+[idlharness-worker.https.window.html]
+ [Run idlharness tests in a worker.]
+ expected: FAIL
+
diff --git a/testing/web-platform/meta/idle-detection/idlharness.https.window.js.ini b/testing/web-platform/meta/idle-detection/idlharness.https.window.js.ini
new file mode 100644
index 0000000000..bacc35fb3f
--- /dev/null
+++ b/testing/web-platform/meta/idle-detection/idlharness.https.window.js.ini
@@ -0,0 +1,37 @@
+[idlharness.https.window.html]
+ [idl_test setup]
+ expected: FAIL
+
+ [IdleDetector interface: existence and properties of interface object]
+ expected: FAIL
+
+ [IdleDetector interface object length]
+ expected: FAIL
+
+ [IdleDetector interface object name]
+ expected: FAIL
+
+ [IdleDetector interface: existence and properties of interface prototype object]
+ expected: FAIL
+
+ [IdleDetector interface: existence and properties of interface prototype object's "constructor" property]
+ expected: FAIL
+
+ [IdleDetector interface: existence and properties of interface prototype object's @@unscopables property]
+ expected: FAIL
+
+ [IdleDetector interface: attribute userState]
+ expected: FAIL
+
+ [IdleDetector interface: attribute screenState]
+ expected: FAIL
+
+ [IdleDetector interface: attribute onchange]
+ expected: FAIL
+
+ [IdleDetector interface: operation start(optional IdleOptions)]
+ expected: FAIL
+
+ [IdleDetector interface: operation requestPermission()]
+ expected: FAIL
+
diff --git a/testing/web-platform/meta/idle-detection/interceptor.https.html.ini b/testing/web-platform/meta/idle-detection/interceptor.https.html.ini
new file mode 100644
index 0000000000..3b257b7425
--- /dev/null
+++ b/testing/web-platform/meta/idle-detection/interceptor.https.html.ini
@@ -0,0 +1,31 @@
+[interceptor.https.html]
+ expected: ERROR
+ [updates once]
+ expected: NOTRUN
+
+ [updates twice]
+ expected: NOTRUN
+
+ [start()]
+ expected: NOTRUN
+
+ [IdleDetector.onchange]
+ expected: NOTRUN
+
+ [locked screen]
+ expected: NOTRUN
+
+ [Calling start() and abort() multiple times]
+ expected: NOTRUN
+
+ [Calling abort() before start() makes it fail]
+ expected: NOTRUN
+
+ [Calling start() after abort(): re-starting monitor.]
+ expected: NOTRUN
+
+ [Calling abort() after start() makes it fail]
+ expected: NOTRUN
+
+ [A start() that has been aborted can be retried]
+ expected: NOTRUN
diff --git a/testing/web-platform/meta/idle-detection/page-visibility.https.html.ini b/testing/web-platform/meta/idle-detection/page-visibility.https.html.ini
new file mode 100644
index 0000000000..536e46fae8
--- /dev/null
+++ b/testing/web-platform/meta/idle-detection/page-visibility.https.html.ini
@@ -0,0 +1,4 @@
+[page-visibility.https.html]
+ expected: ERROR
+ [Page visibility.]
+ expected: NOTRUN