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

Unified Diff: LayoutTests/inspector/sources/debugger/async-callstack-middle-run.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/async-callstack-middle-run.html
diff --git a/LayoutTests/inspector/sources/debugger/async-callstack-middle-run.html b/LayoutTests/inspector/sources/debugger/async-callstack-middle-run.html
deleted file mode 100644
index d4425a21588c52702a1801477f2a434f282ab787..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/async-callstack-middle-run.html
+++ /dev/null
@@ -1,83 +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(timeoutOffCapturing, 0);
-}
-
-function timeoutOffCapturing()
-{
- setTimeout(timeoutOffCapturing2, 0);
- debugger; // Will start capturing async stacks from this point.
- setTimeout(timeoutOnCapturing, 0);
-}
-
-function timeoutOffCapturing2()
-{
- debugger;
-}
-
-function timeoutOnCapturing()
-{
- debugger;
-}
-
-var test = function()
-{
- var totalDebuggerStatements = 3;
- var maxAsyncCallStackDepth = 4;
-
- InspectorTest.setQuiet(true);
- InspectorTest.startDebuggerTest(step1);
-
- function step1()
- {
- InspectorTest.DebuggerAgent.setAsyncCallStackDepth(0, step2);
- }
-
- function step2()
- {
- InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
- }
-
- function resumeExecution()
- {
- InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(InspectorTest, didPause));
- }
-
- var step = 0;
- var callStacksOutput = [];
- function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
- {
- ++step;
- if (step === 1) {
- InspectorTest.DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, resumeExecution);
- return;
- }
-
- callStacksOutput.push(InspectorTest.captureStackTraceIntoString(callFrames, asyncStackTrace) + "\n");
- if (step < totalDebuggerStatements) {
- resumeExecution();
- } else {
- InspectorTest.addResult("Captured call stacks in no particular order:");
- callStacksOutput.sort();
- InspectorTest.addResults(callStacksOutput);
- InspectorTest.completeDebuggerTest();
- }
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that capturing asynchronous call stacks in debugger works if started after some time since the page loads.
-</p>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698