blob: 391fa4b1933a4458f9ffd035f5e07f1d8664bd4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// META: title=EventSource: onmessage
var test = async_test()
test.step(function() {
var source = new EventSource("resources/message.py")
source.onmessage = function(e) {
test.step(function() {
assert_equals("data", e.data)
source.close()
})
test.done()
}
})
|