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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/clipboard-apis/async-write-dttext-read-text-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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>Async Clipboard write (dt/text) -> readText tests</title>
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <script>
7 async_test(function(t) {
8 var test_data = "Clipboard write (dt/text) -> readText test data";
9 var cb = navigator.clipboard;
10 var dt = new DataTransfer();
11 dt.items.add(test_data, "text/plain");
12
13 cb.write(dt).then(t.step_func(() => {
14 cb.readText().then(t.step_func((data) => {
15 assert_equals(data, test_data);
16 t.done();
17 }), function() {
18 t.unreached_func("clipboard.read() fail");
19 });
20 }), function() {
21 t.unreached_func("clipboard.write() fail");
22 });
23 }, "Verify write and read clipboard (DataTransfer/text)");
24 </script>
25 Note: This is a manual test because it writes/reads to the shared system
26 clipboard and thus cannot be run async with other tests that might interact
27 with the clipboard.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698