From 74ee8d3b7262007476d76fc3b893eb56ce71fcdc Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Tue, 22 Jan 2019 02:51:22 +0800 Subject: [PATCH] test: run html/webappapis/microtask-queuing WPT PR-URL: https://github.com/nodejs/node/pull/25616 Reviewed-By: Anna Henningsen Reviewed-By: Gus Caplan --- .../status/html/webappapis/microtask-queuing.json | 8 ++++++++ test/wpt/test-microtask-queuing.js | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 test/wpt/status/html/webappapis/microtask-queuing.json create mode 100644 test/wpt/test-microtask-queuing.js diff --git a/test/wpt/status/html/webappapis/microtask-queuing.json b/test/wpt/status/html/webappapis/microtask-queuing.json new file mode 100644 index 00000000000000..dc13452b99187f --- /dev/null +++ b/test/wpt/status/html/webappapis/microtask-queuing.json @@ -0,0 +1,8 @@ +{ + "queue-microtask-exceptions.any.js": { + "fail": "Node.js does not have a global addEventListener function" + }, + "queue-microtask.window.js": { + "fail": "MutationObserver is not implemented" + } +} diff --git a/test/wpt/test-microtask-queuing.js b/test/wpt/test-microtask-queuing.js new file mode 100644 index 00000000000000..a600bf58d7c700 --- /dev/null +++ b/test/wpt/test-microtask-queuing.js @@ -0,0 +1,13 @@ +'use strict'; + +// Flags: --expose-internals + +require('../common'); +const { WPTRunner } = require('../common/wpt'); + +const runner = new WPTRunner('html/webappapis/microtask-queuing'); + +// Copy global descriptors from the global object +runner.copyGlobalsFromObject(global, ['queueMicrotask']); + +runner.runJsTests();