blob: d7858a16c067295f62ea3928c581d8d6f99be5f3 [file] [log] [blame]
Andrew Top61a84952019-04-30 15:07:33 -07001<!DOCTYPE html>
2<html>
3 <head>
4 <meta charset=utf-8>
5 <title>EventSource: always UTF-8</title>
6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script>
8 </head>
9 <body>
10 <div id="log"></div>
11 <script>
12 async_test().step(function() {
13 var source = new EventSource("resources/message.py?mime=text/event-stream;charset=windows-1252&message=data%3Aok%E2%80%A6")
14 source.onmessage = this.step_func(function(e) {
15 assert_equals('ok…', e.data, 'decoded data')
16 source.close()
17 this.done()
18 })
19 source.onerror = this.step_func(function() {
20 assert_unreached("Got error event")
21 })
22 })
23 </script>
24 </body>
25</html>
26