3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/debugger-test.js"></script>
13 function testFunction()
15 var localObject = { a: 310 };
21 InspectorTest.startDebuggerTest(step1);
25 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
28 function step2(callFrames)
30 var pane = WebInspector.panels.sources.sidebarPanes.callstack;
31 pane._placardSelected(pane.placards[1]);
32 InspectorTest.runAfterPendingDispatches(step3);
37 InspectorTest.evaluateInConsole("localObject.a", step4);
40 function step4(result)
42 InspectorTest.addResult("Evaluated script on the calling frame: " + result);
44 var pane = WebInspector.panels.sources.sidebarPanes.scopechain;
45 var localsSection = pane._sections[0];
46 localsSection.object.setPropertyValue("localObject", "({ a: -290})", step5);
52 InspectorTest.addResult("Set property value error: " + error);
54 InspectorTest.evaluateInConsole("localObject.a", step6);
57 function step6(result)
59 InspectorTest.addResult("Evaluated script on the calling frame (after value modification): " + result);
60 InspectorTest.completeDebuggerTest();
67 <body onload="runTest()">
69 Tests that modifying local variables works fine.