From 1a03b5c86bee0cf47bf6db92deab10d4c3673ff1 Mon Sep 17 00:00:00 2001 From: Darwin Huang Date: Thu, 21 May 2020 10:21:53 +0000 Subject: [PATCH] Bug 1638136 [wpt PR 23617] - Clipboard API Tests: Move permissions tests to WPT., a=testonly Automatic update from web-platform-tests Clipboard API Tests: Move permissions tests to WPT. Since https://github.com/web-platform-tests/wpt/pull/20461 and https://github.com/web-platform-tests/wpt/issues/5671 were fixed, it now becomes possible to automate some Web Platform Tests, and have them run on all browsers automatically. Clipboard API permission tests were previously outside WPT in order to automate permissions using PermissionsHelper and detect regressions. This allows us to share our permissions tests with other browsers testing using WPT. Bug: 1076691 Change-Id: I1ff6a8bbdf60b8d77fd8621efce840739fbeec23 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2200278 Auto-Submit: Darwin Huang Commit-Queue: Victor Costan Reviewed-by: Victor Costan Cr-Commit-Position: refs/heads/master@{#769171} -- wpt-commits: 290d03696f5008625c2ebd1bfaf37eb9bff5bd79 wpt-pr: 23617 --- .../permissions/readText-denied.https.html | 17 +++++++++++++++++ .../permissions/readText-granted.https.html | 16 ++++++++++++++++ .../permissions/writeText-denied.https.html | 17 +++++++++++++++++ .../permissions/writeText-granted.https.html | 16 ++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 testing/web-platform/tests/clipboard-apis/permissions/readText-denied.https.html create mode 100644 testing/web-platform/tests/clipboard-apis/permissions/readText-granted.https.html create mode 100644 testing/web-platform/tests/clipboard-apis/permissions/writeText-denied.https.html create mode 100644 testing/web-platform/tests/clipboard-apis/permissions/writeText-granted.https.html 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 new file mode 100644 index 000000000000..7183b1a6eaeb --- /dev/null +++ b/testing/web-platform/tests/clipboard-apis/permissions/readText-denied.https.html @@ -0,0 +1,17 @@ + + +navigator.clipboard.readText() fails when permission denied + + + + + + 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 new file mode 100644 index 000000000000..5a2865db0dbf --- /dev/null +++ b/testing/web-platform/tests/clipboard-apis/permissions/readText-granted.https.html @@ -0,0 +1,16 @@ + + +navigator.clipboard.readText() succeeds when permission granted + + + + + + \ No newline at end of file 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 new file mode 100644 index 000000000000..19df8a398f60 --- /dev/null +++ b/testing/web-platform/tests/clipboard-apis/permissions/writeText-denied.https.html @@ -0,0 +1,17 @@ + + +navigator.clipboard.writeText() fails when permission denied + + + + + + 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 new file mode 100644 index 000000000000..87411fec20c9 --- /dev/null +++ b/testing/web-platform/tests/clipboard-apis/permissions/writeText-granted.https.html @@ -0,0 +1,16 @@ + + +navigator.clipboard.writeText() succeeds when permission granted + + + + + + \ No newline at end of file