| Index: LayoutTests/inspector/sources/debugger/event-listener-breakpoints-script-first-stmt.html
|
| diff --git a/LayoutTests/inspector/sources/debugger/event-listener-breakpoints-script-first-stmt.html b/LayoutTests/inspector/sources/debugger/event-listener-breakpoints-script-first-stmt.html
|
| deleted file mode 100644
|
| index acac25fca8677c8388cf044750d8b18e5c4d53b6..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/sources/debugger/event-listener-breakpoints-script-first-stmt.html
|
| +++ /dev/null
|
| @@ -1,71 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| -<script src="../../../http/tests/inspector/debugger-test.js"></script>
|
| -<script>
|
| -
|
| -function testFunction()
|
| -{
|
| - setTimeout(callback1, 0);
|
| -}
|
| -
|
| -function callback1()
|
| -{
|
| - var code =
|
| - "(function() {\n" +
|
| - "setTimeout(callback2, 0);\n" +
|
| - "})();\n" +
|
| - "//# sourceURL=inline_callback1.js";
|
| - setTimeout(code, 0);
|
| -}
|
| -
|
| -function callback2()
|
| -{
|
| - var script = document.createElement("script");
|
| - script.src = "resources/script1.js";
|
| - document.body.appendChild(script);
|
| - script.remove();
|
| -}
|
| -
|
| -function test()
|
| -{
|
| - var pane = WebInspector.panels.sources.sidebarPanes.eventListenerBreakpoints;
|
| - var numberOfPauses = 2;
|
| -
|
| - InspectorTest.startDebuggerTest(step1, true);
|
| -
|
| - function step1()
|
| - {
|
| - pane._setBreakpoint("instrumentation:scriptFirstStatement");
|
| - InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
|
| - }
|
| -
|
| - function didPause(callFrames, reason, breakpointIds, asyncStackTrace, auxData)
|
| - {
|
| - var eventName = (auxData && auxData.eventName || "").replace(/^instrumentation:/, "");
|
| - InspectorTest.addResult("\nPaused on " + eventName);
|
| - InspectorTest.captureStackTrace(callFrames);
|
| -
|
| - if (--numberOfPauses)
|
| - InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(InspectorTest, didPause));
|
| - else
|
| - InspectorTest.resumeExecution(step2);
|
| - }
|
| -
|
| - function step2()
|
| - {
|
| - pane._removeBreakpoint("instrumentation:scriptFirstStatement");
|
| - InspectorTest.completeDebuggerTest();
|
| - }
|
| -}
|
| -
|
| -</script>
|
| -</head>
|
| -
|
| -<body onload="runTest()">
|
| -<input type='button' onclick='testFunction()' value='Test'/>
|
| -<p>
|
| -Tests event listener breakpoint to break on the first statement of new scripts.
|
| -</p>
|
| -</body>
|
| -</html>
|
|
|