Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / console-message-contains-async-stack.html
blobbe4057345f492a2424190dc140386590af0db2b6
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 test()
8 InspectorTest.DebuggerAgent.setAsyncCallStackDepth(200, step1);
10 function step1()
12 InspectorTest.waitUntilNthMessageReceived(1, step2);
13 InspectorTest.evaluateInPage("setTimeout(\"~\", 0)");
16 function step2()
18 InspectorTest.expandConsoleMessages(step3);
21 function step3()
23 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames();
24 InspectorTest.completeTest();
27 </script>
28 </head>
29 <body onload="runTest()">
30 <p>Tests exception message with empty stack in console contains async stack trace.</p>
31 </body>
32 </html>