| 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 { |
| 9 // Fill console. |
| 10 console.log("one"); |
| 11 console.log("two"); |
| 12 console.log("three"); |
| 13 } |
| 14 |
| 15 log(); |
| 16 |
| 17 function foo() |
| 18 { |
| 19 console.clear(); |
| 20 } |
| 21 |
| 22 function test() |
| 23 { |
| 24 InspectorTest.addResult("=== Before clear ==="); |
| 25 InspectorTest.dumpConsoleMessages(); |
| 26 |
| 27 InspectorTest.RuntimeAgent.evaluate("foo();", step1); |
| 28 |
| 29 function step1() |
| 30 { |
| 31 InspectorTest.addResult("=== After clear ==="); |
| 32 InspectorTest.dumpConsoleMessages(); |
| 33 InspectorTest.completeTest(); |
| 34 }; |
| 35 } |
| 36 |
| 37 </script> |
| 38 </head> |
| 39 |
| 40 <body onload="runTest()"> |
| 41 <p> |
| 42 Tests that console is cleared via console.clear() method |
| 43 </p> |
| 44 <a href="https://bugs.webkit.org/show_bug.cgi?id=101021">Bug 101021 </a> |
| 45 |
| 46 </body> |
| 47 </html> |
| OLD | NEW |