tor-browser

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

browser_dbg-worker-nested.js (525B)


      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 // Test that workers started by other workers show up in the debugger.
      6 
      7 "use strict";
      8 
      9 add_task(async function () {
     10  const dbg = await initDebugger("doc-nested-worker.html");
     11 
     12  await waitForThreadCount(dbg, 2);
     13  const workers = dbg.selectors.getThreads();
     14  Assert.equal(workers.length, 2, "Got two workers");
     15 });