summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/clipboard-apis/permissions
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/clipboard-apis/permissions')
-rw-r--r--testing/web-platform/tests/clipboard-apis/permissions/readText-denied.https.html2
-rw-r--r--testing/web-platform/tests/clipboard-apis/permissions/readText-granted.https.html4
-rw-r--r--testing/web-platform/tests/clipboard-apis/permissions/writeText-denied.https.html2
-rw-r--r--testing/web-platform/tests/clipboard-apis/permissions/writeText-granted.https.html4
4 files changed, 6 insertions, 6 deletions
diff --git a/testing/web-platform/tests/clipboard-apis/permissions/readText-denied.https.html b/testing/web-platform/tests/clipboard-apis/permissions/readText-denied.https.html
index 010f4ba21b..379b0ff18b 100644
--- a/testing/web-platform/tests/clipboard-apis/permissions/readText-denied.https.html
+++ b/testing/web-platform/tests/clipboard-apis/permissions/readText-denied.https.html
@@ -12,7 +12,7 @@
'use strict';
promise_test(async t => {
- await test_driver.set_permission({name: 'clipboard-read'}, 'denied');
+ await trySetPermission('clipboard-read', 'denied');
await waitForUserActivation();
await promise_rejects_dom(t,
'NotAllowedError', navigator.clipboard.readText());
diff --git a/testing/web-platform/tests/clipboard-apis/permissions/readText-granted.https.html b/testing/web-platform/tests/clipboard-apis/permissions/readText-granted.https.html
index e912bd64a8..0b2d7034df 100644
--- a/testing/web-platform/tests/clipboard-apis/permissions/readText-granted.https.html
+++ b/testing/web-platform/tests/clipboard-apis/permissions/readText-granted.https.html
@@ -12,8 +12,8 @@
'use strict';
promise_test(async () => {
- await test_driver.set_permission({name: 'clipboard-read'}, 'granted');
+ await tryGrantReadPermission();
await waitForUserActivation();
await navigator.clipboard.readText();
}, 'navigator.clipboard.readText() succeeds when permission granted');
-</script> \ No newline at end of file
+</script>
diff --git a/testing/web-platform/tests/clipboard-apis/permissions/writeText-denied.https.html b/testing/web-platform/tests/clipboard-apis/permissions/writeText-denied.https.html
index 5fbcab4117..3d6b4397a0 100644
--- a/testing/web-platform/tests/clipboard-apis/permissions/writeText-denied.https.html
+++ b/testing/web-platform/tests/clipboard-apis/permissions/writeText-denied.https.html
@@ -12,7 +12,7 @@
'use strict';
promise_test(async t => {
- await test_driver.set_permission({name: 'clipboard-write'}, 'denied');
+ await trySetPermission('clipboard-write', 'denied');
await waitForUserActivation();
await promise_rejects_dom(t, 'NotAllowedError',
navigator.clipboard.writeText('xyz'));
diff --git a/testing/web-platform/tests/clipboard-apis/permissions/writeText-granted.https.html b/testing/web-platform/tests/clipboard-apis/permissions/writeText-granted.https.html
index ff347b7add..c0307811dc 100644
--- a/testing/web-platform/tests/clipboard-apis/permissions/writeText-granted.https.html
+++ b/testing/web-platform/tests/clipboard-apis/permissions/writeText-granted.https.html
@@ -12,8 +12,8 @@
'use strict';
promise_test(async () => {
- await test_driver.set_permission({name: 'clipboard-write'}, 'granted');
+ await tryGrantWritePermission();
await waitForUserActivation();
await navigator.clipboard.writeText('xyz');
}, 'navigator.clipboard.writeText() succeeds when permission granted');
-</script> \ No newline at end of file
+</script>