tor-browser

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

html.window.js (588B)


      1 ["atom", "rss"].forEach(item => {
      2  async_test(t => {
      3    const popup = window.open(`support/${item}.html`);
      4    t.add_cleanup(() => popup.close());
      5    popup.onload = t.step_func_done(() => {
      6      assert_equals(popup.document.contentType, "text/html");
      7      assert_equals(popup.document.documentElement.localName, "html");
      8      assert_equals(popup.document.documentElement.namespaceURI, "http://www.w3.org/1999/xhtml");
      9      assert_equals(popup.document.querySelector("b").namespaceURI, "http://www.w3.org/1999/xhtml");
     10    });
     11  }, `HTML is not sniffed for a "feed": ${item}`);
     12 });