Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / console-uncaught-exception.html
blobb9b464e2447947389f92e325d0cc8e9a3138f9a7
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>
7 function test()
9 InspectorTest.addConsoleViewSniffer(addMessage, true);
10 InspectorTest.evaluateInPage("loadIframe()");
11 function addMessage(viewMessage)
13 if (viewMessage.toString().indexOf("setTimeout") !== -1)
14 InspectorTest.expandConsoleMessages(onExpanded);
17 function onExpanded()
19 InspectorTest.dumpConsoleMessages();
20 InspectorTest.completeTest();
24 function loadIframe()
26 var iframe = document.createElement("iframe");
27 iframe.src = "resources/uncaught-in-iframe.html";
28 document.body.appendChild(iframe);
31 </script>
32 </head>
34 <body onload="runTest()">
35 <p>
36 Tests that uncaught exceptions are logged into console.<a href="https://bugs.webkit.org/show_bug.cgi?id=47250">Bug 47250.</a>
37 </p>
39 </body>
40 </html>