Skip to content

Commit

Permalink
test: run html/webappapis/microtask-queuing WPT
Browse files Browse the repository at this point in the history
PR-URL: #25616
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gus Caplan <me@gus.host>
  • Loading branch information
joyeecheung authored and MylesBorins committed Jan 24, 2019
1 parent 572a70f commit 74ee8d3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/wpt/status/html/webappapis/microtask-queuing.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
13 changes: 13 additions & 0 deletions test/wpt/test-microtask-queuing.js
Original file line number Diff line number Diff line change
@@ -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();

0 comments on commit 74ee8d3

Please sign in to comment.