Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(931)

Unified Diff: LayoutTests/inspector/sources/debugger/debugger-step-into-event-listener.html

Issue 1153923005: DevTools: shard inspector/debugger tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698