tor-browser

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

test_bug1539497.html (730B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>bug 1539497</title>
      6  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      7  <link rel="stylesheet" href="/tests/SimpleTest/test.css"/>
      8  <script>
      9    SimpleTest.waitForExplicitFinish();
     10    function runTest() {
     11      var win = window.open("about:blank");
     12      is(win.navigator.maxTouchPoints, 5, "Should have max touch points");
     13      win.close();
     14      SimpleTest.finish();
     15    }
     16    function init() {
     17      SpecialPowers.pushPrefEnv(
     18        {"set": [["dom.maxtouchpoints.testing.value", 5]]}, runTest);
     19    }
     20  </script>
     21 </head>
     22 <body onload="init()">
     23 <p id="display"></p>
     24 <div id="content" style="display: none"></div>
     25 <pre id="test"></pre>
     26 </body>
     27 </html>