| 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 function foo() | 6 function foo() |
| 7 { | 7 { |
| 8 console.trace(239); | 8 console.trace(239); |
| 9 } | 9 } |
| 10 //# sourceURL=foo.js | 10 //# sourceURL=foo.js |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 { | 51 { |
| 52 dumpConsoleMessageURLs(); | 52 dumpConsoleMessageURLs(); |
| 53 InspectorTest.completeTest(); | 53 InspectorTest.completeTest(); |
| 54 } | 54 } |
| 55 | 55 |
| 56 function dumpConsoleMessageURLs() | 56 function dumpConsoleMessageURLs() |
| 57 { | 57 { |
| 58 var messages = Console.ConsoleView.instance()._visibleViewMessages; | 58 var messages = Console.ConsoleView.instance()._visibleViewMessages; |
| 59 for (var i = 0; i < messages.length; ++i) { | 59 for (var i = 0; i < messages.length; ++i) { |
| 60 var element = messages[i].toMessageElement(); | 60 var element = messages[i].toMessageElement(); |
| 61 var anchor = element.querySelector(".console-message-url"); | 61 var anchor = element.querySelector(".console-message-anchor"); |
| 62 InspectorTest.addResult(anchor.textContent.replace(/VM\d+/g, "VM")); | 62 InspectorTest.addResult(anchor.textContent.replace(/VM\d+/g, "VM")); |
| 63 } | 63 } |
| 64 } | 64 } |
| 65 } | 65 } |
| 66 </script> | 66 </script> |
| 67 </head> | 67 </head> |
| 68 <body onload="runTest()"> | 68 <body onload="runTest()"> |
| 69 <p> | 69 <p> |
| 70 Test that console.log() would linkify its location in respect with blackboxing. | 70 Test that console.log() would linkify its location in respect with blackboxing. |
| 71 </p> | 71 </p> |
| 72 </body> | 72 </body> |
| 73 </html> | 73 </html> |
| OLD | NEW |