3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
9 InspectorTest.addConsoleSniffer(addMessage, true);
10 InspectorTest.evaluateInPage("loadIframe()");
11 function addMessage(message)
13 var uiMessage = InspectorTest.toViewMessage(message);
14 if (uiMessage.toString().indexOf("setTimeout") !== -1) {
15 InspectorTest.expandConsoleMessages();
16 InspectorTest.dumpConsoleMessages();
17 InspectorTest.completeTest();
24 var iframe = document.createElement("iframe");
25 iframe.src = "resources/uncaught-in-iframe.html";
26 document.body.appendChild(iframe);
32 <body onload="runTest()">
34 Tests that uncaught exceptions are logged into console.<a href="https://bugs.webkit.org/show_bug.cgi?id=47250">Bug 47250.</a>