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

Unified Diff: chrome/test/data/ssl/wss_close_slave.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/ssl/wss_close.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/ssl/wss_close_slave.html
diff --git a/chrome/test/data/ssl/wss_close_slave.html b/chrome/test/data/ssl/wss_close_slave.html
index 4ead9b5c97017c830273458e603c255cd53c425b..9bd51f775b93b102c72e0141958ad3a9dcd2b20b 100644
--- a/chrome/test/data/ssl/wss_close_slave.html
+++ b/chrome/test/data/ssl/wss_close_slave.html
@@ -4,9 +4,12 @@
<title>slave tab pages which create hanging wss connection</title>
<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;
var ws;
var cb = function() {
ws = new WebSocket(url);
« no previous file with comments | « chrome/test/data/ssl/wss_close.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698