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

Unified Diff: third_party/WebKit/LayoutTests/webshare/idl.html

Issue 2142723002: Added idlharness-based test for Web Share API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webshare-requester-mojo-blink
Patch Set: Remove trailing line. Created 3 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/webshare/idl.html
diff --git a/third_party/WebKit/LayoutTests/webshare/idl.html b/third_party/WebKit/LayoutTests/webshare/idl.html
new file mode 100644
index 0000000000000000000000000000000000000000..3495d0a29dd528fb2eeed2b113a577a19c471a0c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/webshare/idl.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<link rel="help" href="https://github.com/WICG/web-share/blob/master/docs/interface.md">
+<script src=../resources/testharness.js></script>
+<script src=../resources/testharnessreport.js></script>
+<script src=../resources/WebIDLParser.js></script>
+<script src=../resources/idlharness.js></script>
+<script type="text/plain" id="untested">
+ interface Navigator {
+ };
+</script>
+<script type="text/plain" id="tested">
+ dictionary ShareData {
+ DOMString? title;
+ DOMString? text;
+ DOMString? url;
+ };
+ partial interface Navigator {
+ Promise<void> share(ShareData data);
+ };
+</script>
+<script>
+ "use strict";
+ var idl_array = new IdlArray();
+ idl_array.add_untested_idls(document.querySelector("#untested").textContent);
+ idl_array.add_idls(document.querySelector('#tested').textContent);
+ idl_array.add_objects({
+ Navigator: ['navigator']
+ });
+ idl_array.test();
+</script>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698