browser_dbg-minified.js (922B)
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 minfied + source maps. 6 7 "use strict"; 8 9 add_task(async function () { 10 await pushPref("devtools.debugger.map-scopes-enabled", true); 11 const dbg = await initDebugger("doc-minified2.html", "sum.js"); 12 13 await selectSource(dbg, "sum.js"); 14 await addBreakpoint(dbg, "sum.js", 2); 15 16 invokeInTab("test"); 17 await waitForPaused(dbg); 18 19 is(getScopeNodeLabel(dbg, 1), "sum", "check scope label"); 20 is(getScopeNodeLabel(dbg, 2), "first", "check scope label"); 21 is(getScopeNodeValue(dbg, 2), "40", "check scope value"); 22 is(getScopeNodeLabel(dbg, 3), "second", "check scope label"); 23 is(getScopeNodeValue(dbg, 3), "2", "check scope value"); 24 is(getScopeNodeLabel(dbg, 4), "Window", "check scope label"); 25 });