diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-10-31 18:16:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 18:16:27 +0100 |
commit | 39716183ac557610bf1e8c48b0663b2da1f570e7 (patch) | |
tree | bf693f02c46274cad5791102ef5012a4daa67ce4 /tools | |
parent | 646afdf259e9e25b59c5305aff231e131ea2fc52 (diff) |
feat(ext/web): EventSource (#14730)
Closes #10298
---------
Co-authored-by: Aapo Alasuutari <aapo.alasuutari@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/wpt/expectation.json | 90 | ||||
-rw-r--r-- | tools/wpt/runner.ts | 5 |
2 files changed, 91 insertions, 4 deletions
diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json index 8c3ee870b..9d016d282 100644 --- a/tools/wpt/expectation.json +++ b/tools/wpt/expectation.json @@ -8211,7 +8211,6 @@ ], "expected-self-properties.worker.html": [ "existence of XMLHttpRequest", - "existence of EventSource", "existence of SharedWorker" ], "unexpected-self-properties.worker.html": true @@ -8302,7 +8301,6 @@ "The CanvasPath interface object should be exposed.", "The TextMetrics interface object should be exposed.", "The Path2D 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.", @@ -10643,5 +10641,91 @@ "media": { "media-sniff.window.html": false } + }, + "eventsource": { + "dedicated-worker": { + "eventsource-eventtarget.worker.html": true, + "eventsource-constructor-no-new.any.html": true, + "eventsource-constructor-no-new.any.worker.html": true + }, + "event-data.any.html": true, + "event-data.any.worker.html": true, + "eventsource-constructor-empty-url.any.html": true, + "eventsource-constructor-empty-url.any.worker.html": true, + "eventsource-constructor-url-bogus.any.html": true, + "eventsource-constructor-url-bogus.any.worker.html": true, + "eventsource-eventtarget.any.html": true, + "eventsource-eventtarget.any.worker.html": true, + "eventsource-onmessage-trusted.any.html": true, + "eventsource-onmessage-trusted.any.worker.html": true, + "eventsource-onmessage.any.html": true, + "eventsource-onmessage.any.worker.html": true, + "eventsource-onopen.any.html": true, + "eventsource-onopen.any.worker.html": true, + "eventsource-prototype.any.html": true, + "eventsource-prototype.any.worker.html": true, + "eventsource-request-cancellation.window.any.html": false, + "eventsource-request-cancellation.window.any.worker.html": false, + "eventsource-url.any.html": true, + "eventsource-url.any.worker.html": true, + "format-bom-2.any.html": true, + "format-bom-2.any.worker.html": true, + "format-bom.any.html": true, + "format-bom.any.worker.html": true, + "format-comments.any.html": true, + "format-comments.any.worker.html": true, + "format-data-before-final-empty-line.any.html": true, + "format-data-before-final-empty-line.any.worker.html": true, + "format-field-data.any.html": true, + "format-field-data.any.worker.html": true, + "format-field-event-empty.any.html": true, + "format-field-event-empty.any.worker.html": true, + "format-field-event.any.html": true, + "format-field-event.any.worker.html": true, + "format-field-id-2.any.html": true, + "format-field-id-2.any.worker.html": true, + "format-field-id-3.window.html": true, + "format-field-id-null.window.html": true, + "format-field-id.any.html": true, + "format-field-id.any.worker.html": true, + "format-field-parsing.any.html": true, + "format-field-parsing.any.worker.html": true, + "format-field-retry-bogus.any.html": true, + "format-field-retry-bogus.any.worker.html": true, + "format-field-retry-empty.any.html": true, + "format-field-retry-empty.any.worker.html": true, + "format-field-retry.any.html": true, + "format-field-retry.any.worker.html": true, + "format-field-unknown.any.html": true, + "format-field-unknown.any.worker.html": true, + "format-leading-space.any.html": true, + "format-leading-space.any.worker.html": true, + "format-mime-bogus.any.html": true, + "format-mime-bogus.any.worker.html": true, + "format-mime-trailing-semicolon.any.html": true, + "format-mime-trailing-semicolon.any.worker.html": true, + "format-mime-valid-bogus.any.html": true, + "format-mime-valid-bogus.any.worker.html": true, + "format-newlines.any.html": true, + "format-newlines.any.worker.html": true, + "format-null-character.any.html": true, + "format-null-character.any.worker.html": true, + "format-utf-8.any.html": true, + "format-utf-8.any.worker.html": true, + "request-accept.any.html": true, + "request-accept.any.worker.html": true, + "request-cache-control.any.html": false, + "request-cache-control.any.worker.html": false, + "request-credentials.window.any.html": false, + "request-credentials.window.any.worker.html": false, + "request-redirect.window.any.html": false, + "request-redirect.window.any.worker.html": false, + "eventsource-close.window.html": false, + "eventsource-constructor-document-domain.window.html": false, + "eventsource-constructor-non-same-origin.window.html": false, + "eventsource-constructor-stringify.window.html": false, + "eventsource-cross-origin.window.html": false, + "eventsource-reconnect.window.html": false, + "request-status-error.window.html": false } -}
\ No newline at end of file +} diff --git a/tools/wpt/runner.ts b/tools/wpt/runner.ts index fb39ddfa4..472449712 100644 --- a/tools/wpt/runner.ts +++ b/tools/wpt/runner.ts @@ -186,7 +186,10 @@ async function generateBundle(location: URL): Promise<string> { if (title) { const url = new URL(`#${inlineScriptCount}`, location); inlineScriptCount++; - scriptContents.push([url.href, `globalThis.META_TITLE="${title}"`]); + scriptContents.push([ + url.href, + `globalThis.META_TITLE=${JSON.stringify(title)}`, + ]); } for (const script of scripts) { const src = script.getAttribute("src"); |