blob: 7c41b74d793d5f3e02216478ee57ce002e3325f2 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../http/tests/inspector/resources/inspector-test.js"></script>
<script src="resources/stack-trace-utilities.js"></script>
<script src="resources/tail-deleted-frames-intermediate-frames.js"></script>
<script>
function test()
{
let suite = InspectorTest.createAsyncSuite("Debugger.TailDeletedFrames.IntermediateFrames");
suite.addTestCase({
name: "Debugger.TailDeletedFrames.IntermediateFrames",
description: "Ensure intermediate frames in a log do not show up in the call stack",
async test() {
// Trigger breakpoint.
InspectorTest.evaluateInPage(`startABC()`);
// Dump stack when paused.
await WI.debuggerManager.awaitEvent(WI.DebuggerManager.Event.Paused);
InspectorTest.log("PAUSED");
await logAsyncStackTrace();
// Resume and end test.
WI.debuggerManager.resume();
await WI.debuggerManager.awaitEvent(WI.DebuggerManager.Event.Resumed);
InspectorTest.log("RESUMED");
}
});
suite.runTestCasesAndFinish();
}
</script>
</head>
<body onload="runTest()">
<p>Ensure proper tail deleted frames with different call stacks.</p>
</body>
</html>