fune/devtools/client/webreplay/mochitest/browser_dbg_rr_stepping-05.js
Brian Hackett 33f0851783 Bug 1582557 - Fix some stepping issues, r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D46518

--HG--
extra : moz-landing-system : lando
2019-09-19 21:18:57 +00:00

31 lines
859 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
/* eslint-disable no-undef */
"use strict";
// Test stepping in pretty-printed code.
add_task(async function() {
const dbg = await attachRecordingDebugger("doc_minified.html", {
waitForRecording: true,
});
await selectSource(dbg, "minified.js");
await prettyPrint(dbg);
await dbg.actions.addEventListenerBreakpoints(["event.mouse.click"]);
await dbg.actions.toggleEventLogging();
const console = await getDebuggerSplitConsole(dbg);
const hud = console.hud;
await warpToMessage(hud, dbg, "click", 12);
await stepInToLine(dbg, 2);
await stepOutToLine(dbg, 12);
await stepInToLine(dbg, 9);
await stepOutToLine(dbg, 13);
await stepInToLine(dbg, 5);
await stepOutToLine(dbg, 14);
await shutdownDebugger(dbg);
});