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

Unified Diff: LayoutTests/inspector/debugger/async-callstack.html

Issue 118293002: DevTools: Support XHR async call stacks in the debugger. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed Created 7 years 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/debugger/async-callstack.html
diff --git a/LayoutTests/inspector/debugger/async-callstack.html b/LayoutTests/inspector/debugger/async-callstack.html
index 753f3c875d0e3038a05cff89bbf148e7eaba8923..ad1b27ff42d6e65d400d9b5a352040cbf2a63c44 100644
--- a/LayoutTests/inspector/debugger/async-callstack.html
+++ b/LayoutTests/inspector/debugger/async-callstack.html
@@ -80,38 +80,7 @@ var test = function()
{
var totalDebuggerStatements = 10;
var maxAsyncCallStackDepth = 4;
-
- InspectorTest.setQuiet(true);
- InspectorTest.startDebuggerTest(step1);
-
- function step1()
- {
- DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, step2);
- }
-
- function step2()
- {
- InspectorTest.runTestFunctionAndWaitUntilPaused(didPaused);
- }
-
- var step = 0;
- var callStacksOutput = [];
- function didPaused(callFrames, reason, breakpointIds, asyncStackTrace)
- {
- ++step;
- InspectorTest.beginResultBufferring();
- InspectorTest.captureStackTrace(callFrames, asyncStackTrace);
- callStacksOutput.push(InspectorTest.endResultBufferring());
-
- if (step < totalDebuggerStatements) {
- InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(InspectorTest, didPaused));
- } else {
- InspectorTest.addResult("Captured call stacks in no particular order:");
- callStacksOutput.sort();
- InspectorTest.addResults(callStacksOutput);
- InspectorTest.completeDebuggerTest();
- }
- }
+ InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallStackDepth);
}
</script>
« no previous file with comments | « LayoutTests/http/tests/inspector/inspector-test.js ('k') | LayoutTests/inspector/debugger/async-callstack-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698