Index: third_party/WebKit/LayoutTests/installedapp/idl.html |
diff --git a/third_party/WebKit/LayoutTests/installedapp/idl.html b/third_party/WebKit/LayoutTests/installedapp/idl.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4111fe73e2d33451f75744deabaf30e46e6dc586 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/installedapp/idl.html |
@@ -0,0 +1,31 @@ |
+<!DOCTYPE html> |
+<link rel="help" href="https://github.com/WICG/get-installed-related-apps/blob/master/EXPLAINER.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"> |
+ [NoInterfaceObject] |
+ interface RelatedApplication { |
+ readonly attribute DOMString platform; |
+ readonly attribute DOMString url; |
+ readonly attribute DOMString id; |
+ }; |
+ partial interface Navigator { |
+ Promise<RelatedApplication> getInstalledRelatedApps(); |
+ }; |
+</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> |