blob: 2e18173556433893795d0caa62bcfe746e73953a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// META: title=EventSource: Accept header
var test = async_test()
test.step(function() {
var source = new EventSource("resources/accept.event_stream?pipe=sub")
source.onmessage = function(e) {
test.step(function() {
assert_equals(e.data, "text/event-stream")
this.close()
}, this)
test.done()
}
})
|