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