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 @@ -271,3 +271,9 @@ wpt_test(
extra_wpt_directories = ["@wpt//:fetch/data-urls@module"],
wpt_directory = "@wpt//:html/webappapis/atob@module",
)

wpt_test(
name = "html/webappapis/timers",
config = "html/webappapis/timers-test.ts",
wpt_directory = "@wpt//:html/webappapis/timers@module",
)
30 changes: 30 additions & 0 deletions src/wpt/html/webappapis/timers-test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// 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 {
'clearinterval-from-callback.any.js': {},
'cleartimeout-clearinterval.any.js': {},
'evil-spec-example.any.js': {
comment:
'Passes a non-function handler, which WebIDL stringifies and evaluates as code. workerd does not support string handlers because it disallows eval; setTimeout throws a TypeError at the top level.',
omittedTests: true,
},
'missing-timeout-setinterval.any.js': {},
'negative-setinterval.any.js': {},
'negative-settimeout.any.js': {},
'setinterval-settimeout-clamping.any.js': {},
'type-long-setinterval.any.js': {
comment:
'Hangs: workerd takes the setInterval delay as a double instead of converting it to a WebIDL long, so a delay of 2 ** 32 waits about 49 days instead of wrapping to 0. done() is never called, so the single test never completes.',
disabledTests: true,
},
'type-long-settimeout.any.js': {
comment:
'Hangs: workerd takes the setTimeout delay as a double instead of converting it to a WebIDL long, so a delay of 2 ** 32 waits about 49 days instead of wrapping to 0. done() is never called, so the single test never completes.',
disabledTests: true,
},
'zero-settimeout.any.js': {},
} satisfies TestRunnerConfig;
Loading