Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /eventsource/dedicated-worker/eventsource-eventtarget.worker.html - WPT Dashboard Interop Dashboard
importScripts("/resources/testharness.js");
async_test(function() {
var source = new EventSource("../resources/message.py")
source.addEventListener("message", this.step_func_done(function(e) {
assert_equals(e.data, 'data');
source.close();
}), false)
}, "dedicated worker - EventSource: addEventListener()");
done();