tor-browser

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

browser_dbg-sourceURL-breakpoint.js (588B)


      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 breakpoints are hit in eval'ed sources with a sourceURL property.
      6 
      7 "use strict";
      8 
      9 add_task(async function () {
     10  const dbg = await initDebugger("doc-sourceURL-breakpoint.html", "my-foo.js");
     11  await selectSource(dbg, "my-foo.js");
     12  await addBreakpoint(dbg, "my-foo.js", 2);
     13 
     14  invokeInTab("foo");
     15  await waitForPaused(dbg);
     16 
     17  ok(true, "paused at breakpoint");
     18 });