Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-clear.html

Issue 2151273003: [DevTools] Move browser logging from Console domain to Log domain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@internals-method
Patch Set: protocol improvements Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 6
7 function log() { 7 function log() {
8 // Fill console. 8 // Fill console.
9 console.log("one"); 9 console.log("one");
10 console.log("two"); 10 console.log("two");
11 console.log("three"); 11 console.log("three");
12 } 12 }
13 13
14 log(); 14 log();
15 15
16 function test() 16 function test()
17 { 17 {
18 18
19 InspectorTest.addResult("=== Before clear ==="); 19 InspectorTest.addResult("=== Before clear ===");
20 InspectorTest.dumpConsoleMessages(); 20 InspectorTest.dumpConsoleMessages();
21 21
22 InspectorTest.consoleModel.requestClearMessages(); 22 WebInspector.ConsoleView.clearConsole();
23 23
24 function callback() 24 function callback()
25 { 25 {
26 InspectorTest.addResult("=== After clear ==="); 26 InspectorTest.addResult("=== After clear ===");
27 InspectorTest.dumpConsoleMessages(); 27 InspectorTest.dumpConsoleMessages();
28 InspectorTest.completeTest(); 28 InspectorTest.completeTest();
29 } 29 }
30 InspectorTest.deprecatedRunAfterPendingDispatches(callback); 30 InspectorTest.deprecatedRunAfterPendingDispatches(callback);
31 } 31 }
32 32
33 </script> 33 </script>
34 </head> 34 </head>
35 35
36 <body onload="runTest()"> 36 <body onload="runTest()">
37 <p> 37 <p>
38 Tests that console is cleared upon requestClearMessages call. 38 Tests that console is cleared upon requestClearMessages call.
39 </p> 39 </p>
40 40
41 </body> 41 </body>
42 </html> 42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698