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

Unified Diff: chrome/test/data/http/tests/wss.html

Issue 9959062: browser_tests to access wss:// after proceeds anyway (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add copyright to echo_wsh.py (copied from PRESUBMIT.py) Created 8 years, 8 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/websocket/tests/echo_wsh.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/http/tests/wss.html
diff --git a/chrome/test/data/http/tests/wss.html b/chrome/test/data/http/tests/wss.html
new file mode 100644
index 0000000000000000000000000000000000000000..cef7fa796edfb3f264e245f38bddaf9a6429666b
--- /dev/null
+++ b/chrome/test/data/http/tests/wss.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>test wss connection</title>
+<script type="text/javascript">
+
+var href = window.location.href;
+var portBegin = href.lastIndexOf(':') + 1;
+var portEnd = href.lastIndexOf('/');
+var port = href.slice(portBegin, portEnd);
+var url = 'wss://localhost:' + port + '/websocket/tests/echo';
+
+// Do connection test.
+var ws = new WebSocket(url);
+
+ws.onopen = function()
+{
+ // Set document title to 'PASS'. The test observer catches this title changes
+ // to know the result.
+ document.title = 'PASS';
+}
+
+ws.onclose = function()
+{
+ // Set document title to 'FAIL'.
+ document.title = 'FAIL';
+}
+
+function timeOutCallback()
+{
+ // Set document title to 'FAIL'.
+ document.title = 'FAIL';
+}
+
+setTimeout(timeOutCallback, 3000);
+
+</script>
+</head>
+</html>
« no previous file with comments | « chrome/test/data/http/tests/websocket/tests/echo_wsh.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698