From 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:47:29 +0200 Subject: Adding upstream version 115.8.0esr. Signed-off-by: Daniel Baumann --- testing/web-platform/tests/permissions/META.yml | 4 + .../tests/permissions/all-permissions.html | 43 ++++++++ .../feature-policy-permissions-query.html | 11 +++ .../tests/permissions/idlharness.any.js | 27 ++++++ .../tests/permissions/midi-permission.html | 35 +++++++ .../tests/permissions/non-fully-active.https.html | 108 +++++++++++++++++++++ .../tests/permissions/permissions-cg.https.html | 36 +++++++ .../permissions-garbage-collect.https.html | 52 ++++++++++ ...s-query-feature-policy-attribute.https.sub.html | 75 ++++++++++++++ .../tests/permissions/permissionsstatus-name.html | 15 +++ .../tests/permissions/resources/empty.html | 3 + 11 files changed, 409 insertions(+) create mode 100644 testing/web-platform/tests/permissions/META.yml create mode 100644 testing/web-platform/tests/permissions/all-permissions.html create mode 100644 testing/web-platform/tests/permissions/feature-policy-permissions-query.html create mode 100644 testing/web-platform/tests/permissions/idlharness.any.js create mode 100644 testing/web-platform/tests/permissions/midi-permission.html create mode 100644 testing/web-platform/tests/permissions/non-fully-active.https.html create mode 100644 testing/web-platform/tests/permissions/permissions-cg.https.html create mode 100644 testing/web-platform/tests/permissions/permissions-garbage-collect.https.html create mode 100644 testing/web-platform/tests/permissions/permissions-query-feature-policy-attribute.https.sub.html create mode 100644 testing/web-platform/tests/permissions/permissionsstatus-name.html create mode 100644 testing/web-platform/tests/permissions/resources/empty.html (limited to 'testing/web-platform/tests/permissions') diff --git a/testing/web-platform/tests/permissions/META.yml b/testing/web-platform/tests/permissions/META.yml new file mode 100644 index 0000000000..6a05abee46 --- /dev/null +++ b/testing/web-platform/tests/permissions/META.yml @@ -0,0 +1,4 @@ +spec: https://w3c.github.io/permissions/ +suggested_reviewers: + - miketaylr + - marcoscaceres diff --git a/testing/web-platform/tests/permissions/all-permissions.html b/testing/web-platform/tests/permissions/all-permissions.html new file mode 100644 index 0000000000..9ad014bc6e --- /dev/null +++ b/testing/web-platform/tests/permissions/all-permissions.html @@ -0,0 +1,43 @@ + + +Test all known permissions support + + +
+ + diff --git a/testing/web-platform/tests/permissions/feature-policy-permissions-query.html b/testing/web-platform/tests/permissions/feature-policy-permissions-query.html new file mode 100644 index 0000000000..bd152e973e --- /dev/null +++ b/testing/web-platform/tests/permissions/feature-policy-permissions-query.html @@ -0,0 +1,11 @@ + + diff --git a/testing/web-platform/tests/permissions/idlharness.any.js b/testing/web-platform/tests/permissions/idlharness.any.js new file mode 100644 index 0000000000..ff0a969bad --- /dev/null +++ b/testing/web-platform/tests/permissions/idlharness.any.js @@ -0,0 +1,27 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +// https://w3c.github.io/permissions/#idl-index + +"use strict"; + +idl_test( + ['permissions'], + ['html', 'dom'], + async idl_array => { + try { + self.permissionStatus = await navigator.permissions.query({ name: "geolocation" }); + } catch (e) {} + + if (self.GLOBAL.isWorker()) { + idl_array.add_objects({ WorkerNavigator: ['navigator'] }); + } else { + idl_array.add_objects({ Navigator: ['navigator'] }); + } + + idl_array.add_objects({ + Permissions: ['navigator.permissions'], + PermissionStatus: ['permissionStatus'] + }); + } +); diff --git a/testing/web-platform/tests/permissions/midi-permission.html b/testing/web-platform/tests/permissions/midi-permission.html new file mode 100644 index 0000000000..1d75e1c883 --- /dev/null +++ b/testing/web-platform/tests/permissions/midi-permission.html @@ -0,0 +1,35 @@ + + +Test WebIDL conversion when querying the "midi" permission + + +
+ + diff --git a/testing/web-platform/tests/permissions/non-fully-active.https.html b/testing/web-platform/tests/permissions/non-fully-active.https.html new file mode 100644 index 0000000000..1c11afa3d9 --- /dev/null +++ b/testing/web-platform/tests/permissions/non-fully-active.https.html @@ -0,0 +1,108 @@ + + +Geolocation Test: non-fully active document + + + + + + + diff --git a/testing/web-platform/tests/permissions/permissions-cg.https.html b/testing/web-platform/tests/permissions/permissions-cg.https.html new file mode 100644 index 0000000000..7a2d8dcbb4 --- /dev/null +++ b/testing/web-platform/tests/permissions/permissions-cg.https.html @@ -0,0 +1,36 @@ + + +Test PermissionStatus's name attribute. + + + + + + + diff --git a/testing/web-platform/tests/permissions/permissions-garbage-collect.https.html b/testing/web-platform/tests/permissions/permissions-garbage-collect.https.html new file mode 100644 index 0000000000..cd650dc8f2 --- /dev/null +++ b/testing/web-platform/tests/permissions/permissions-garbage-collect.https.html @@ -0,0 +1,52 @@ + + +Test Permission garbage collection persistance. + + + + + + + + diff --git a/testing/web-platform/tests/permissions/permissions-query-feature-policy-attribute.https.sub.html b/testing/web-platform/tests/permissions/permissions-query-feature-policy-attribute.https.sub.html new file mode 100644 index 0000000000..1d7333d9b5 --- /dev/null +++ b/testing/web-platform/tests/permissions/permissions-query-feature-policy-attribute.https.sub.html @@ -0,0 +1,75 @@ + + +Test permissions query againts feature policy allow attribute + + +
+ + diff --git a/testing/web-platform/tests/permissions/permissionsstatus-name.html b/testing/web-platform/tests/permissions/permissionsstatus-name.html new file mode 100644 index 0000000000..db1d1bb83e --- /dev/null +++ b/testing/web-platform/tests/permissions/permissionsstatus-name.html @@ -0,0 +1,15 @@ + + +Test PermissionStatus's name attribute. + + +
+ + \ No newline at end of file diff --git a/testing/web-platform/tests/permissions/resources/empty.html b/testing/web-platform/tests/permissions/resources/empty.html new file mode 100644 index 0000000000..b0653f8c0c --- /dev/null +++ b/testing/web-platform/tests/permissions/resources/empty.html @@ -0,0 +1,3 @@ + + +Just a support file -- cgit v1.2.3