summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-01-02 02:00:33 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-01-02 02:00:33 +0000
commit2886280c57cb77b6e7f2bac544af5b8c23164816 (patch)
treeff59fdfe707f45a9888a3a0c53560211cbbbacd2 /test
parenta0da70849a2ede47340e75c62b92ddfe7b89829e (diff)
test runner is back up (thanks davisp), and tests pass in safari again (e4x syntax fix)
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@730656 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rwxr-xr-xtest/runner.sh2
-rw-r--r--test/test.js3
2 files changed, 2 insertions, 3 deletions
diff --git a/test/runner.sh b/test/runner.sh
index e920090d..561110a8 100755
--- a/test/runner.sh
+++ b/test/runner.sh
@@ -4,4 +4,4 @@ erlc runner.erl
erl -noshell -pa ../src/couchdb -pa ../src/mochiweb -eval "runner:run()"
-cat ../share/www/script/couch.js ../share/www/script/couch_tests.js test.js | ../src/couchdb/couchjs -
+cat ../share/www/script/couch.js ../share/www/script/couch_test_runner.js ../share/www/script/couch_tests.js test.js | ../src/couchdb/couchjs -
diff --git a/test/test.js b/test/test.js
index e47153bd..a4aa32e1 100644
--- a/test/test.js
+++ b/test/test.js
@@ -67,8 +67,7 @@ var HTTP = (function() {
var h = headers[i];
if (keymatcher.test(h)) {
var value = h.substr(key.length+2);
- value = value.slice(0, value.length-1);
- return value;
+ return value.replace(/^\s+|\s+$/g,"");
}
}
return "";