tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

module.html (515B)


      1 <!DOCTYPE html>
      2 <meta charset=utf-8>
      3 <title>JSON modules</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <div id=log></div>
      7 <script>
      8 const t = async_test();
      9 </script>
     10 <script type="module" onerror="t.step(() => assert_unreached(event))">
     11 import v from "./module.json" with { type: "json" };
     12 t.step(() => {
     13  assert_equals(typeof v, "object");
     14  assert_array_equals(Object.keys(v), ["test"]);
     15  assert_equals(v.test, true);
     16  t.done();
     17 });
     18 </script>