| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../http/tests/inspector/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 function test() | 7 function test() |
| 8 { | 8 { |
| 9 InspectorTest.addConsoleViewSniffer(addMessage, true); | 9 InspectorTest.addConsoleViewSniffer(addMessage, true); |
| 10 InspectorTest.evaluateInPage("loadIframe()"); | 10 InspectorTest.evaluateInPage("loadIframe()"); |
| 11 function addMessage(viewMessage) | 11 function addMessage(viewMessage) |
| 12 { | 12 { |
| 13 if (viewMessage.toString().indexOf("setTimeout") !== -1) | 13 if (viewMessage.element().deepTextContent().indexOf("setTimeout") !== -1
) |
| 14 InspectorTest.expandConsoleMessages(onExpanded); | 14 InspectorTest.expandConsoleMessages(onExpanded); |
| 15 } | 15 } |
| 16 | 16 |
| 17 function onExpanded() | 17 function onExpanded() |
| 18 { | 18 { |
| 19 InspectorTest.dumpConsoleMessages(); | 19 InspectorTest.dumpConsoleMessages(); |
| 20 InspectorTest.completeTest(); | 20 InspectorTest.completeTest(); |
| 21 } | 21 } |
| 22 } | 22 } |
| 23 | 23 |
| 24 function loadIframe() | 24 function loadIframe() |
| 25 { | 25 { |
| 26 var iframe = document.createElement("iframe"); | 26 var iframe = document.createElement("iframe"); |
| 27 iframe.src = "resources/uncaught-in-iframe.html"; | 27 iframe.src = "resources/uncaught-in-iframe.html"; |
| 28 document.body.appendChild(iframe); | 28 document.body.appendChild(iframe); |
| 29 } | 29 } |
| 30 | 30 |
| 31 </script> | 31 </script> |
| 32 </head> | 32 </head> |
| 33 | 33 |
| 34 <body onload="runTest()"> | 34 <body onload="runTest()"> |
| 35 <p> | 35 <p> |
| 36 Tests that uncaught exceptions are logged into console.<a href="https://bugs.web
kit.org/show_bug.cgi?id=47250">Bug 47250.</a> | 36 Tests that uncaught exceptions are logged into console.<a href="https://bugs.web
kit.org/show_bug.cgi?id=47250">Bug 47250.</a> |
| 37 </p> | 37 </p> |
| 38 | 38 |
| 39 </body> | 39 </body> |
| 40 </html> | 40 </html> |
| OLD | NEW |