Commit 3bd630240bd for nodejs
commit 3bd630240bdeed35d2f28e73577d93dc036f8ac5
Author: Aviv Keller <me@aviv.sh>
Date: Fri Nov 6 12:13:51 2026 -0500
test: use experimental flags in wpt tests
Signed-off-by: avivkeller <me@aviv.sh>
PR-URL: https://github.com/nodejs/node/pull/67258
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
Reviewed-By: Jason Zhang <xzha4350@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
diff --git a/test/wpt/status/workers.json b/test/wpt/status/workers.json
index 015ac98d008..e7b0cf2fb1d 100644
--- a/test/wpt/status/workers.json
+++ b/test/wpt/status/workers.json
@@ -16,10 +16,9 @@
},
"constructors/Worker/expected-self-properties.worker.js": {
"fail": {
- "note": "XMLHttpRequest and EventSource are not implemented",
+ "note": "XMLHttpRequest is not implemented",
"expected": [
- "existence of XMLHttpRequest",
- "existence of EventSource"
+ "existence of XMLHttpRequest"
]
}
},
@@ -112,7 +111,7 @@
},
"semantics/interface-objects/001.worker.js": {
"fail": {
- "note": "Canvas, XHR, EventSource, PromiseRejectionEvent, ProgressEvent, the File API reader classes and IndexedDB are not implemented",
+ "note": "Canvas, XHR, PromiseRejectionEvent, ProgressEvent, the File API reader classes and IndexedDB are not implemented",
"expected": [
"The ImageData interface object should be exposed.",
"The ImageBitmap interface object should be exposed.",
@@ -121,7 +120,6 @@
"The TextMetrics interface object should be exposed.",
"The Path2D interface object should be exposed.",
"The PromiseRejectionEvent interface object should be exposed.",
- "The EventSource interface object should be exposed.",
"The XMLHttpRequestEventTarget interface object should be exposed.",
"The XMLHttpRequestUpload interface object should be exposed.",
"The XMLHttpRequest interface object should be exposed.",
diff --git a/test/wpt/test-workers.js b/test/wpt/test-workers.js
index 21ec86057b6..2249cbeff71 100644
--- a/test/wpt/test-workers.js
+++ b/test/wpt/test-workers.js
@@ -5,5 +5,6 @@ const { WPTRunner } = require('../common/wpt');
const runner = new WPTRunner('workers');
+runner.setFlags(['--experimental-eventsource']);
runner.pretendGlobalThisAs('Window');
runner.runJsTests();