Skip to content

Commit 92d6c82

Browse files
committed
test: run html/webappapis/timers WPT
1 parent aa58809 commit 92d6c82

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

test/wpt/test-timers.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
'use strict';
2+
3+
// Flags: --expose-internals
4+
5+
require('../common');
6+
const { WPTRunner } = require('../common/wpt');
7+
8+
const runner = new WPTRunner('html/webappapis/timers');
9+
10+
// Copy global descriptors from the global object
11+
runner.copyGlobalsFromObject(global, [
12+
'setInterval',
13+
'clearInterval',
14+
'setTimeout',
15+
'clearTimeout'
16+
]);
17+
18+
runner.runJsTests();

0 commit comments

Comments
 (0)