blob: b70ba89c253b4df08de48ead5cbae7e6b5b7d672 [file] [log] [blame]
Andrew Top61a84952019-04-30 15:07:33 -07001<!doctype html>
2<html>
3 <head>
4 <title>EventSource: leading space</title>
5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script>
7 </head>
8 <body>
9 <div id="log"></div>
10 <script>
11 var test = async_test()
12 test.step(function() {
13 var source = new EventSource("resources/message.py?message=data%3A%09test%0Ddata%3A%20%0Adata%3Atest")
14 source.onmessage = function(e) {
15 test.step(function() {
16 assert_equals("\ttest\n\ntest", e.data)
17 source.close()
18 })
19 test.done()
20 }
21 })
22 </script>
23 <!-- also used a CR as newline once -->
24 </body>
25</html>
26