3 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../../http/tests/inspector/debugger-test.js"></script>
7 function makeClosure(n
)
9 var makeClosureLocalVar
= "local." + n
;
10 return function innerFunction(x
)
12 var innerFunctionLocalVar
= x
+ 2;
13 var negInf
= -Infinity
;
14 var negZero
= 1 / negInf
;
16 throw new Error("An exception");
21 return n
+ makeClosureLocalVar
+ x
+ innerFunctionLocalVar
;
25 function testFunction()
27 var f
= makeClosure("TextParam");
33 InspectorTest
.startDebuggerTest(step1
);
37 InspectorTest
.runTestFunctionAndWaitUntilPaused(step2
);
42 InspectorTest
.expandScopeVariablesSidebarPane(step3
);
47 InspectorTest
.addResult("");
48 InspectorTest
.dumpScopeVariablesSidebarPane();
49 InspectorTest
.completeDebuggerTest();
56 <body onload=
"runTest()">
57 <input type='button' onclick='testFunction()' value='Test'
/>
59 Test that sections representing scopes of the current call frame are expandable
60 and contain correct data.