browser_dbg-gc-sources.js (1120B)
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 // Test that we can set breakpoints in scripts that have been GCed. 6 // Check that breakpoints can be set in GC'ed inline scripts, and in 7 // generated and original sources of scripts with source maps specified either 8 // inline or in their HTTP response headers. 9 10 "use strict"; 11 12 add_task(async function () { 13 const dbg = await initDebugger( 14 "doc-gc-sources.html", 15 "doc-gc-sources.html", 16 "collected-bundle.js", 17 "collected.js", 18 "collected2.js" 19 ); 20 await selectSource(dbg, "doc-gc-sources.html"); 21 await addBreakpoint(dbg, "doc-gc-sources.html", 21); 22 await selectSource(dbg, "collected-bundle.js"); 23 await addBreakpoint(dbg, "collected-bundle.js", 31); 24 await selectSource(dbg, "collected.js"); 25 await addBreakpoint(dbg, "collected.js", 2); 26 await selectSource(dbg, "collected2.js"); 27 await addBreakpoint(dbg, "collected2.js", 2); 28 ok(true, "Added breakpoint in GC'ed sources"); 29 });