[Pkg-javascript-commits] [sockjs-client] 219/434: Don't duplicate amendUrl tests.

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:15 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 cb24860eaf5737ab1b5a8e57019839a14c05edca
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Mon Nov 28 15:33:24 2011 +0000

    Don't duplicate amendUrl tests.
---
 tests/html/src/tests.coffee | 25 -------------------------
 1 file changed, 25 deletions(-)

diff --git a/tests/html/src/tests.coffee b/tests/html/src/tests.coffee
index d481555..2ed89e6 100644
--- a/tests/html/src/tests.coffee
+++ b/tests/html/src/tests.coffee
@@ -365,31 +365,6 @@ for protocol in protocols
 
 module('other')
 
-test "amending url", ->
-    dl = document.location
-
-    r = new SockJS('//blah:1/abc', [])
-    equal(r._base_url, dl.protocol + '//blah:1/abc')
-
-    r = new SockJS('/abc', [])
-    equal(r._base_url, dl.protocol + '//' + dl.host + '/abc')
-
-    r = new SockJS('http://a:1/abc', [])
-    equal(r._base_url, 'http://a:1/abc')
-
-    r = new SockJS('http://a:1/abc/', [])
-    equal(r._base_url, 'http://a:1/abc')
-
-    r = new SockJS('http://a:1/abc//', [])
-    equal(r._base_url, 'http://a:1/abc')
-
-    t = ->
-        new SockJS('', [])
-    raises(t, 'Wrong url')
-    t = ->
-        new SockJS(false, [])
-    raises(t, 'Wrong url')
-
 test "EventEmitter", ->
     expect(4)
     r = new SockJS('//blah/abc', [])

-- 
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