[Pkg-javascript-commits] [sockjs-client] 232/434: One more test for amendUrl.
Tonnerre Lombard
tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:16 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 e7e69b2b7433bbc9abd4f911c0f8d099d2a2f27c
Author: Marek Majkowski <majek04 at gmail.com>
Date: Wed Nov 30 17:45:10 2011 +0000
One more test for amendUrl.
---
tests/html/src/unittests.coffee | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/html/src/unittests.coffee b/tests/html/src/unittests.coffee
index caea176..415ddcb 100644
--- a/tests/html/src/unittests.coffee
+++ b/tests/html/src/unittests.coffee
@@ -44,6 +44,7 @@ test 'amendUrl', ->
equal(u.amendUrl('//blah:1/abc'), dl.protocol + '//blah:1/abc')
equal(u.amendUrl('/abc'), dl.protocol + '//' + dl.host + '/abc')
+ equal(u.amendUrl('/'), dl.protocol + '//' + dl.host)
equal(u.amendUrl('http://a:1/abc'), 'http://a:1/abc')
equal(u.amendUrl('http://a:1/abc/'), 'http://a:1/abc')
equal(u.amendUrl('http://a:1/abc//'), 'http://a:1/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