Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / console / console-uncaught-exception.html
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
7 function test()
8 {
9     InspectorTest.addConsoleViewSniffer(addMessage, true);
10     InspectorTest.evaluateInPage("loadIframe()");
11     function addMessage(viewMessage)
12     {
13         if (viewMessage.toString().indexOf("setTimeout") !== -1)
14             InspectorTest.expandConsoleMessages(onExpanded);
15     }
16
17     function onExpanded()
18     {
19         InspectorTest.dumpConsoleMessages();
20         InspectorTest.completeTest();
21     }
22 }
23
24 function loadIframe()
25 {
26     var iframe = document.createElement("iframe");
27     iframe.src = "resources/uncaught-in-iframe.html";
28     document.body.appendChild(iframe);
29 }
30
31 </script>
32 </head>
33
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>
38
39 </body>
40 </html>