blob: fad871b88f7be3bd12f5bc9c541fba800a56c45c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* 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/>. */
// Tests async stepping will step over await statements
add_task(async function test() {
await pushPref("devtools.debugger.features.async-stepping", true);
const dbg = await initDebugger("doc-async.html", "async");
await selectSource(dbg, "async");
await addBreakpoint(dbg, "async", 8);
invokeInTab("main");
await waitForPaused(dbg);
assertPausedLocation(dbg);
assertDebugLine(dbg, 8);
await stepOver(dbg);
assertPausedLocation(dbg);
assertDebugLine(dbg, 9);
});
|