browser_dbg-worker-module.js (708B)
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 worker modules do not crash when run in the debugger. 6 7 "use strict"; 8 9 add_task(async function () { 10 const dbg = await initDebugger("doc-module-worker.html"); 11 // reload the page 12 await navigate(dbg, "doc-module-worker.html", "doc-module-worker.html"); 13 14 ok(true, "didn't crash"); 15 // TODO: bug 1816933 -- we can test actual functionality: 16 // await waitForThreadCount(dbg, 1); 17 // const workers = dbg.selectors.getThreads(); 18 // ok(workers.length == 1, "Got one worker"); 19 });