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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/websocket/send-onmessage-origin.html

Issue 2706013002: Added support for self.origin in Window and WorkerGlobalScope (Closed)
Patch Set: rebase-update after manifest.json changes Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/websocket/send-onmessage-origin.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/send-onmessage-origin.html b/third_party/WebKit/LayoutTests/http/tests/websocket/send-onmessage-origin.html
index 7633d2f2282ede47a501f8fc7f98d02873f7705f..96bdfd7563c86ac1622c8c395ebc122b1c82365f 100644
--- a/third_party/WebKit/LayoutTests/http/tests/websocket/send-onmessage-origin.html
+++ b/third_party/WebKit/LayoutTests/http/tests/websocket/send-onmessage-origin.html
@@ -21,7 +21,7 @@ var firstMessageToSend = "This is the first message to send to the server.";
var secondMessageToSend = "This is the second.";
// needs to be global to be accessbile from shouldBe().
var data = "";
-var origin = "";
+var wsOrigin = "";
ws.onopen = function()
{
@@ -34,14 +34,14 @@ ws.onmessage = function(messageEvent)
// The server should echo back the first message.
data = messageEvent.data;
shouldBe("data", "firstMessageToSend");
- origin = messageEvent.origin;
- shouldBeEqualToString("origin", "ws://localhost:8880");
+ wsOrigin = messageEvent.origin;
+ shouldBeEqualToString("wsOrigin", "ws://localhost:8880");
ws.onmessage = function(messageEvent) {
// The server should echo back the second message.
data = messageEvent.data;
shouldBe("data", "secondMessageToSend");
- origin = messageEvent.origin;
- shouldBeEqualToString("origin", "ws://localhost:8880");
+ wsOrigin = messageEvent.origin;
+ shouldBeEqualToString("wsOrigin", "ws://localhost:8880");
};
ws.send(secondMessageToSend);
};

Powered by Google App Engine
This is Rietveld 408576698