tor-browser

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

browser_vsync_accessibility.js (697B)


      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 () {
      7  await TestUtils.waitForCondition(
      8    () => !ChromeUtils.vsyncEnabled(),
      9    "wait for vsync to be disabled at the start of the test"
     10  );
     11  Assert.ok(!ChromeUtils.vsyncEnabled(), "vsync should be disabled");
     12  Cc["@mozilla.org/accessibilityService;1"].getService(
     13    Ci.nsIAccessibilityService
     14  );
     15  await TestUtils.waitForCondition(
     16    () => !ChromeUtils.vsyncEnabled(),
     17    "wait for vsync to be disabled after initializing the accessibility service"
     18  );
     19  Assert.ok(!ChromeUtils.vsyncEnabled(), "vsync should still be disabled");
     20 });