From 1b8f4c9a167b8c83c00e5213d0ff25d48906d89b Mon Sep 17 00:00:00 2001 From: avivkeller Date: Wed, 4 Nov 2026 11:37:51 -0500 Subject: [PATCH] test: use experimental flags in wpt tests Signed-off-by: avivkeller --- test/wpt/status/workers.json | 8 +++----- test/wpt/test-workers.js | 1 + 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/test/wpt/status/workers.json b/test/wpt/status/workers.json index 015ac98d0084..e7b0cf2fb1d9 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 21ec86057b6e..2249cbeff716 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();