Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / console-last-result.html
blob1934363b6bab106d34d03f2015f87e54fb75ab64
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>
7 function test()
9 InspectorTest.runTestSuite([
10 function testLastResult(next)
12 InspectorTest.evaluateInConsole("1+1", step1);
14 function step1()
16 evaluateLastResultAndDump(next);
20 function testLastResultAfterConsoleClear(next)
22 InspectorTest.evaluateInConsole("1+1", step1);
24 function step1()
26 InspectorTest.consoleModel.requestClearMessages();
27 InspectorTest.runAfterPendingDispatches(step2);
30 function step2()
32 evaluateLastResultAndDump(next);
35 ]);
37 function evaluateLastResultAndDump(callback)
39 InspectorTest.evaluateInConsole("$_", didEvaluate);
41 function didEvaluate()
43 InspectorTest.dumpConsoleMessages();
44 if (callback)
45 callback();
50 </script>
51 </head>
53 <body onload="runTest()">
54 <p>
55 Tests that console exposes last evaluation result as $_.
56 </p>
58 </body>
59 </html>