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/>. */
7 // Test that breakpoints work when set in inline scripts that do not start at column 0.
9 // Debugger operations may still be in progress when we navigate.
10 const { PromiseTestUtils } = ChromeUtils.import(
11 "resource://testing-common/PromiseTestUtils.jsm"
13 PromiseTestUtils.whitelistRejectionsGlobally(/Page has navigated/);
15 add_task(async function() {
16 const dbg = await initDebugger("doc-inline-script-offset.html");
17 await addBreakpoint(dbg, "doc-inline-script-offset.html", 6, 66);
19 await waitForPaused(dbg);
20 ok(true, "paused after reloading at column breakpoint");