tor-browser

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

browser_dbg-pause-on-next.js (660B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
      4 
      5 // Tests that when  pause on next is selected, we  pause on the next execution
      6 
      7 "use strict";
      8 
      9 add_task(async function () {
     10  const dbg = await initDebugger("doc-scripts.html");
     11  const {
     12    selectors: { getIsWaitingOnBreak, getCurrentThread },
     13  } = dbg;
     14 
     15  clickElement(dbg, "pause");
     16  await waitForState(dbg, () => getIsWaitingOnBreak(getCurrentThread()));
     17  invokeInTab("simple");
     18 
     19  await waitForPaused(dbg, "simple3");
     20  assertPaused(dbg);
     21 });