diff options
Diffstat (limited to 'test/wpt/test-timers.js')
-rw-r--r-- | test/wpt/test-timers.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/wpt/test-timers.js b/test/wpt/test-timers.js new file mode 100644 index 0000000000..a9fc262d3b --- /dev/null +++ b/test/wpt/test-timers.js @@ -0,0 +1,18 @@ +'use strict'; + +// Flags: --expose-internals + +require('../common'); +const { WPTRunner } = require('../common/wpt'); + +const runner = new WPTRunner('html/webappapis/timers'); + +// Copy global descriptors from the global object +runner.copyGlobalsFromObject(global, [ + 'setInterval', + 'clearInterval', + 'setTimeout', + 'clearTimeout' +]); + +runner.runJsTests(); |