OLD | NEW |
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 Loading... |
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> |
OLD | NEW |