-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Showing
33 changed files
with
89 additions
and
126 deletions.
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,3 @@ | ||
rules: | ||
node-core/required-modules: off | ||
node-core/require-common-first: off |
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
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
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 |
---|---|---|
@@ -1,7 +1,24 @@ | ||
{ | ||
"structured-clone.any.js": { | ||
"fail": { | ||
"expected": ["File basic"] | ||
"expected": [ | ||
"File basic", | ||
"Serializing a non-serializable platform object fails", | ||
"A subclass instance will deserialize as its closest serializable superclass", | ||
"Resizable ArrayBuffer", | ||
"Growable SharedArrayBuffer", | ||
"Length-tracking TypedArray", | ||
"Length-tracking DataView", | ||
"Serializing OOB TypedArray throws", | ||
"Serializing OOB DataView throws", | ||
"A detached ArrayBuffer cannot be transferred", | ||
"Transferring a non-transferable platform object fails", | ||
"Resizable ArrayBuffer is transferable", | ||
"Length-tracking TypedArray is transferable", | ||
"Length-tracking DataView is transferable", | ||
"Transferring OOB TypedArray throws", | ||
"Transferring OOB DataView throws" | ||
] | ||
} | ||
} | ||
} |
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
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
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 |
---|---|---|
@@ -1,8 +1 @@ | ||
{ | ||
"invoke_with_timing_attributes.worker.js": { | ||
"skip": "importScripts not supported" | ||
}, | ||
"performance-measure-invalid.worker.js": { | ||
"skip": "importScripts not supported" | ||
} | ||
} | ||
{} |
10 changes: 9 additions & 1 deletion
10
test/wpt/status/webidl/ecmascript-binding/es-exceptions.json
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 |
---|---|---|
@@ -1 +1,9 @@ | ||
{} | ||
{ | ||
"DOMException-constructor-and-prototype.any.js": { | ||
"fail": { | ||
"expected": [ | ||
"existence and property descriptor of DOMException" | ||
] | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,15 +1,7 @@ | ||
'use strict'; | ||
|
||
require('../common'); | ||
const { WPTRunner } = require('../common/wpt'); | ||
|
||
const runner = new WPTRunner('FileAPI/blob'); | ||
|
||
runner.setInitScript(` | ||
const { Blob } = require('buffer'); | ||
const { ReadableStream } = require('stream/web'); | ||
global.Blob = Blob; | ||
global.ReadableStream = ReadableStream; | ||
`); | ||
|
||
runner.runJsTests(); |
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 |
---|---|---|
@@ -1,13 +1,7 @@ | ||
'use strict'; | ||
|
||
require('../common'); | ||
const { WPTRunner } = require('../common/wpt'); | ||
|
||
const runner = new WPTRunner('webmessaging/broadcastchannel'); | ||
|
||
runner.setInitScript(` | ||
const { BroadcastChannel } = require('worker_threads'); | ||
global.BroadcastChannel = BroadcastChannel; | ||
`); | ||
|
||
runner.runJsTests(); |
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 |
---|---|---|
@@ -1,19 +1,7 @@ | ||
'use strict'; | ||
|
||
require('../common'); | ||
const { WPTRunner } = require('../common/wpt'); | ||
|
||
const runner = new WPTRunner('webidl/ecmascript-binding/es-exceptions'); | ||
|
||
runner.setFlags(['--expose-internals']); | ||
runner.setInitScript(` | ||
const { internalBinding } = require('internal/test/binding'); | ||
const { DOMException } = internalBinding('messaging'); | ||
Object.defineProperty(global, 'DOMException', { | ||
writable: true, | ||
configurable: true, | ||
value: DOMException, | ||
}); | ||
`); | ||
|
||
runner.runJsTests(); |
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
'use strict'; | ||
require('../common'); | ||
|
||
const { WPTRunner } = require('../common/wpt'); | ||
const runner = new WPTRunner('encoding'); | ||
|
||
runner.setInitScript(` | ||
const { MessageChannel } = require('worker_threads'); | ||
global.MessageChannel = MessageChannel; | ||
`); | ||
const runner = new WPTRunner('encoding'); | ||
|
||
runner.runJsTests(); |
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
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
'use strict'; | ||
|
||
require('../common'); | ||
const { WPTRunner } = require('../common/wpt'); | ||
|
||
const runner = new WPTRunner('hr-time'); | ||
|
||
runner.pretendGlobalThisAs('Window'); | ||
runner.brandCheckGlobalScopeAttribute('performance'); | ||
runner.setInitScript(` | ||
self.GLOBAL.isWorker = () => false; | ||
`); | ||
|
||
runner.runJsTests(); |
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
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 |
---|---|---|
@@ -1,36 +1,17 @@ | ||
'use strict'; | ||
|
||
require('../common'); | ||
const { WPTRunner } = require('../common/wpt'); | ||
|
||
const runner = new WPTRunner('streams'); | ||
|
||
// Set a script that will be executed in the worker before running the tests. | ||
runner.pretendGlobalThisAs('Window'); | ||
runner.setInitScript(` | ||
// Simulate global postMessage for enqueue-with-detached-buffer.window.js | ||
// Simulate globalThis postMessage for enqueue-with-detached-buffer.window.js | ||
function postMessage(value, origin, transferList) { | ||
const mc = new MessageChannel(); | ||
mc.port1.postMessage(value, transferList); | ||
mc.port2.close(); | ||
} | ||
// TODO(@jasnell): This is a bit of a hack to get the idl harness test | ||
// working. Later we should investigate a better approach. | ||
// See: https://github.com/nodejs/node/pull/39062#discussion_r659383373 | ||
Object.defineProperties(global, { | ||
DedicatedWorkerGlobalScope: { | ||
get() { | ||
// Pretend that we're a DedicatedWorker, but *only* for the | ||
// IDL harness. For everything else, keep the JavaScript shell | ||
// environment. | ||
if (new Error().stack.includes('idlharness.js')) | ||
return global.constructor; | ||
else | ||
return function() {}; | ||
} | ||
} | ||
}); | ||
`); | ||
|
||
runner.runJsTests(); |
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
Oops, something went wrong.