Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / worker-eval-contains-stack.html
bloba751418ce689ec68afaea609a2800512d26a4a5f
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script>
6 function startWorker()
8 var worker = new Worker("resources/worker.js");
11 function test()
13 InspectorTest.addSniffer(WebInspector.RuntimeModel.prototype, "_executionContextCreated", contextCreated);
14 InspectorTest.evaluateInPage("startWorker()");
16 function contextCreated()
18 InspectorTest.changeExecutionContext("\u2699 worker.js");
19 InspectorTest.evaluateInConsole("\
20 function foo()\n\
21 {\n\
22 throw {a:239};\n\
23 }\n\
24 function boo()\n\
25 {\n\
26 foo();\n\
27 }\n\
28 boo();", step2);
31 function step2()
33 InspectorTest.expandConsoleMessages(step3);
36 function step3()
38 InspectorTest.dumpConsoleMessages();
39 InspectorTest.completeTest();
42 </script>
43 </head>
44 <body onload="runTest()">
45 <p>Tests exception message from eval on worker context in console contains stack trace.</p>
46 </body>
47 </html>