From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- .../web-platform/tests/permissions-revoke/META.yml | 1 + .../tests/permissions-revoke/idlharness.any.js | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 testing/web-platform/tests/permissions-revoke/META.yml create mode 100644 testing/web-platform/tests/permissions-revoke/idlharness.any.js (limited to 'testing/web-platform/tests/permissions-revoke') diff --git a/testing/web-platform/tests/permissions-revoke/META.yml b/testing/web-platform/tests/permissions-revoke/META.yml new file mode 100644 index 0000000000..16203fe4d7 --- /dev/null +++ b/testing/web-platform/tests/permissions-revoke/META.yml @@ -0,0 +1 @@ +spec: https://wicg.github.io/permissions-revoke/ diff --git a/testing/web-platform/tests/permissions-revoke/idlharness.any.js b/testing/web-platform/tests/permissions-revoke/idlharness.any.js new file mode 100644 index 0000000000..51c63aadef --- /dev/null +++ b/testing/web-platform/tests/permissions-revoke/idlharness.any.js @@ -0,0 +1,21 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js +// META: timeout=long + +'use strict'; + +idl_test( + ['permissions-revoke'], + ['permissions', 'html', 'dom'], + async idl_array => { + if (self.GLOBAL.isWorker()) { + idl_array.add_objects({ WorkerNavigator: ['navigator'] }); + } else { + idl_array.add_objects({ Navigator: ['navigator'] }); + } + + idl_array.add_objects({ + Permissions: ['navigator.permissions'], + }); + } +); -- cgit v1.2.3