format-utf-8.any.js (435B)
1 // META: title=EventSource always UTF-8 2 async_test().step(function() { 3 var source = new EventSource("resources/message.py?mime=text/event-stream%3bcharset=windows-1252&message=data%3Aok%E2%80%A6") 4 source.onmessage = this.step_func(function(e) { 5 assert_equals('ok…', e.data, 'decoded data') 6 source.close() 7 this.done() 8 }) 9 source.onerror = this.step_func(function() { 10 assert_unreached("Got error event") 11 }) 12 })