eventsource-onmessage.any.js (357B)
1 // META: title=EventSource: onmessage 2 3 var test = async_test() 4 test.step(function() { 5 var source = new EventSource("resources/message.py") 6 source.onmessage = function(e) { 7 test.step(function() { 8 assert_equals("data", e.data) 9 source.close() 10 }) 11 test.done() 12 } 13 })