OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <script src="../../js-test-resources/js-test-pre.js"></script> | 5 <script src="../../js-test-resources/js-test-pre.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <script> | 8 <script> |
9 | 9 |
10 description("Both .URL and .url should work (for compatibility reasons)."); | 10 description("Both .URL and .url should work (for compatibility reasons)."); |
11 | 11 |
12 var url = "http://127.0.0.1:8000/eventsource/resources/event-stream.php"; | 12 var url = "http://127.0.0.1:8000/eventsource/resources/event-stream.php"; |
13 var source = new EventSource(url); | 13 var source = new EventSource(url); |
14 | 14 |
15 shouldBeEqualToString("source.URL", url); | 15 shouldBeEqualToString("source.URL", url); |
16 shouldBeEqualToString("source.url", url); | 16 shouldBeEqualToString("source.url", url); |
17 shouldBeTrue("source.URL === source.url"); | 17 shouldBeTrue("source.URL === source.url"); |
18 | 18 |
19 </script> | 19 </script> |
20 <script src="../../js-test-resources/js-test-post.js"></script> | |
21 </body> | 20 </body> |
22 </html> | 21 </html> |
OLD | NEW |