Revision bf21aa6a53367f9ad69c1f8c78d66c20270bbeaf authored by Andrea Marchesini on 04 April 2018, 17:43:55 UTC, committed by moz-wptsync-bot on 04 April 2018, 17:43:55 UTC
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1450416
gecko-commit: b537ebde3ae1393efb0d8ff29ff6838f4b02b914
gecko-integration-branch: central
gecko-reviewers: asuth
1 parent 7c51ebb
Raw File
interfaces.https.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>WebXR Device API IDL Tests</title>
<link rel="help" href="https://immersive-web.github.io/webxr/spec/latest/">
<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>
"use strict";

promise_test(async () => {
  const idl_array = new IdlArray();
  const dom_idl = await fetch("/interfaces/dom.idl").then(r => r.text());
  const webxr_idl = await fetch("/interfaces/webxr.idl").then(r => r.text());

  idl_array.add_untested_idls(dom_idl);
  idl_array.add_untested_idls("interface Navigator {};");
  idl_array.add_idls(webxr_idl);
  idl_array.add_objects({
    Navigator:['navigator'],
  });
  idl_array.test();
}, "Test IDL implementation of WebXR API");
</script>
back to top