[Pkg-javascript-commits] [sockjs-client] 230/350: don't run sender streaming test if cors not supported
tonnerre at ancient-solutions.com
tonnerre at ancient-solutions.com
Fri Aug 5 01:04:24 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 d453c377de7fa1722f8a415c3e260019f5aec3fc
Author: Bryce Kahle <bkahle at gmail.com>
Date: Thu Oct 23 17:09:15 2014 -0400
don't run sender streaming test if cors not supported
---
tests/lib/senders.js | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/lib/senders.js b/tests/lib/senders.js
index 9dc2621..063be73 100644
--- a/tests/lib/senders.js
+++ b/tests/lib/senders.js
@@ -3,6 +3,7 @@
var expect = require('expect.js')
, testUtils = require('./test-utils')
, XhrLocal = require('../../lib/transport/sender/xhr-local')
+ , XhrCors = require('../../lib/transport/sender/xhr-cors')
, Xdr = require('../../lib/transport/sender/xdr')
;
@@ -18,6 +19,11 @@ function ajaxSimple (Obj) {
}
function ajaxStreaming (Obj) {
+ if (!XhrCors.enabled) {
+ it('streaming [unsupported]');
+ return;
+ }
+
it('streaming', function (done) {
var x = new Obj('GET', testUtils.getSameOriginUrl() + '/streaming.txt', null);
var i = 0;
--
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