blob: 0a9b819f24036d9de6961979b4dc8ec225ea82c2 [file] [log] [blame]
<!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/webidl2.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>