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

Side by Side Diff: LayoutTests/inspector/console/console-last-result.html

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
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 WebInspector.consoleModel.requestClearMessages(); 26 InspectorTest.consoleModel.requestClearMessages();
27 InspectorTest.runAfterPendingDispatches(step2); 27 InspectorTest.runAfterPendingDispatches(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
« no previous file with comments | « LayoutTests/inspector/console/console-eval-throw.html ('k') | LayoutTests/inspector/console/console-preserve-log.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698