| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="inspector-test.js"></script> | 3 <script src="inspector-test.js"></script> |
| 4 <script src="console-test.js"></script> | 4 <script src="console-test.js"></script> |
| 5 | 5 |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function performActions() | 8 function performActions() |
| 9 { | 9 { |
| 10 loadXHR(); | 10 loadXHR(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 document.body.appendChild(iframe); | 25 document.body.appendChild(iframe); |
| 26 } | 26 } |
| 27 | 27 |
| 28 function test() | 28 function test() |
| 29 { | 29 { |
| 30 InspectorTest.addConsoleViewSniffer(addMessage, true); | 30 InspectorTest.addConsoleViewSniffer(addMessage, true); |
| 31 | 31 |
| 32 function addMessage(uiMessage) | 32 function addMessage(uiMessage) |
| 33 { | 33 { |
| 34 // There will be only one such message. | 34 // There will be only one such message. |
| 35 if (uiMessage.toString().indexOf("non-existent-iframe") !== -1) | 35 if (uiMessage.element().deepTextContent().indexOf("non-existent-iframe")
!== -1) |
| 36 InspectorTest.expandConsoleMessages(onExpandedMessages); | 36 InspectorTest.expandConsoleMessages(onExpandedMessages); |
| 37 } | 37 } |
| 38 | 38 |
| 39 function onExpandedMessages() | 39 function onExpandedMessages() |
| 40 { | 40 { |
| 41 InspectorTest.dumpConsoleMessagesWithClasses(true); | 41 InspectorTest.dumpConsoleMessagesWithClasses(true); |
| 42 InspectorTest.completeTest(); | 42 InspectorTest.completeTest(); |
| 43 } | 43 } |
| 44 | 44 |
| 45 InspectorTest.evaluateInPage("performActions()"); | 45 InspectorTest.evaluateInPage("performActions()"); |
| 46 } | 46 } |
| 47 | 47 |
| 48 </script> | 48 </script> |
| 49 </head> | 49 </head> |
| 50 | 50 |
| 51 <body onload="runTest()"> | 51 <body onload="runTest()"> |
| 52 <p> | 52 <p> |
| 53 Tests that errors to load a resource cause error messages to be logged to consol
e. | 53 Tests that errors to load a resource cause error messages to be logged to consol
e. |
| 54 </p> | 54 </p> |
| 55 </body> | 55 </body> |
| 56 </html> | 56 </html> |
| OLD | NEW |