Skip to content

Commit 74ee8d3

Browse files
joyeecheungMylesBorins
authored andcommitted
test: run html/webappapis/microtask-queuing WPT
PR-URL: #25616 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gus Caplan <me@gus.host>
1 parent 572a70f commit 74ee8d3

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"queue-microtask-exceptions.any.js": {
3+
"fail": "Node.js does not have a global addEventListener function"
4+
},
5+
"queue-microtask.window.js": {
6+
"fail": "MutationObserver is not implemented"
7+
}
8+
}

test/wpt/test-microtask-queuing.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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/microtask-queuing');
9+
10+
// Copy global descriptors from the global object
11+
runner.copyGlobalsFromObject(global, ['queueMicrotask']);
12+
13+
runner.runJsTests();

0 commit comments

Comments
 (0)