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

Unified Diff: LayoutTests/inspector/sources/debugger/event-listener-breakpoints-promises.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-promises.html
diff --git a/LayoutTests/inspector/sources/debugger/event-listener-breakpoints-promises.html b/LayoutTests/inspector/sources/debugger/event-listener-breakpoints-promises.html
deleted file mode 100644
index 22d4c1bd41dfe6223a20ce8ef400c1dca43fa934..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/event-listener-breakpoints-promises.html
+++ /dev/null
@@ -1,74 +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 resolve;
- var reject;
-
- var p = new Promise(function(res, rej) {
- resolve = res;
- });
- p.then(function() {
- });
-
- var q = new Promise(function(res, rej) {
- reject = rej;
- });
- q.catch(function() {
- });
-
- resolve(42);
- reject(new Error("err"));
-}
-
-var test = function()
-{
- var pane = WebInspector.panels.sources.sidebarPanes.eventListenerBreakpoints;
- var numberOfPauses = 6;
-
- InspectorTest.setQuiet(true);
- InspectorTest.startDebuggerTest(step1);
-
- function step1()
- {
- pane._setBreakpoint("instrumentation:newPromise");
- pane._setBreakpoint("instrumentation:promiseResolved");
- pane._setBreakpoint("instrumentation:promiseRejected");
- 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:newPromise");
- pane._removeBreakpoint("instrumentation:promiseResolved");
- pane._removeBreakpoint("instrumentation:promiseRejected");
- InspectorTest.completeDebuggerTest();
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that debugger will stop on Promise events.
-</p>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698