diff options
Diffstat (limited to 'testing/web-platform/tests/eventsource/eventsource-eventtarget.any.js')
-rw-r--r-- | testing/web-platform/tests/eventsource/eventsource-eventtarget.any.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/web-platform/tests/eventsource/eventsource-eventtarget.any.js b/testing/web-platform/tests/eventsource/eventsource-eventtarget.any.js new file mode 100644 index 0000000000..b0d0017dd2 --- /dev/null +++ b/testing/web-platform/tests/eventsource/eventsource-eventtarget.any.js @@ -0,0 +1,16 @@ +// META: title=EventSource: addEventListener() + + var test = async_test() + test.step(function() { + var source = new EventSource("resources/message.py") + source.addEventListener("message", listener, false) + }) + function listener(e) { + test.step(function() { + assert_equals("data", e.data) + this.close() + }, this) + test.done() + } + + |