| 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 log(); | |
| 15 | |
| 16 function test() | |
| 17 { | |
| 18 | |
| 19 InspectorTest.addResult("=== Before clear ==="); | |
| 20 InspectorTest.dumpConsoleMessages(); | |
| 21 | |
| 22 Console.ConsoleView.clearConsole(); | |
| 23 | |
| 24 function callback() | |
| 25 { | |
| 26 InspectorTest.addResult("=== After clear ==="); | |
| 27 InspectorTest.dumpConsoleMessages(); | |
| 28 InspectorTest.completeTest(); | |
| 29 } | |
| 30 InspectorTest.deprecatedRunAfterPendingDispatches(callback); | |
| 31 } | |
| 32 | |
| 33 </script> | |
| 34 </head> | |
| 35 | |
| 36 <body onload="runTest()"> | |
| 37 <p> | |
| 38 Tests that console is cleared upon requestClearMessages call. | |
| 39 </p> | |
| 40 | |
| 41 </body> | |
| 42 </html> | |
| OLD | NEW |