summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/eventsource/dedicated-worker/eventsource-eventtarget.worker.js
blob: 73b30556c497863efc611cbf35e81f7953883b3e (plain)
1
2
3
4
5
6
7
8
9
10
11
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();