1<script> 2var myObj = {test : 1}; 3function getObject() 4{ 5 return myObj; 6} 7 8function statement() { 9 ; 10} 11 12function runForIn() 13{ 14 /* place breakpoint on next line and click continue */ debugger; 15 for (var property in getObject()) 16 statement(); 17} 18 19</script> 20Start a debugging session in the Web Inspector and open this file. 21<br><br> 22Before running the tests please perform the following: 23Make sure the execution is not paused in the debugger.<br> 24Click the button and when the debugger breaks, set a breakpoint on the first line in the loop 25(as indicated by the comment), and click continue.<br> 26The debugger should stop at the beggining of the loop.<br> 27The above actions should be performed before <b>each</b> of the following tests. 28<br><br> 29<input type="button" value="run for-in" onclick="runForIn()"/> 30<br><br> 31TEST 1: Click 'continue'. Execution should continue without stopping on the loop breakpoint again.<br> 32TEST 2: Click 'Step over'. Debugger should step inside the loop to the next statement line.<br> 33TEST 3: Click 'Step into'. Debugger should step into 'getObject' function.<br> 34TEST 4: 'Step over' to the statement line and then 'Step over' again. Debugger should pause on 35the for-in loop again.<br> 36