diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-01-22 03:12:14 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-02-01 00:52:00 +0800 |
commit | d9066bef2ca1c5cfddab771266b821186cda3f56 (patch) | |
tree | eeeb50eeab6e1348a742d78aeda5134dcd990c07 /test | |
parent | 476531ba42a4ba09464132ece951e85af8d01e1a (diff) | |
download | android-node-v8-d9066bef2ca1c5cfddab771266b821186cda3f56.tar.gz android-node-v8-d9066bef2ca1c5cfddab771266b821186cda3f56.tar.bz2 android-node-v8-d9066bef2ca1c5cfddab771266b821186cda3f56.zip |
test: run html/webappapis/timers WPT
PR-URL: https://github.com/nodejs/node/pull/25618
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/wpt/status/html/webappapis/timers.json | 1 | ||||
-rw-r--r-- | test/wpt/test-timers.js | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/test/wpt/status/html/webappapis/timers.json b/test/wpt/status/html/webappapis/timers.json new file mode 100644 index 0000000000..0967ef424b --- /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 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(); |