diff options
Diffstat (limited to 'testing/web-platform/tests/eventsource/dedicated-worker/eventsource-url.js')
-rw-r--r-- | testing/web-platform/tests/eventsource/dedicated-worker/eventsource-url.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/web-platform/tests/eventsource/dedicated-worker/eventsource-url.js b/testing/web-platform/tests/eventsource/dedicated-worker/eventsource-url.js new file mode 100644 index 0000000000..7a3c8030d2 --- /dev/null +++ b/testing/web-platform/tests/eventsource/dedicated-worker/eventsource-url.js @@ -0,0 +1,7 @@ +try { + var source = new EventSource("../resources/message.py") + postMessage([true, source.url]) + source.close() +} catch(e) { + postMessage([false, String(e)]) +}
\ No newline at end of file |