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