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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-last-result.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 test() 7 function test()
8 { 8 {
9 InspectorTest.runTestSuite([ 9 InspectorTest.runTestSuite([
10 function testLastResult(next) 10 function testLastResult(next)
11 { 11 {
12 InspectorTest.evaluateInConsole("1+1", step1); 12 InspectorTest.evaluateInConsole("1+1", step1);
13 13
14 function step1() 14 function step1()
15 { 15 {
16 evaluateLastResultAndDump(next); 16 evaluateLastResultAndDump(next);
17 } 17 }
18 }, 18 },
19 19
20 function testLastResultAfterConsoleClear(next) 20 function testLastResultAfterConsoleClear(next)
21 { 21 {
22 InspectorTest.evaluateInConsole("1+1", step1); 22 InspectorTest.evaluateInConsole("1+1", step1);
23 23
24 function step1() 24 function step1()
25 { 25 {
26 InspectorTest.consoleModel.requestClearMessages(); 26 WebInspector.ConsoleView.clearConsole();
27 InspectorTest.deprecatedRunAfterPendingDispatches(step2); 27 InspectorTest.deprecatedRunAfterPendingDispatches(step2);
28 } 28 }
29 29
30 function step2() 30 function step2()
31 { 31 {
32 evaluateLastResultAndDump(next); 32 evaluateLastResultAndDump(next);
33 } 33 }
34 } 34 }
35 ]); 35 ]);
36 36
(...skipping 13 matching lines...) Expand all
50 </script> 50 </script>
51 </head> 51 </head>
52 52
53 <body onload="runTest()"> 53 <body onload="runTest()">
54 <p> 54 <p>
55 Tests that console exposes last evaluation result as $_. 55 Tests that console exposes last evaluation result as $_.
56 </p> 56 </p>
57 57
58 </body> 58 </body>
59 </html> 59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698