summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/inspector/console/console-uncaught-exception.html
blob: 20eb982465b66cda33ed3d7ed285c66c19e7f196 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<html>
<head>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/console-test.js"></script>
<script>

function test()
{
    InspectorTest.addConsoleSniffer(addMessage, true);
    InspectorTest.evaluateInPage("loadIframe()");
    function addMessage(message)
    {
        if (message.toString().indexOf("setTimeout") !== -1) {
            InspectorTest.expandConsoleMessages();
            InspectorTest.dumpConsoleMessages();
            InspectorTest.completeTest();
        }
    }
}

function loadIframe()
{
    var iframe = document.createElement("iframe");
    iframe.src = "resources/uncaught-in-iframe.html";
    document.body.appendChild(iframe);
}

</script>
</head>

<body onload="runTest()">
<p>
Tests that uncaught exceptions are logged into console.<a href="https://bugs.webkit.org/show_bug.cgi?id=47250">Bug 47250.</a>
</p>

</body>
</html>