servo/tests/wpt/web-platform-tests/eventsource/format-field-event-empty.any.js

13 lines
404 B
JavaScript

// META: title=EventSource: empty "event" field
var test = async_test()
test.step(function() {
var source = new EventSource("resources/message.py?message=event%3A%20%0Adata%3Adata")
source.onmessage = function(e) {
test.step(function() {
assert_equals("data", e.data)
this.close()
}, this)
test.done()
}
})