summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/browser_dbg-continue-to-here-click.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/debugger/test/mochitest/browser_dbg-continue-to-here-click.js')
-rw-r--r--devtools/client/debugger/test/mochitest/browser_dbg-continue-to-here-click.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/devtools/client/debugger/test/mochitest/browser_dbg-continue-to-here-click.js b/devtools/client/debugger/test/mochitest/browser_dbg-continue-to-here-click.js
new file mode 100644
index 0000000000..13093049c7
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/browser_dbg-continue-to-here-click.js
@@ -0,0 +1,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);
+}