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

Side by Side Diff: third_party/WebKit/Source/devtools/tests/console/console-clear-function.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 {
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698