3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
13 function testFunction()
21 InspectorTest.setQuiet(true);
22 InspectorTest.startDebuggerTest(step1);
26 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
30 function step2(callFrames)
33 for (var i = 0, frame; frame = callFrames[i]; ++i)
34 InspectorTest.assertTrue(!frame.returnValue, "Unexpected returnValue in frame #" + i);
35 WebInspector.panels.sources._stepOverButton.element.click();
36 InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(InspectorTest, step2));
38 InspectorTest.captureStackTrace(callFrames, null, { printReturnValue: true });
39 InspectorTest.completeDebuggerTest();
48 <body onload="runTest()">
50 Tests function's return value reported from backend.