Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-pause / debugger-eval-while-paused.html
blobd71968dc2e71dcf5a0094e7644beb4133a5081d8
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 src="../../../http/tests/inspector/debugger-test.js"></script>
6 <script>
8 var globalVar = { b: 1 };
10 function slave(x)
12 var y = 20;
13 debugger;
16 function testFunction()
18 var localObject = { a: 300 };
19 slave(4000);
22 var test = function()
24 InspectorTest.startDebuggerTest(step1);
26 function step1()
28 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
31 function step2(callFrames)
33 InspectorTest.evaluateInConsole("x + y + globalVar.b", step3.bind(null, callFrames));
36 function step3(callFrames, result)
38 InspectorTest.addResult("Evaluated script on the top frame: " + result);
39 var pane = WebInspector.panels.sources.sidebarPanes.callstack;
40 pane._callFrameSelected(pane.callFrames[1]);
41 InspectorTest.runAfterPendingDispatches(step4);
44 function step4()
46 InspectorTest.evaluateInConsole("localObject.a + globalVar.b", step5);
49 function step5(result)
51 InspectorTest.addResult("Evaluated script on the calling frame: " + result);
52 InspectorTest.completeDebuggerTest();
56 </script>
57 </head>
59 <body onload="runTest()">
60 <p>
61 Tests that evaluation in console works fine when script is paused. It also checks that
62 stack and global variables are accessible from the console.
63 </p>
65 </body>
66 </html>