format-newlines.any.js (433B)
1 // META: title=EventSource: newline fest 2 var test = async_test() 3 test.step(function() { 4 var source = new EventSource("resources/message.py?message=data%3Atest%0D%0Adata%0Adata%3Atest%0D%0A%0D&newline=none") 5 source.onmessage = function(e) { 6 test.step(function() { 7 assert_equals("test\n\ntest", e.data) 8 source.close() 9 }) 10 test.done() 11 } 12 })