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

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

Issue 973873002: Remove deprecated URL attribute alias from EventSource interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 9 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 | Annotate | Revision Log
OLDNEW
1 if (self.importScripts) 1 if (self.importScripts)
2 importScripts("/js-test-resources/js-test.js"); 2 importScripts("/js-test-resources/js-test.js");
3 3
4 description("Both .URL and .url should work (for compatibility reasons)."); 4 description("Only .url should work, previously supported .URL should not.");
5 5
6 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";
7 var source = new EventSource(url); 7 var source = new EventSource(url);
8 8
9 shouldBeEqualToString("source.URL", url);
10 shouldBeEqualToString("source.url", url); 9 shouldBeEqualToString("source.url", url);
11 shouldBeTrue("source.URL === source.url"); 10 shouldBeUndefined("source.URL");
12 finishJSTest(); 11 finishJSTest();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698