[Pkg-javascript-commits] [sockjs-client] 325/434: Cosmetic: different message for config disalbed protocols
Tonnerre Lombard
tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:22 UTC 2014
This is an automated email from the git hooks/post-receive script.
tonnerre-guest pushed a commit to branch master
in repository sockjs-client.
commit 3ade163dd293c4f612bf0949be4ea67a4c9df988
Author: Marek Majkowski <majek04 at gmail.com>
Date: Wed Jan 18 13:31:58 2012 +0000
Cosmetic: different message for config disalbed protocols
---
tests/html/src/domtests.coffee | 2 +-
tests/html/src/tests.coffee | 7 +++----
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/tests/html/src/domtests.coffee b/tests/html/src/domtests.coffee
index 9b014c8..5dce96b 100644
--- a/tests/html/src/domtests.coffee
+++ b/tests/html/src/domtests.coffee
@@ -104,7 +104,7 @@ ajax_streaming_factory = (name) ->
x = new u[name]('GET', '/streaming.txt', null)
x.onchunk = (status, text) ->
equal(status, 200)
- ok(text.length <= 2049)
+ ok(text.length <= 2049, 'Most likely you\'re behind a transparent Proxy that can\'t do streaming. QUnit tests won\'t work properly. Sorry!')
delete x.onchunk
x.onfinish = (status, text) ->
equal(status, 200)
diff --git a/tests/html/src/tests.coffee b/tests/html/src/tests.coffee
index 657aae7..b99d6c7 100644
--- a/tests/html/src/tests.coffee
+++ b/tests/html/src/tests.coffee
@@ -281,13 +281,13 @@ arrIndexOf = (arr, obj) ->
test_protocol_messages = (protocol) ->
module(protocol)
- if not SockJS[protocol] or not SockJS[protocol].enabled(client_opts.sockjs_opts)
+ if not SockJS[protocol] or not SockJS[protocol].enabled()
test "[unsupported by client]", ->
log('Unsupported protocol (by client): "' + protocol + '"')
else if client_opts.disabled_transports and
arrIndexOf(client_opts.disabled_transports, protocol) isnt -1
- test "[unsupported by server]", ->
- log('Unsupported protocol (by server): "' + protocol + '"')
+ test "[disabled by config]", ->
+ log('Disabled by config: "' + protocol + '"')
else
asyncTest("echo1", factor_echo_basic(protocol))
asyncTest("echo2", factor_echo_rich(protocol))
@@ -308,4 +308,3 @@ test_protocol_messages = (protocol) ->
for protocol in protocols
test_protocol_messages(protocol)
-
--
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