Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/wpt/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -275,3 +275,9 @@ wpt_test(
config = "FileAPI-test.ts",
wpt_directory = "@wpt//:FileAPI@module",
)

wpt_test(
name = "console",
config = "console-test.ts",
wpt_directory = "@wpt//:console@module",
)
34 changes: 34 additions & 0 deletions src/wpt/console-test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright (c) 2017-2026 Cloudflare, Inc.
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
// https://opensource.org/licenses/Apache-2.0

import { type TestRunnerConfig } from 'harness/harness';

export default {
'console-is-a-namespace.any.js': {},
'console-label-conversion.any.js': {
comment:
'count, countReset, time, timeLog and timeEnd come from the V8 builtin console, which does not convert object labels with toString() or rethrow conversion errors',
expectedFailures: [
"console.count()'s label gets converted to string via label.toString() when label is an object",
'console.count() throws exceptions generated by erroneous label.toString() conversion',
"console.countReset()'s label gets converted to string via label.toString() when label is an object",
'console.countReset() throws exceptions generated by erroneous label.toString() conversion',
"console.time()'s label gets converted to string via label.toString() when label is an object",
'console.time() throws exceptions generated by erroneous label.toString() conversion',
"console.timeLog()'s label gets converted to string via label.toString() when label is an object",
'console.timeLog() throws exceptions generated by erroneous label.toString() conversion',
"console.timeEnd()'s label gets converted to string via label.toString() when label is an object",
'console.timeEnd() throws exceptions generated by erroneous label.toString() conversion',
],
},
'console-log-large-array.any.js': {},
'console-log-symbol.any.js': {},
'console-namespace-object-class-string.any.js': {},
'console-tests-historical.any.js': {},
'helper.js': {
comment: 'Helper file picked up by discovery, not a test',
omittedTests: true,
},
'idlharness.any.js': {},
} satisfies TestRunnerConfig;
Loading