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

Side by Side 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, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script src="resources/framework.js"></script> 5 <script src="resources/framework.js"></script>
6 <script> 6 <script>
7 7
8 window.callbackFromFramework = function(next) 8 window.callbackFromFramework = function(next)
9 { 9 {
10 return next(); 10 return next();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, step2); 47 DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, step2);
48 } 48 }
49 49
50 function step2() 50 function step2()
51 { 51 {
52 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); 52 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
53 } 53 }
54 54
55 function didPause(callFrames, reason, breakpointIds, asyncStackTrace) 55 function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
56 { 56 {
57 InspectorTest.captureStackTrace(callFrames, asyncStackTrace); 57 InspectorTest.captureStackTrace(callFrames, asyncStackTrace, { "dropFram eworkCallFrames": false });
58 58 InspectorTest.addResult("\nPrinting visible call stack:");
59 InspectorTest.addResult("\nVisible call stack:"); 59 InspectorTest.captureStackTrace(callFrames, asyncStackTrace, { "dropFram eworkCallFrames": true });
60
61 var callStackPane = WebInspector.panels.sources.sidebarPanes.callstack;
62 var placards = callStackPane.placards;
63 var lastPlacard = null;
64 for (var i = 0, index = 0; i < placards.length; ++i) {
65 var placard = placards[i];
66 if (placard.isHidden())
67 continue;
68 if (lastPlacard && placard._asyncPlacard !== lastPlacard._asyncPlaca rd)
69 InspectorTest.addResult(" [" + placard._asyncPlacard.title + "]");
70 InspectorTest.addResult(" " + (++index) + ") " + placard.title + " (" + placard.subtitle + ")");
71 lastPlacard = placard;
72 }
73
74 InspectorTest.completeDebuggerTest(); 60 InspectorTest.completeDebuggerTest();
75 } 61 }
76 } 62 }
77 63
78 </script> 64 </script>
79 </head> 65 </head>
80 66
81 <body onload="runTest()"> 67 <body onload="runTest()">
82 <input type='button' onclick='testFunction()' value='Test'/> 68 <input type='button' onclick='testFunction()' value='Test'/>
83 <p> 69 <p>
84 Tests the async call stacks and framework black-boxing features working together . 70 Tests the async call stacks and framework black-boxing features working together .
85 </p> 71 </p>
86 </body> 72 </body>
87 </html> 73 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698