browser_dbg-breakpoints-cond-source-maps.js (761B)
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 // Confirms that a conditional panel is opened at the 6 // correct location in generated files. 7 8 "use strict"; 9 10 add_task(async function () { 11 const dbg = await initDebugger("doc-sourcemaps.html", "entry.js"); 12 13 await selectSource(dbg, "bundle.js"); 14 await scrollEditorIntoView(dbg, 55, 0); 15 16 await setLogPoint(dbg, 55); 17 ok( 18 !!(await getConditionalPanelAtLine(dbg, 55)), 19 "conditional panel panel is open on line 55" 20 ); 21 is( 22 dbg.selectors.getConditionalPanelLocation().line, 23 55, 24 "conditional panel location is line 55" 25 ); 26 });