summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/clipboard-apis/async-custom-formats-write-fail.tentative.https.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
commitd8bbc7858622b6d9c278469aab701ca0b609cddf (patch)
treeeff41dc61d9f714852212739e6b3738b82a2af87 /testing/web-platform/tests/clipboard-apis/async-custom-formats-write-fail.tentative.https.html
parentReleasing progress-linux version 125.0.3-1~progress7.99u1. (diff)
downloadfirefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz
firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/clipboard-apis/async-custom-formats-write-fail.tentative.https.html')
-rw-r--r--testing/web-platform/tests/clipboard-apis/async-custom-formats-write-fail.tentative.https.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/testing/web-platform/tests/clipboard-apis/async-custom-formats-write-fail.tentative.https.html b/testing/web-platform/tests/clipboard-apis/async-custom-formats-write-fail.tentative.https.html
index 8b1b42ec78..305222a58f 100644
--- a/testing/web-platform/tests/clipboard-apis/async-custom-formats-write-fail.tentative.https.html
+++ b/testing/web-platform/tests/clipboard-apis/async-custom-formats-write-fail.tentative.https.html
@@ -12,7 +12,7 @@
'use strict';
promise_test(async t => {
- await test_driver.set_permission({name: 'clipboard-write'}, 'granted');
+ await tryGrantWritePermission();
const customFormatArray = [];
const customFormatMap = {};
@@ -28,7 +28,7 @@ promise_test(async t => {
}, 'navigator.clipboard.write() fails for more than 100 custom formats');
promise_test(async t => {
- await test_driver.set_permission({name: 'clipboard-write'}, 'granted');
+ await tryGrantWritePermission();
const format1 = 'application/x-custom-format-clipboard-test-format-1';
const format2 = 'application/x-custom-format-clipboard-test-format-2';
@@ -42,7 +42,7 @@ promise_test(async t => {
}, 'navigator.clipboard.write() fails for custom formats without web prefix');
promise_test(async t => {
- await test_driver.set_permission({name: 'clipboard-write'}, 'granted');
+ await tryGrantWritePermission();
const format1 = 'web ';
const format2 = 'web a';
@@ -56,7 +56,7 @@ promise_test(async t => {
}, 'navigator.clipboard.write() fails for custom formats with web prefix, but invalid MIME types');
promise_test(async t => {
- await test_driver.set_permission({name: 'clipboard-write'}, 'granted');
+ await tryGrantWritePermission();
const format1 = 'web text/plain';
const format2 = 'text/custom';
@@ -69,7 +69,7 @@ promise_test(async t => {
}, 'navigator.clipboard.write() fails for custom format with web prefix, but different Blob type');
promise_test(async t => {
- await test_driver.set_permission({name: 'clipboard-write'}, 'granted');
+ await tryGrantWritePermission();
const format1 = 'web Text/plain';
const format2 = 'text/plain';
@@ -82,7 +82,7 @@ promise_test(async t => {
}, 'navigator.clipboard.write() fails for custom format with different case than the Blob type');
promise_test(async t => {
- await test_driver.set_permission({name: 'clipboard-write'}, 'granted');
+ await tryGrantWritePermission();
const format1 = 'web text/plain';
const format2 = 'Text/plain';
@@ -95,7 +95,7 @@ promise_test(async t => {
}, 'navigator.clipboard.write() fails for invalid mime type that is different than the Blob type');
promise_test(async t => {
- await test_driver.set_permission({name: 'clipboard-write'}, 'granted');
+ await tryGrantWritePermission();
const format1 = 'web Text/plain';
const format2 = 'web text/plain';
@@ -108,7 +108,7 @@ promise_test(async t => {
}, 'navigator.clipboard.write() fails for invalid mime type with web prefix and the Blob type');
promise_test(async t => {
- await test_driver.set_permission({name: 'clipboard-write'}, 'granted');
+ await tryGrantWritePermission();
const format1 = 'Text/plain';
const format2 = 'text/plain';