blob: b096a9e789636b4248b8a7293f910f7032777259 [file] [log] [blame]
// 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(
`Test that browser won't crash if inspector is opened for a page that fails to convert alert() argument to string. The test passes if it doesn't crash. Bug 60541\n`);
await TestRunner.loadModule('console_test_runner');
await TestRunner.showPanel('console');
await TestRunner.navigatePromise('resources/alert-toString-exception.html');
await TestRunner.reloadPagePromise();
ConsoleTestRunner.dumpConsoleMessages();
TestRunner.completeTest();
})();