fune/devtools/client/webreplay/mochitest/browser_dbg_rr_stepping-02.js
Brian Hackett 1290999d83 Bug 1517837 - Move web replay tests to their own directory, r=lsmyth.
--HG--
extra : rebase_source : f26c786e9f787a57faed62f54c59178a5067065f
2019-01-15 12:26:20 -10:00

32 lines
1.1 KiB
JavaScript

/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set ft=javascript ts=2 et sw=2 tw=80: */
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
/* eslint-disable no-undef */
"use strict";
// To disable all Web Replay tests, see browser.ini
// Test fixes for some simple stepping bugs.
add_task(async function() {
const tab = BrowserTestUtils.addTab(gBrowser, null, { recordExecution: "*" });
gBrowser.selectedTab = tab;
openTrustedLinkIn(EXAMPLE_URL + "doc_rr_basic.html", "current");
await once(Services.ppmm, "RecordingFinished");
const toolbox = await attachDebugger(tab), client = toolbox.threadClient;
await client.interrupt();
await setBreakpoint(client, "doc_rr_basic.html", 22);
await rewindToLine(client, 22);
await stepInToLine(client, 25);
await stepOverToLine(client, 26);
await stepOverToLine(client, 27);
await reverseStepInToLine(client, 33);
await reverseStepOverToLine(client, 32);
await reverseStepOutToLine(client, 26);
await reverseStepOverToLine(client, 25);
await toolbox.destroy();
await gBrowser.removeTab(tab);
});