WebCore/manual-tests/inspector/debugger-execution-while-paused.html
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 01:32:07 +0300
changeset 2 303757a437d3
parent 0 4f2f89ce4247
permissions -rw-r--r--
Revision: 201037 Kit: 201039

<script>
function stepOne()
{
    var x = 1;
}

function stepTwo()
{
    alert("Test failed. The second button event still fired.");
}
</script>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=20284">Bug 20284: JavaScript can be executed even though debugger is running and at a break point</a>.</p>
<p>To test, open the Inspector and start a debugging session. Set a break point inside the stepOne() function. Now click the Step One button in the page. The breakpoint should be hit. While paused at the breakpoint click on the Step Two button. You should not see an alert dialog.</p>
<button onclick="stepOne()">Step One</button><br><br>
<button onclick="stepTwo()">Step Two</button><br><br>