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

Side by Side Diff: third_party/WebKit/Source/devtools/tests/console/console-clear.html

Issue 2829663005: DevTools: delete copied tests and update readme (Closed)
Patch Set: Created 3 years, 8 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
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698