browser_dbg-async-stepping.js (729B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */ 4 5 // Tests async stepping will step over await statements 6 7 "use strict"; 8 9 add_task(async function test() { 10 const dbg = await initDebugger("doc-async.html", "async.js"); 11 12 await selectSource(dbg, "async.js"); 13 await addBreakpoint(dbg, "async.js", 8); 14 invokeInTab("main"); 15 16 await waitForPaused(dbg); 17 await assertPausedAtSourceAndLine(dbg, findSource(dbg, "async.js").id, 8); 18 19 await stepOver(dbg); 20 await assertPausedAtSourceAndLine(dbg, findSource(dbg, "async.js").id, 9); 21 22 await assertBreakpoint(dbg, 8); 23 });