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

Side by Side Diff: LayoutTests/inspector/debugger/debugger-return-value.html

Issue 74063002: DevTools: Support asynchronous call stacks on backend. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed test flakiness 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 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> 5 <script>
6 6
7 function d() 7 function d()
8 { 8 {
9 var i = 10; 9 var i = 10;
10 return i; 10 return i;
(...skipping 17 matching lines...) Expand all
28 28
29 var stepCount = 0; 29 var stepCount = 0;
30 function step2(callFrames) 30 function step2(callFrames)
31 { 31 {
32 if (stepCount < 2) { 32 if (stepCount < 2) {
33 for (var i = 0, frame; frame = callFrames[i]; ++i) 33 for (var i = 0, frame; frame = callFrames[i]; ++i)
34 InspectorTest.assertTrue(!frame.returnValue, "Unexpected returnV alue in frame #" + i); 34 InspectorTest.assertTrue(!frame.returnValue, "Unexpected returnV alue in frame #" + i);
35 WebInspector.panels.sources._stepOverButton.element.click(); 35 WebInspector.panels.sources._stepOverButton.element.click();
36 InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(In spectorTest, step2)); 36 InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(In spectorTest, step2));
37 } else { 37 } else {
38 InspectorTest.captureStackTraceExtended(callFrames); 38 InspectorTest.captureStackTrace(callFrames, null, { printReturnValue : true });
39 InspectorTest.completeDebuggerTest(); 39 InspectorTest.completeDebuggerTest();
40 } 40 }
41 ++stepCount; 41 ++stepCount;
42 } 42 }
43 } 43 }
44 44
45 </script> 45 </script>
46 </head> 46 </head>
47 47
48 <body onload="runTest()"> 48 <body onload="runTest()">
49 <p> 49 <p>
50 Tests function's return value reported from backend. 50 Tests function's return value reported from backend.
51 </p> 51 </p>
52 52
53 </body> 53 </body>
54 </html> 54 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/debugger/debugger-activation-crash2.html ('k') | Source/bindings/v8/ScriptDebugServer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698