| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | |
| 4 <script src="../../http/tests/inspector/console-test.js"></script> | |
| 5 <script> | |
| 6 | |
| 7 function log() { | |
| 8 // Fill console. | |
| 9 console.log("one"); | |
| 10 console.log("two"); | |
| 11 console.log("three"); | |
| 12 } | |
| 13 | |
| 14 function test() | |
| 15 { | |
| 16 InspectorTest.addSniffer(WebInspector.ConsoleDispatcher.prototype, "messageA
dded", messageAdded, true); | |
| 17 | |
| 18 function messageAdded(payload) | |
| 19 { | |
| 20 var url = payload.url; | |
| 21 var lastSlashIndex = url.lastIndexOf("/"); | |
| 22 url = url.substring(lastSlashIndex + 1); | |
| 23 InspectorTest.addResult("Message at location: " + url + ":" + payload.li
ne); | |
| 24 if (payload.line === 10) | |
| 25 InspectorTest.completeTest(); | |
| 26 } | |
| 27 | |
| 28 InspectorTest.evaluateInPage("log()"); | |
| 29 } | |
| 30 | |
| 31 </script> | |
| 32 </head> | |
| 33 | |
| 34 <body onload="runTest()"> | |
| 35 <p> | |
| 36 Tests that console's url and line properties are defiend for console.log entries
. Bug 72256. | |
| 37 </p> | |
| 38 | |
| 39 </body> | |
| 40 </html> | |
| OLD | NEW |