Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/clipboard-apis/async-write-dttext-read-dttext-manual.https.html

Issue 2695593006: Initial stub version of Async Clipboard API (Closed)
Patch Set: Expected layout tests results for mac Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/external/wpt/clipboard-apis/async-write-dttext-read-dttext-manual.https.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/clipboard-apis/async-write-dttext-read-dttext-manual.https.html b/third_party/WebKit/LayoutTests/external/wpt/clipboard-apis/async-write-dttext-read-dttext-manual.https.html
new file mode 100644
index 0000000000000000000000000000000000000000..1fe946ae70a792cda6fd69efd330355b1f25804d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/clipboard-apis/async-write-dttext-read-dttext-manual.https.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>Async Clipboard write (dt/text) -> read (dt/text) tests</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+async_test(function(t) {
+ var test_data = "Clipboard write (dt/text) -> read (dt/text) test data";
+ var cb = navigator.clipboard;
+ var dt = new DataTransfer();
+ dt.items.add(test_data, "text/plain");
+
+ cb.write(dt).then(t.step_func(() => {
+ cb.read().then(t.step_func((data) => {
+ assert_equals(data.items.length, 1);
+ data.items[0].getAsString(t.step_func((s) => {
+ assert_equals(s, test_data);
+ t.done();
+ }));
+ }), function() {
+ t.unreached_func("clipboard.read() fail");
+ });
+ }), function() {
+ t.unreached_func("clipboard.write() fail");
+ });
+}, "Verify write and read clipboard (DataTransfer/text)");
+</script>
+Note: This is a manual test because it writes/reads to the shared system
+clipboard and thus cannot be run async with other tests that might interact
+with the clipboard.

Powered by Google App Engine
This is Rietveld 408576698