[Pkg-javascript-commits] [sockjs-client] 325/350: Fix test page transport specification. Add web worker test to index.
tonnerre at ancient-solutions.com
tonnerre at ancient-solutions.com
Fri Aug 5 01:04:35 UTC 2016
This is an automated email from the git hooks/post-receive script.
tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.
commit 390e1d7d8137e16c98638cafdbd3f857fd8f0f39
Author: Bryce Kahle <bkahle at gmail.com>
Date: Sat Aug 1 19:21:10 2015 -0700
Fix test page transport specification. Add web worker test to index.
---
tests/html/example-cursors.html | 2 +-
tests/html/index.html | 1 +
tests/html/smoke-latency.html | 2 +-
tests/html/smoke-reconnect.html | 2 +-
4 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/html/example-cursors.html b/tests/html/example-cursors.html
index 238f5f3..6ddfc3b 100644
--- a/tests/html/example-cursors.html
+++ b/tests/html/example-cursors.html
@@ -86,7 +86,7 @@
} else {
url = clientOptions.url;
}
- sjs = new SockJS(url + '/broadcast', null, transport);
+ sjs = new SockJS(url + '/broadcast', null, { transports: transport });
sjs.onopen = onopen
sjs.onclose = onclose;
sjs.onmessage = xonmessage;
diff --git a/tests/html/index.html b/tests/html/index.html
index addfbd8..a37568d 100644
--- a/tests/html/index.html
+++ b/tests/html/index.html
@@ -14,6 +14,7 @@
<li><a href="example-cursors.html">Cursors example</a></li>
<li><a href="smoke-latency.html">Smoketest: latency</a></li>
<li><a href="smoke-reconnect.html">Smoketest: reconnect</a></li>
+ <li><a href="web-worker.html">Web Worker</a></li>
</ul>
</body>
</html>
diff --git a/tests/html/smoke-latency.html b/tests/html/smoke-latency.html
index f12f131..97b7904 100644
--- a/tests/html/smoke-latency.html
+++ b/tests/html/smoke-latency.html
@@ -90,7 +90,7 @@
} else {
url = clientOptions.url + '/echo';
}
- sjs = new SockJS(url, null, transport);
+ sjs = new SockJS(url, null, { transports: transport });
sjs.onopen = onopen
sjs.onclose = onclose;
sjs.onmessage = xonmessage;
diff --git a/tests/html/smoke-reconnect.html b/tests/html/smoke-reconnect.html
index 334044c..2ef4f0a 100644
--- a/tests/html/smoke-reconnect.html
+++ b/tests/html/smoke-reconnect.html
@@ -69,7 +69,7 @@
} else {
url = clientOptions.url;
}
- sjs = new SockJS(clientOptions.url + '/echo', null, transport);
+ sjs = new SockJS(clientOptions.url + '/echo', null, { transports: transport });
sjs.onopen = onopen
sjs.onclose = onclose;
} else {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git
More information about the Pkg-javascript-commits
mailing list