summaryrefslogtreecommitdiff
path: root/share/www/script
diff options
context:
space:
mode:
authorJason David Davies <jasondavies@apache.org>2009-11-26 14:33:14 +0000
committerJason David Davies <jasondavies@apache.org>2009-11-26 14:33:14 +0000
commit683834888cfad2e6da1564161eda3447620374f5 (patch)
treec7539e497019e831f15a124122dd79edbcc56da9 /share/www/script
parentff623f039a9ab209768a33f03475e5ae54f09e21 (diff)
Use TEquals() in content_negotiation test.
This gives us better error messages when the assertion fails. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@884567 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script')
-rw-r--r--share/www/script/test/content_negotiation.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/www/script/test/content_negotiation.js b/share/www/script/test/content_negotiation.js
index 70a2248e..171dbb3d 100644
--- a/share/www/script/test/content_negotiation.js
+++ b/share/www/script/test/content_negotiation.js
@@ -18,19 +18,19 @@ couchTests.content_negotiation = function(debug) {
var xhr;
xhr = CouchDB.request("GET", "/test_suite_db/");
- T(xhr.getResponseHeader("Content-Type") == "text/plain;charset=utf-8");
+ TEquals("text/plain;charset=utf-8", xhr.getResponseHeader("Content-Type"));
// make sure JSON responses end in a newline
var text = xhr.responseText;
- T(text[text.length-1] == "\n");
+ TEquals("\n", text[text.length-1]);
xhr = CouchDB.request("GET", "/test_suite_db/", {
headers: {"Accept": "text/html;text/plain;*/*"}
});
- T(xhr.getResponseHeader("Content-Type") == "text/plain;charset=utf-8");
+ TEquals("text/plain;charset=utf-8", xhr.getResponseHeader("Content-Type"));
xhr = CouchDB.request("GET", "/test_suite_db/", {
headers: {"Accept": "application/json"}
});
- T(xhr.getResponseHeader("Content-Type") == "application/json");
+ TEquals("application/json", xhr.getResponseHeader("Content-Type"));
};