tor-browser

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

browser_bug1539497.js (653B)


      1 /* Any copyright is dedicated to the Public Domain.
      2   http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 "use strict";
      5 
      6 add_task(async function maxTouchPoints() {
      7  await new Promise(resolve => {
      8    SpecialPowers.pushPrefEnv(
      9      {
     10        set: [["dom.maxtouchpoints.testing.value", 5]],
     11      },
     12      resolve
     13    );
     14  });
     15 
     16  let tab = await BrowserTestUtils.openNewForegroundTab(
     17    gBrowser,
     18    "data:text/html,Test page for navigator.maxTouchPoints"
     19  );
     20  await SpecialPowers.spawn(tab.linkedBrowser, [], function () {
     21    is(content.navigator.maxTouchPoints, 5, "Should have touch points.");
     22  });
     23 
     24  BrowserTestUtils.removeTab(tab);
     25 });