[Pkg-javascript-commits] [sockjs-client] 226/350: Fix tests
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 bf4a65128089ab264c0a5a58bdf0f9b8d1b8b509
Author: Bryce Kahle <bkahle at gmail.com>
Date: Thu Oct 23 14:43:29 2014 -0400
Fix tests
---
tests/lib/iframe.js | 2 +-
tests/lib/senders.js | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/lib/iframe.js b/tests/lib/iframe.js
index e656f30..53de566 100644
--- a/tests/lib/iframe.js
+++ b/tests/lib/iframe.js
@@ -87,7 +87,7 @@ describe('iframe', function () {
case 's':
hook.iobj.loaded();
i++;
- hook.iobj.post(hook.id + ' ' + 's', testUtils.getOriginUrl());
+ hook.iobj.post(hook.id + ' ' + 's', testUtils.getSameOriginUrl());
break;
case 'e':
expect(i).to.equal(2);
diff --git a/tests/lib/senders.js b/tests/lib/senders.js
index e54af3a..5cb4148 100644
--- a/tests/lib/senders.js
+++ b/tests/lib/senders.js
@@ -8,7 +8,7 @@ var expect = require('expect.js')
function ajaxSimple (Obj) {
it('simple', function (done) {
- var x = new Obj('GET', testUtils.getOriginUrl() + '/simple.txt', null);
+ var x = new Obj('GET', testUtils.getSameOriginUrl() + '/simple.txt', null);
x.on('finish', function (status, text) {
expect(text.length).to.equal(2051);
expect(text.slice(-2)).to.equal('b\n');
@@ -19,7 +19,7 @@ function ajaxSimple (Obj) {
function ajaxStreaming (Obj) {
it('streaming', function (done) {
- var x = new Obj('GET', testUtils.getOriginUrl() + '/streaming.txt', null);
+ var x = new Obj('GET', testUtils.getSameOriginUrl() + '/streaming.txt', null);
x.on('chunk', function (status, text) {
expect(status).to.equal(200);
// 2051 because of transparent proxies
@@ -70,7 +70,7 @@ describe('Senders', function () {
ajaxSimple(XhrLocal);
ajaxStreaming(XhrLocal);
wrongPort(XhrLocal);
- wrongUrl(XhrLocal, testUtils.getOriginUrl() + '/wrong_url_indeed.txt', [0, 404]);
+ wrongUrl(XhrLocal, testUtils.getSameOriginUrl() + '/wrong_url_indeed.txt', [0, 404]);
});
describe('xdr', function () {
@@ -81,6 +81,6 @@ describe('Senders', function () {
ajaxSimple(Xdr);
ajaxStreaming(Xdr);
wrongPort(Xdr);
- wrongUrl(Xdr, testUtils.getOriginUrl() + '/wrong_url_indeed.txt', [0, 400]);
+ wrongUrl(Xdr, testUtils.getSameOriginUrl() + '/wrong_url_indeed.txt', [0, 400]);
});
});
--
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