Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Side by Side Diff: LayoutTests/http/tests/eventsource/eventsource-url-attribute.html

Issue 347043002: Rework EventSource tests for better Worker test coverage. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move out CORS tests Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <script src="/js-test-resources/js-test.js"></script>
3 <head> 3 <script src="script-tests/eventsource-url-attribute.js"></script>
4 <meta charset="utf-8">
5 <script src="../../js-test-resources/js-test.js"></script>
6 </head>
7 <body>
8 <script>
9
10 description("Both .URL and .url should work (for compatibility reasons).");
11
12 var url = "http://127.0.0.1:8000/eventsource/resources/event-stream.php";
13 var source = new EventSource(url);
14
15 shouldBeEqualToString("source.URL", url);
16 shouldBeEqualToString("source.url", url);
17 shouldBeTrue("source.URL === source.url");
18
19 </script>
20 </body>
21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698