Commit 82676ad4 authored by Mathias Bynens's avatar Mathias Bynens Committed by Commit Bot

Remove BigInt-in-DevTools-Console test

This test is now captured as an e2e test in the DevTools repository:
https://source.chromium.org/chromium/chromium/src/+/master:third_party/devtools-frontend/src/test/e2e/console/console-message-format_test.ts;l=11-21;drc=869374bcab6fa261360d6cd62fd135898274204d

Bug: chromium:1099603
Change-Id: I1e109c0e6d87d38b621acafca41f7e49cc2abe17
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2270058
Auto-Submit: Mathias Bynens <mathias@chromium.org>
Reviewed-by: default avatarPeter Marshall <petermarshall@chromium.org>
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#782905}
parent 67b7a674
// Copyright 2018 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.
// TODO(luoe): once BigInts are on by default, merge this test into
// http/tests/devtools/console/console-format.js
(async function() {
TestRunner.addResult('Tests that console properly displays BigInts.\n');
await TestRunner.loadModule('console_test_runner');
await TestRunner.showPanel('console');
await TestRunner.evaluateInPagePromise(`
var wrappedBigInt = Object(BigInt(2));
console.log(1n);
console.log(wrappedBigInt);
console.log([1n]);
console.log([wrappedBigInt]);
console.log(null, 1n, wrappedBigInt);
console.log('%d %i %d %i', 123n, 123n, BigInt(123), BigInt(123));
`);
await ConsoleTestRunner.dumpConsoleMessages(false, false, TestRunner.textContentWithLineBreaks);
TestRunner.addResult('Expanded all messages');
ConsoleTestRunner.expandConsoleMessages(dumpConsoleMessages);
async function dumpConsoleMessages() {
await ConsoleTestRunner.dumpConsoleMessages(false, false, TestRunner.textContentWithLineBreaks);
TestRunner.completeTest();
}
})();
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