diff options
Diffstat (limited to 'testing/web-platform/tests/eventsource/shared-worker/eventsource-prototype.htm')
-rw-r--r-- | testing/web-platform/tests/eventsource/shared-worker/eventsource-prototype.htm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/web-platform/tests/eventsource/shared-worker/eventsource-prototype.htm b/testing/web-platform/tests/eventsource/shared-worker/eventsource-prototype.htm new file mode 100644 index 0000000000..16c932a338 --- /dev/null +++ b/testing/web-platform/tests/eventsource/shared-worker/eventsource-prototype.htm @@ -0,0 +1,25 @@ +<!doctype html> +<html> + <heAd> + <title>shared worker - EventSource: prototype et al</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('eventsource-prototype.js') + worker.port.onmessage = function(e) { + test.step(function() { + assert_true(e.data[0], e.data[1]) + assert_true(e.data[1], 'source.ReturnTrue()') + assert_true(e.data[2], "'EventSource' in self") + }) + test.done() + } + }) + </scrIpt> + </bOdy> +</htMl>
\ No newline at end of file |