summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/inspector/debugger-pause-on-else-statements.html
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/manual-tests/inspector/debugger-pause-on-else-statements.html')
-rw-r--r--WebCore/manual-tests/inspector/debugger-pause-on-else-statements.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/WebCore/manual-tests/inspector/debugger-pause-on-else-statements.html b/WebCore/manual-tests/inspector/debugger-pause-on-else-statements.html
new file mode 100644
index 0000000..424fb7e
--- /dev/null
+++ b/WebCore/manual-tests/inspector/debugger-pause-on-else-statements.html
@@ -0,0 +1,18 @@
+<script>
+function test()
+{
+ debugger;
+}
+
+if (false)
+ debugger; // This should not be hit.
+else
+ test();
+</script>
+
+Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=21944">Bug 21944: Can't set a breakpoint on the statement after a single line "else"</a>.
+<br><br>
+Start a debugging session in the Web Inspector and open this file. When the debugger breaks, select the (program) node
+in the call stack, you should see the execution line on the call to test().
+<br><br>
+Also set a breakpoint on the call to test(), and reload. It should break before the test() function is called.