Commit 64c6b12d authored by Tim van der Lippe's avatar Tim van der Lippe Committed by Commit Bot

Remove DevTools startup layout test

This test asserts behavior that is undesirable. Therefore, I propose to
remove it alltogether.

R=yangguo@chromium.org

Bug: 1044632
Change-Id: Ibe0acd0010c6fead07c7b1847667f187f30f38ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2085192
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: default avatarPaul Lewis <aerotwist@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746753}
parent c28b1298
Tests that console will NOT contain stack trace for exception thrown when inspector front-end was closed. Bug 109427. https://bugs.webkit.org/show_bug.cgi?id=109427
SUCCESS: message doesn't have stack trace
TEST COMPLETE.
// 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() {
await TestRunner.setupStartupTest('resources/console-exception-while-no-inspector.html');
TestRunner.addResult(
`Tests that console will NOT contain stack trace for exception thrown when inspector front-end was closed. Bug 109427. https://bugs.webkit.org/show_bug.cgi?id=109427\n`);
await TestRunner.waitForEvent(SDK.ConsoleModel.Events.MessageAdded, SDK.consoleModel);
var message = SDK.consoleModel.messages()[0];
var stack = message.stackTrace;
if (stack && stack.callFrames.length)
TestRunner.addResult('FAIL: found message with stack trace');
else
TestRunner.addResult('SUCCESS: message doesn\'t have stack trace');
TestRunner.addResult('TEST COMPLETE.');
TestRunner.completeTest();
})();
<html>
<head>
<script>
function throwException() {
throw 2013;
}
function baz()
{
throwException();
}
function bar(callback)
{
callback()
}
function foo()
{
bar(baz.bind(this));
}
function handleLoaded()
{
setTimeout(showInspectorAndRunTest, 0);
foo();
}
function showInspectorAndRunTest()
{
testRunner.inspectSecondaryWindow();
}
</script>
</head>
<body onload="handleLoaded()">
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment