Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / inspector / debugger-pause-on-for-in-statements.html
blobc0c24e0de12194289ecbb1cde884c72db11c43d2
1 <script>
2 function test()
4 debugger;
7 var object = { test: 1 };
9 for (var property in object)
10 test();
11 </script>
13 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>.
14 <br><br>
15 Start a debugging session in the Web Inspector and open this file. When the debugger breaks, select the (program) node
16 in the call stack, you should see the execution line on the call to test().
17 <br><br>
18 Also set a breakpoint on the call to test(), and reload. It should break before the test() function is called.