blob: a9d8b9d3b6c70d7f206228ee1ab37605927c81e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* 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-asm.html");
await reload(dbg);
// After reload() we are getting getSources notifiction for old sources,
// using the debugger statement to really stop are reloaded page.
await waitForPaused(dbg);
await resume(dbg);
await waitForSources(dbg, "doc-asm.html", "asm.js");
// Make sure sources appear.
is(findAllElements(dbg, "sourceNodes").length, 3);
await selectSource(dbg, "asm.js");
await addBreakpoint(dbg, "asm.js", 7);
invokeInTab("runAsm");
await waitForPaused(dbg);
assertPausedLocation(dbg, "asm.js", 7);
});
|