Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-pause / debugger-change-variable.html
blobb3485aadb79de6f8eb0ae216d190eb6344c13093
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 function slave(x)
10 var y = 20;
11 debugger;
14 function testFunction()
16 var localObject1 = { a: 310 };
17 var localObject2 = 42;
18 slave(4000);
21 var test = function()
23 InspectorTest.startDebuggerTest(step1, true);
25 function evalLocalVariables(callback)
27 InspectorTest.evaluateInConsoleAndDump("localObject1.a", next);
28 function next()
30 InspectorTest.evaluateInConsoleAndDump("localObject2", callback);
34 function localScopeObject()
36 var pane = WebInspector.panels.sources.sidebarPanes.scopechain;
37 var localsSection = pane._sections[0];
38 return localsSection._object;
41 function step1()
43 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
46 function step2(callFrames)
48 var pane = WebInspector.panels.sources.sidebarPanes.callstack;
49 pane._callFrameSelected(pane.callFrames[1]);
50 InspectorTest.runAfterPendingDispatches(step3);
53 function step3()
55 InspectorTest.addResult("\nEvaluated before modification:");
56 evalLocalVariables(step4);
59 function step4()
61 localScopeObject().setPropertyValue("localObject1", "({ a: -290})", step5);
64 function step5()
66 localScopeObject().setPropertyValue({ value: "localObject2" }, "123", step6);
69 function step6()
71 InspectorTest.addResult("\nEvaluated after modification:");
72 evalLocalVariables(step7);
75 function step7()
77 InspectorTest.completeDebuggerTest();
81 </script>
82 </head>
84 <body onload="runTest()">
85 <p>
86 Tests that modifying local variables works fine.
87 </p>
88 </body>
89 </html>