| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |