3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/console-test.js"></script>
9 InspectorTest
.runTestSuite([
10 function testLastResult(next
)
12 InspectorTest
.evaluateInConsole("1+1", step1
);
16 evaluateLastResultAndDump(next
);
20 function testLastResultAfterConsoleClear(next
)
22 InspectorTest
.evaluateInConsole("1+1", step1
);
26 InspectorTest
.consoleModel
.requestClearMessages();
27 InspectorTest
.runAfterPendingDispatches(step2
);
32 evaluateLastResultAndDump(next
);
37 function evaluateLastResultAndDump(callback
)
39 InspectorTest
.evaluateInConsole("$_", didEvaluate
);
41 function didEvaluate()
43 InspectorTest
.dumpConsoleMessages();
53 <body onload=
"runTest()">
55 Tests that console exposes last evaluation result as $_.