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