tor-browser

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

browser_dbg-asyncstacks.js (715B)


      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 async stacks include the async separator
      6 
      7 "use strict";
      8 
      9 add_task(async function () {
     10  pushPref("devtools.debugger.features.async-captured-stacks", true);
     11  const dbg = await initDebugger("doc-frames-async.html");
     12 
     13  invokeInTab("main");
     14  await waitForPaused(dbg);
     15 
     16  is(findElement(dbg, "frame", 1).innerText, "sleep\ndoc-frames-async.html:13");
     17  is(findElement(dbg, "asyncframe", 2).innerText, "async");
     18  is(findElement(dbg, "frame", 3).innerText, "main\ndoc-frames-async.html:17");
     19 });