summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/eventsource/shared-worker/eventsource-eventtarget.htm
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/eventsource/shared-worker/eventsource-eventtarget.htm')
-rw-r--r--testing/web-platform/tests/eventsource/shared-worker/eventsource-eventtarget.htm40
1 files changed, 0 insertions, 40 deletions
diff --git a/testing/web-platform/tests/eventsource/shared-worker/eventsource-eventtarget.htm b/testing/web-platform/tests/eventsource/shared-worker/eventsource-eventtarget.htm
deleted file mode 100644
index f5f9439d1..000000000
--- a/testing/web-platform/tests/eventsource/shared-worker/eventsource-eventtarget.htm
+++ /dev/null
@@ -1,40 +0,0 @@
-<!--
-onconnect = function(e) {
-try {
- var port = e.ports[0]
- var source = new EventSource("../resources/message.py")
- source.addEventListener("message", listener, false)
- function listener(e) {
- port.postMessage([true, e.data])
- this.close()
- }
-} catch(e) {
- port.postMessage([false, String(e)])
-}
-}
-/*-->
-<!DOCTYPE html>
-<html>
- <head>
- <title>shared worker - EventSource: addEventListener()</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- </head>
- <body>
- <div id="log"></div>
- <script>
- var test = async_test()
- test.step(function() {
- var worker = new SharedWorker('#')
- worker.port.onmessage = function(e) {
- test.step(function() {
- assert_true(e.data[0], e.data[1])
- assert_equals(e.data[1], 'data', 'e.data')
- })
- test.done()
- }
- })
- </script>
- </body>
-</html>
-<!--*/ //-->