This repository has been archived by the owner on Jul 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
770a58d
commit 35cb5db
Showing
3 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"piping/pipe-through.any.js": { | ||
"fail": "Node does not perform a brand check for AbortSignal.prototype.aborted" | ||
}, | ||
"queuing-strategies-size-function-per-global.window.js": { | ||
"skip": "test requires an <iframe>" | ||
}, | ||
"readable-byte-streams/bad-buffers-and-views.any.js": { | ||
"skip": "Node does not have detached ArrayBuffers" | ||
}, | ||
"transferable/deserialize-error.window.js": { | ||
"skip": "test requires an <iframe>" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
'use strict'; | ||
|
||
// Flags: --expose-internals --expose_gc | ||
// Note: | ||
// - The --expose-internals flag is specific to Node.js core's | ||
// internal error system and is unnecessary for external users. | ||
// - The --expose_gc flag is specific to the WPT stream tests | ||
|
||
const { WPTRunner } = require('../common/wpt'); | ||
const runner = new WPTRunner('streams'); | ||
const whatwgStreamPath = require.resolve('../../'); | ||
|
||
runner.setFlags(['--expose-internals']); | ||
|
||
runner.setInitScript(` | ||
const { internalBinding } = require('internal/test/binding'); | ||
const { DOMException } = internalBinding('messaging'); | ||
global.DOMException = DOMException; | ||
const whatwgStream = require(${JSON.stringify(whatwgStreamPath)}); | ||
for (const [name, value] of Object.entries(whatwgStream)) { | ||
Object.defineProperty(global, name, { | ||
value, | ||
writable: true, | ||
configurable: true | ||
}); | ||
} | ||
`); | ||
|
||
runner.runJsTests(); |