summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/browser_dbg-continue-to-here-click.js
blob: 13093049c7a4f761d341ac5d25cc5f51ff1337ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */

add_task(async function() {
  const dbg = await initDebugger("doc-pause-points.html", "pause-points.js");
  await selectSource(dbg, "pause-points.js");
  await waitForSelectedSource(dbg, "pause-points.js");

  info("Test cmd+click continueing to a line");
  clickElementInTab("#sequences");
  await waitForPaused(dbg);
  await waitForInlinePreviews(dbg);
  await cmdClickLine(dbg, 31);
  await waitForPausedLine(dbg, 31);
  assertDebugLine(dbg, 31, 4);
  await resume(dbg);
  await waitForRequestsToSettle(dbg);
});

async function cmdClickLine(dbg, line) {
  await cmdClickGutter(dbg, line);
}