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

Unified Diff: chrome/test/data/ssl/wss_close.html

Issue 11085039: WebSocket test server migration on browser_tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: protected -> private Created 8 years, 2 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
« no previous file with comments | « chrome/test/data/http/tests/ws.html ('k') | chrome/test/data/ssl/wss_close_slave.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/ssl/wss_close.html
diff --git a/chrome/test/data/ssl/wss_close.html b/chrome/test/data/ssl/wss_close.html
index 0df543195999d066fc4d2dd47240c53a36297650..ebdc4315f1a7e2113523470d69a57b26b0ba8c0d 100644
--- a/chrome/test/data/ssl/wss_close.html
+++ b/chrome/test/data/ssl/wss_close.html
@@ -5,9 +5,12 @@
<script type="text/javascript">
var href = window.location.href;
+var hostBegin = href.indexOf('/') + 2;
+var hostEnd = href.lastIndexOf(':');
+var host = href.slice(hostBegin, hostEnd);
var queryBegin = href.lastIndexOf('?') + 1;
var port = href.slice(queryBegin);
-var url = 'wss://localhost:' + port;
+var url = 'wss://' + host + ':' + port;
// Do connection test.
var ws = new WebSocket(url);
« no previous file with comments | « chrome/test/data/http/tests/ws.html ('k') | chrome/test/data/ssl/wss_close_slave.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698