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

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

Issue 304563002: DevTools: Make frameworks work with "custom" breakpoints (DOM, XHR, Events). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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/frameworks-with-async-callstack.html
diff --git a/LayoutTests/inspector/sources/debugger/async-callstack-and-framework-black-box.html b/LayoutTests/inspector/sources/debugger/frameworks-with-async-callstack.html
similarity index 68%
rename from LayoutTests/inspector/sources/debugger/async-callstack-and-framework-black-box.html
rename to LayoutTests/inspector/sources/debugger/frameworks-with-async-callstack.html
index 28c13bc0b68cbd24bea70fe1530806fff8662b3e..0b3c6ca9afdfcaa50c955426bcc6d944640fe664 100644
--- a/LayoutTests/inspector/sources/debugger/async-callstack-and-framework-black-box.html
+++ b/LayoutTests/inspector/sources/debugger/frameworks-with-async-callstack.html
@@ -54,23 +54,9 @@ function test()
function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
{
- InspectorTest.captureStackTrace(callFrames, asyncStackTrace);
-
- InspectorTest.addResult("\nVisible call stack:");
-
- var callStackPane = WebInspector.panels.sources.sidebarPanes.callstack;
- var placards = callStackPane.placards;
- var lastPlacard = null;
- for (var i = 0, index = 0; i < placards.length; ++i) {
- var placard = placards[i];
- if (placard.isHidden())
- continue;
- if (lastPlacard && placard._asyncPlacard !== lastPlacard._asyncPlacard)
- InspectorTest.addResult(" [" + placard._asyncPlacard.title + "]");
- InspectorTest.addResult(" " + (++index) + ") " + placard.title + " (" + placard.subtitle + ")");
- lastPlacard = placard;
- }
-
+ InspectorTest.captureStackTrace(callFrames, asyncStackTrace, { "dropFrameworkCallFrames": false });
+ InspectorTest.addResult("\nPrinting visible call stack:");
+ InspectorTest.captureStackTrace(callFrames, asyncStackTrace, { "dropFrameworkCallFrames": true });
InspectorTest.completeDebuggerTest();
}
}

Powered by Google App Engine
This is Rietveld 408576698