blob: 7e178baa1192aa93e8d62ef04b8a11404c7eb4a0 [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(
`Tests that passing an object which throws on string conversion into console.log won't crash inspected Page. The test passes if it doesn't crash. Bug 57557\n`);
await TestRunner.loadModule('console_test_runner');
await TestRunner.showPanel('console');
await TestRunner.navigatePromise('resources/console-log-toString-object.html');
await TestRunner.reloadPagePromise();
ConsoleTestRunner.dumpConsoleMessages();
TestRunner.completeTest();
})();