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

Unified Diff: LayoutTests/inspector/sources/debugger/event-listener-breakpoints-script-first-stmt.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/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>

Powered by Google App Engine
This is Rietveld 408576698