Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / console-command-clear.html
blobed79daa2eec9fce4e46fcf08003bfc6b3a4928a1
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>
7 function log() {
8 // Fill console.
9 console.log("one");
10 console.log("two");
11 console.log("three");
14 log();
16 function test()
19 InspectorTest.addResult("=== Before clear ===");
20 InspectorTest.dumpConsoleMessages();
22 function callback()
24 InspectorTest.addResult("=== After clear ===");
25 InspectorTest.dumpConsoleMessages();
26 InspectorTest.completeTest();
28 InspectorTest.evaluateInConsole("clear()", callback);
31 </script>
32 </head>
34 <body onload="runTest()">
35 <p>
36 Tests that console is cleared upon clear() eval in console.
37 </p>
39 </body>
40 </html>