3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/console-test.js"></script>
10 worker
= new Worker("resources/worker-with-unhandled-promises.js");
11 worker
.postMessage("");
16 InspectorTest
.addConsoleViewSniffer(checkConsoleMessages
, true);
17 InspectorTest
.evaluateInPage("setTimeout(startWorker, 0)");
19 function checkConsoleMessages()
21 var count
= InspectorTest
.consoleMessagesCount();
23 WebInspector
.console
.showPromise().then(expand
);
28 InspectorTest
.expandConsoleMessages(dump
);
33 InspectorTest
.dumpConsoleMessagesIgnoreErrorStackFrames();
34 InspectorTest
.completeTest();
41 <body onload=
"runTest()">
43 Tests that uncaught promise rejections happenned in workers are logged into console.