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