зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1822937 - Add devtools test to ensure we are no longer crashing; r=ochameau,devtools-reviewers
The test times out when it is unsuccessful. Differential Revision: https://phabricator.services.mozilla.com/D173277
This commit is contained in:
Родитель
b5ba57e32d
Коммит
b7353a6c87
|
@ -275,6 +275,7 @@ skip-if =
|
|||
[browser_dbg-browser-toolbox-workers.js]
|
||||
skip-if = asan || !nightly_build || fission # Bug 1591064, parent intercept mode is needed bug 1588154, Disable frequent fission intermittents Bug 1675020
|
||||
[browser_dbg-wrong-fetch.js]
|
||||
[browser_dbg-worker-module.js]
|
||||
[browser_dbg-worker-nested.js]
|
||||
[browser_dbg-step-in-navigate.js]
|
||||
[browser_dbg-settings-disable-javascript.js]
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||
|
||||
// Test that worker modules do not crash when run in the debugger.
|
||||
|
||||
"use strict";
|
||||
|
||||
add_task(async function() {
|
||||
const dbg = await initDebugger("doc-module-worker.html");
|
||||
// reload the page
|
||||
await navigate(dbg, "doc-module-worker.html", "doc-module-worker.html");
|
||||
|
||||
ok(true, "didn't crash");
|
||||
// TODO: bug 1816933 -- we can test actual functionality:
|
||||
// await waitForThreadCount(dbg, 1);
|
||||
// const workers = dbg.selectors.getThreads();
|
||||
// ok(workers.length == 1, "Got one worker");
|
||||
});
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<script>
|
||||
new Worker("data:text/javascript;charset=UTF-8,postMessage('HELLO')", {type: "module"});
|
||||
</script>
|
||||
<body>
|
||||
Hello World!
|
||||
</body>
|
||||
</html>
|
||||
|
Загрузка…
Ссылка в новой задаче