From 5bffcf62465db170525df924f1662a62044f7e85 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Tue, 22 Jan 2019 03:12:14 +0800 Subject: [PATCH] test: run html/webappapis/timers WPT PR-URL: https://github.com/nodejs/node/pull/25618 Reviewed-By: James M Snell --- test/wpt/status/html/webappapis/timers.json | 1 + test/wpt/test-timers.js | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 test/wpt/status/html/webappapis/timers.json create mode 100644 test/wpt/test-timers.js diff --git a/test/wpt/status/html/webappapis/timers.json b/test/wpt/status/html/webappapis/timers.json new file mode 100644 index 00000000000000..0967ef424bce67 --- /dev/null +++ b/test/wpt/status/html/webappapis/timers.json @@ -0,0 +1 @@ +{} diff --git a/test/wpt/test-timers.js b/test/wpt/test-timers.js new file mode 100644 index 00000000000000..a9fc262d3b1beb --- /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();