diff options
Diffstat (limited to 'testing/web-platform/meta/screen-wake-lock')
16 files changed, 188 insertions, 0 deletions
diff --git a/testing/web-platform/meta/screen-wake-lock/idlharness.https.window.js.ini b/testing/web-platform/meta/screen-wake-lock/idlharness.https.window.js.ini new file mode 100644 index 0000000000..b71f2a6c75 --- /dev/null +++ b/testing/web-platform/meta/screen-wake-lock/idlharness.https.window.js.ini @@ -0,0 +1,91 @@ +[idlharness.https.window.html] + [WakeLockSentinel interface: operation release()] + expected: FAIL + + [WakeLock interface: existence and properties of interface prototype object] + expected: FAIL + + [idl_test setup] + expected: FAIL + + [WakeLockSentinel interface object length] + expected: FAIL + + [WakeLockSentinel interface: existence and properties of interface object] + expected: FAIL + + [WakeLockSentinel interface: existence and properties of interface prototype object's @@unscopables property] + expected: FAIL + + [WakeLockSentinel must be primary interface of sentinel] + expected: FAIL + + [WakeLockSentinel interface: sentinel must inherit property "onrelease" with the proper type] + expected: FAIL + + [WakeLockSentinel interface: sentinel must inherit property "release()" with the proper type] + expected: FAIL + + [Stringification of sentinel] + expected: FAIL + + [WakeLock interface object name] + expected: FAIL + + [WakeLockSentinel interface: attribute type] + expected: FAIL + + [Navigator interface: attribute wakeLock] + expected: FAIL + + [WakeLock interface: existence and properties of interface object] + expected: FAIL + + [WakeLockSentinel interface object name] + expected: FAIL + + [Stringification of navigator.wakeLock] + expected: FAIL + + [WakeLock interface: existence and properties of interface prototype object's "constructor" property] + expected: FAIL + + [WakeLockSentinel interface: sentinel must inherit property "type" with the proper type] + expected: FAIL + + [WakeLock interface object length] + expected: FAIL + + [WakeLockSentinel interface: existence and properties of interface prototype object] + expected: FAIL + + [WakeLockSentinel interface: attribute onrelease] + expected: FAIL + + [Navigator interface: navigator must inherit property "wakeLock" with the proper type] + expected: FAIL + + [WakeLock interface: existence and properties of interface prototype object's @@unscopables property] + expected: FAIL + + [WakeLockSentinel interface: existence and properties of interface prototype object's "constructor" property] + expected: FAIL + + [WakeLock must be primary interface of navigator.wakeLock] + expected: FAIL + + [WakeLockSentinel interface: sentinel must inherit property "released" with the proper type] + expected: FAIL + + [WakeLockSentinel interface: attribute released] + expected: FAIL + + [WakeLock interface: calling request(optional WakeLockType) on navigator.wakeLock with too few arguments must throw TypeError] + expected: FAIL + + [WakeLock interface: navigator.wakeLock must inherit property "request(optional WakeLockType)" with the proper type] + expected: FAIL + + [WakeLock interface: operation request(optional WakeLockType)] + expected: FAIL + diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-active-document.https.window.js.ini b/testing/web-platform/meta/screen-wake-lock/wakelock-active-document.https.window.js.ini new file mode 100644 index 0000000000..004ac1572d --- /dev/null +++ b/testing/web-platform/meta/screen-wake-lock/wakelock-active-document.https.window.js.ini @@ -0,0 +1,7 @@ +[wakelock-active-document.https.window.html] + [navigator.wakeLock.request() aborts if the document is not active.] + expected: FAIL + + [navigator.wakeLock.request() aborts if the document is active, but not fully active.] + expected: FAIL + diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-disabled-by-permissions-policy.https.html.ini b/testing/web-platform/meta/screen-wake-lock/wakelock-disabled-by-permissions-policy.https.html.ini new file mode 100644 index 0000000000..9be4f064ab --- /dev/null +++ b/testing/web-platform/meta/screen-wake-lock/wakelock-disabled-by-permissions-policy.https.html.ini @@ -0,0 +1,5 @@ +[wakelock-disabled-by-permissions-policy.https.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [Permissions-Policy header "screen-wake-lock=()" disallows the top-level document.] + expected: FAIL diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-enabled-by-permissions-policy-attribute-redirect-on-load.https.html.ini b/testing/web-platform/meta/screen-wake-lock/wakelock-enabled-by-permissions-policy-attribute-redirect-on-load.https.html.ini new file mode 100644 index 0000000000..78e92d6128 --- /dev/null +++ b/testing/web-platform/meta/screen-wake-lock/wakelock-enabled-by-permissions-policy-attribute-redirect-on-load.https.html.ini @@ -0,0 +1,5 @@ +[wakelock-enabled-by-permissions-policy-attribute-redirect-on-load.https.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [Permissions-Policy allow="screen-wake-lock" allows same-origin relocation] + expected: FAIL diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-enabled-by-permissions-policy-attribute.https.html.ini b/testing/web-platform/meta/screen-wake-lock/wakelock-enabled-by-permissions-policy-attribute.https.html.ini new file mode 100644 index 0000000000..681fbe0d32 --- /dev/null +++ b/testing/web-platform/meta/screen-wake-lock/wakelock-enabled-by-permissions-policy-attribute.https.html.ini @@ -0,0 +1,6 @@ +[wakelock-enabled-by-permissions-policy-attribute.https.html] + [Permissions policy "screen-wake-lock" can be enabled in same-origin iframe using allow="screen-wake-lock" attribute] + expected: FAIL + + [Permissions policy "screen-wake-lock" can be enabled in cross-origin iframe using allow="screen-wake-lock" attribute] + expected: FAIL diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-enabled-by-permissions-policy.https.html.ini b/testing/web-platform/meta/screen-wake-lock/wakelock-enabled-by-permissions-policy.https.html.ini new file mode 100644 index 0000000000..cf30f2219d --- /dev/null +++ b/testing/web-platform/meta/screen-wake-lock/wakelock-enabled-by-permissions-policy.https.html.ini @@ -0,0 +1,11 @@ +[wakelock-enabled-by-permissions-policy.https.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [Permissions-Policy header "screen-wake-lock=*" allows the top-level document.] + expected: FAIL + + [Permissions-Policy header "screen-wake-lock=*" allows same-origin iframes.] + expected: FAIL + + [Permissions-Policy header "screen-wake-lock=*" allows cross-origin iframes.] + expected: FAIL diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-enabled-on-self-origin-by-permissions-policy.https.html.ini b/testing/web-platform/meta/screen-wake-lock/wakelock-enabled-on-self-origin-by-permissions-policy.https.html.ini new file mode 100644 index 0000000000..dc9d7ff821 --- /dev/null +++ b/testing/web-platform/meta/screen-wake-lock/wakelock-enabled-on-self-origin-by-permissions-policy.https.html.ini @@ -0,0 +1,8 @@ +[wakelock-enabled-on-self-origin-by-permissions-policy.https.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [Permissions-Policy header "screen-wake-lock=self" allows the top-level document.] + expected: FAIL + + [Permissions-Policy header "screen-wake-lock=self" allows same-origin iframes.] + expected: FAIL diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-insecure-context.any.js b/testing/web-platform/meta/screen-wake-lock/wakelock-insecure-context.any.js new file mode 100644 index 0000000000..8a2879b748 --- /dev/null +++ b/testing/web-platform/meta/screen-wake-lock/wakelock-insecure-context.any.js @@ -0,0 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +[wakelock-type.https.any.html] + disabled: + if (os == "win" and debug and bits == "32"): https://bugzilla.mozilla.org/show_bug.cgi?id=1591125 diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-insecure-context.any.js.ini b/testing/web-platform/meta/screen-wake-lock/wakelock-insecure-context.any.js.ini new file mode 100644 index 0000000000..8792f9fd0d --- /dev/null +++ b/testing/web-platform/meta/screen-wake-lock/wakelock-insecure-context.any.js.ini @@ -0,0 +1,7 @@ +[wakelock-insecure-context.any.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + +[wakelock-insecure-context.any.worker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-onrelease.https.html.ini b/testing/web-platform/meta/screen-wake-lock/wakelock-onrelease.https.html.ini new file mode 100644 index 0000000000..4fa24c5d42 --- /dev/null +++ b/testing/web-platform/meta/screen-wake-lock/wakelock-onrelease.https.html.ini @@ -0,0 +1,8 @@ +[wakelock-onrelease.https.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [Test onreleased event's basic properties] + expected: FAIL + + [Ensure onreleased is called before WakeLockSentinel.release() resolves] + expected: FAIL diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-released.https.html.ini b/testing/web-platform/meta/screen-wake-lock/wakelock-released.https.html.ini new file mode 100644 index 0000000000..16ad74b1c0 --- /dev/null +++ b/testing/web-platform/meta/screen-wake-lock/wakelock-released.https.html.ini @@ -0,0 +1,5 @@ +[wakelock-released.https.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [The released attribute inside an event handler] + expected: FAIL diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-request-denied.https.html.ini b/testing/web-platform/meta/screen-wake-lock/wakelock-request-denied.https.html.ini new file mode 100644 index 0000000000..9f6532b07c --- /dev/null +++ b/testing/web-platform/meta/screen-wake-lock/wakelock-request-denied.https.html.ini @@ -0,0 +1,5 @@ +[wakelock-request-denied.https.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [Denied requests should abort with NotAllowedError] + expected: FAIL diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-screen-type-on-worker.https.worker.js.ini b/testing/web-platform/meta/screen-wake-lock/wakelock-screen-type-on-worker.https.worker.js.ini new file mode 100644 index 0000000000..fa795ad24a --- /dev/null +++ b/testing/web-platform/meta/screen-wake-lock/wakelock-screen-type-on-worker.https.worker.js.ini @@ -0,0 +1,5 @@ +[wakelock-screen-type-on-worker.https.worker.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [Screen wake lock should not be allowed in dedicated worker] + expected: FAIL diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-supported-by-permissions-policy.html.ini b/testing/web-platform/meta/screen-wake-lock/wakelock-supported-by-permissions-policy.html.ini new file mode 100644 index 0000000000..ce46552195 --- /dev/null +++ b/testing/web-platform/meta/screen-wake-lock/wakelock-supported-by-permissions-policy.html.ini @@ -0,0 +1,5 @@ +[wakelock-supported-by-permissions-policy.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [document.featurePolicy.features should advertise screen-wake-lock.] + expected: FAIL diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-type.https.window.js.ini b/testing/web-platform/meta/screen-wake-lock/wakelock-type.https.window.js.ini new file mode 100644 index 0000000000..b243ceed73 --- /dev/null +++ b/testing/web-platform/meta/screen-wake-lock/wakelock-type.https.window.js.ini @@ -0,0 +1,8 @@ +[wakelock-type.https.window.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + ['type' parameter in WakeLock.request() defaults to 'screen'] + expected: FAIL + + ['TypeError' is thrown when set an invalid wake lock type] + expected: FAIL diff --git a/testing/web-platform/meta/screen-wake-lock/wakelockpermissiondescriptor.https.html.ini b/testing/web-platform/meta/screen-wake-lock/wakelockpermissiondescriptor.https.html.ini new file mode 100644 index 0000000000..e03a2109b8 --- /dev/null +++ b/testing/web-platform/meta/screen-wake-lock/wakelockpermissiondescriptor.https.html.ini @@ -0,0 +1,5 @@ +[wakelockpermissiondescriptor.https.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [PermissionDescriptor with name='screen-wake-lock' works] + expected: FAIL |