| Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/break-on-set-timeout-with-syntax-error.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/break-on-set-timeout-with-syntax-error.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/break-on-set-timeout-with-syntax-error.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..feac2f52eb6ef47e8870458bb1d6efa2a1f16743
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/break-on-set-timeout-with-syntax-error.html
|
| @@ -0,0 +1,51 @@
|
| +<html>
|
| +<head>
|
| +<script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| +<script src="../../../http/tests/inspector/debugger-test.js"></script>
|
| +<script src="../../../http/tests/inspector/console-test.js"></script>
|
| +<script>
|
| +
|
| +function runSetTimeoutWithSyntaxError()
|
| +{
|
| + setTimeout({}, 0);
|
| +}
|
| +
|
| +function executeSomeCode()
|
| +{
|
| + debugger; // should stop here not earlier
|
| +}
|
| +
|
| +var test = function()
|
| +{
|
| + InspectorTest.startDebuggerTest(step1, true);
|
| +
|
| + function step1()
|
| + {
|
| + WebInspector.panels.sources.sidebarPanes.eventListenerBreakpoints._setBreakpoint("instrumentation:timerFired");
|
| + InspectorTest.evaluateInPage("runSetTimeoutWithSyntaxError()", InspectorTest.waitUntilMessageReceived.bind(this, step2));
|
| + }
|
| +
|
| + function step2()
|
| + {
|
| + var actions = [ "Print" ];
|
| + InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3);
|
| + InspectorTest.evaluateInPage("executeSomeCode()");
|
| + }
|
| +
|
| + function step3()
|
| + {
|
| + WebInspector.panels.sources.sidebarPanes.eventListenerBreakpoints._removeBreakpoint("instrumentation:timerFired");
|
| + InspectorTest.completeDebuggerTest();
|
| + }
|
| +}
|
| +
|
| +</script>
|
| +</head>
|
| +
|
| +<body onload="runTest()">
|
| +<p>
|
| +Tests that scheduled pause is cleared after processing event with empty handler.
|
| +</p>
|
| +<div id="myDiv"></div>
|
| +</body>
|
| +</html>
|
|
|