blob: 4397c05146f97900f4cdab4e658e2cb82be62373 [file]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(async function() {
TestRunner.addResult(`Tests exception message with empty stack in console contains async stack trace.\n`);
await TestRunner.loadModule('console_test_runner');
await TestRunner.showPanel('console');
await TestRunner.DebuggerAgent.setAsyncCallStackDepth(200);
ConsoleTestRunner.waitUntilNthMessageReceived(1, step2);
TestRunner.evaluateInPage('setTimeout("~", 0)');
function step2() {
ConsoleTestRunner.expandConsoleMessages(step3);
}
function step3() {
ConsoleTestRunner.dumpConsoleMessagesIgnoreErrorStackFrames();
TestRunner.completeTest();
}
})();