| Index: LayoutTests/inspector/sources/debugger/debugger-step-into-event-listener.html
|
| diff --git a/LayoutTests/inspector/sources/debugger/debugger-step-into-event-listener.html b/LayoutTests/inspector/sources/debugger/debugger-step-into-event-listener.html
|
| deleted file mode 100644
|
| index 5db1ae4a1aa0399431daeb3847d9d5447ae28b2b..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/sources/debugger/debugger-step-into-event-listener.html
|
| +++ /dev/null
|
| @@ -1,75 +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()
|
| -{
|
| - var div = document.getElementById("myDiv");
|
| - function fooEventHandler1()
|
| - {
|
| - div.textContent += "Recieved foo event(1)!\n";
|
| - }
|
| - div.addEventListener("foo", fooEventHandler1);
|
| -
|
| - function fooEventHandler2()
|
| - {
|
| - div.textContent += "Recieved foo event(2)!\n";
|
| - }
|
| - div.addEventListener("foo", fooEventHandler2);
|
| -
|
| - var e = new CustomEvent("foo");
|
| - debugger;
|
| - div.dispatchEvent(e);
|
| -}
|
| -
|
| -var test = function()
|
| -{
|
| - InspectorTest.startDebuggerTest(step1, true);
|
| -
|
| - function step1()
|
| - {
|
| - InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
|
| - }
|
| -
|
| - function checkTopFrameFunction(callFrames, expectedName, reason)
|
| - {
|
| - var topFunctionName = callFrames[0].functionName;
|
| - if (expectedName === topFunctionName)
|
| - InspectorTest.addResult("SUCCESS: Did step into event listener(" + expectedName + ").");
|
| - else
|
| - InspectorTest.addResult("FAIL: Unexpected top function: expected " + expectedName + ", found " + topFunctionName);
|
| - InspectorTest.assertEquals(WebInspector.DebuggerModel.BreakReason.Other, reason, "FAIL: wrong pause reason: " + reason);
|
| - }
|
| -
|
| - var stepCount = 0;
|
| - function step2(callFrames, reason)
|
| - {
|
| - if (stepCount === 2)
|
| - checkTopFrameFunction(callFrames, "fooEventHandler1", reason);
|
| - else if (stepCount === 5)
|
| - checkTopFrameFunction(callFrames, "fooEventHandler2", reason);
|
| -
|
| - if (stepCount < 5) {
|
| - InspectorTest.addResult("Stepping into...");
|
| - WebInspector.panels.sources._stepIntoButton.element.click();
|
| - InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(InspectorTest, step2));
|
| - } else {
|
| - InspectorTest.completeDebuggerTest();
|
| - }
|
| - stepCount++;
|
| - }
|
| -}
|
| -
|
| -</script>
|
| -</head>
|
| -
|
| -<body onload="runTest()">
|
| -<p>
|
| -Tests that stepping into dispatchEvent() method will lead to a pause in the first event listener.
|
| -</p>
|
| -<div id="myDiv"></div>
|
| -
|
| -</body>
|
| -</html>
|
|
|