~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to ManualTests/inspector/debugger-pause-on-for-statements.html

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<script>
 
2
function test()
 
3
{
 
4
    debugger;
 
5
}
 
6
 
 
7
for (var i = 0; i < 1; ++i)
 
8
    test();
 
9
</script>
 
10
 
 
11
Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=22004">Bug 22004: Can't set a breakpoint on the statement after a single line "for"</a>.
 
12
<br><br>
 
13
Start a debugging session in the Web Inspector and open this file. When the debugger breaks, select the (program) node
 
14
in the call stack, you should see the execution line on the call to test().
 
15
<br><br>
 
16
Also set a breakpoint on the call to test(), and reload. It should break before the test() function is called.