browser_dbg-react-jsx.js (758B)
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 dynamically generated <script> elements which contain source maps 6 // will be shown in the debugger. 7 8 "use strict"; 9 10 add_task(async function () { 11 const dbg = await initDebugger("doc-react-jsx.html"); 12 13 invokeInTab("injectScript"); 14 await waitForSources(dbg, "doc-react-jsx.html", "main.js"); 15 await selectSource(dbg, "main.js"); 16 await addBreakpoint(dbg, "main.js", 3); 17 invokeInTab("foo"); 18 await waitForPausedInOriginalFileAndToggleMapScopes(dbg); 19 await assertPausedAtSourceAndLine(dbg, findSource(dbg, "main.js").id, 3); 20 });