summaryrefslogtreecommitdiff
path: root/share/www/script/couch_test_runner.js
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2010-08-25 08:56:15 +0000
committerRobert Newson <rnewson@apache.org>2010-08-25 08:56:15 +0000
commit4875101eafd9852c4944eedbe65fd31045a73ef7 (patch)
treebda00f4931cf8e256280f399016623085549cf87 /share/www/script/couch_test_runner.js
parent6f77afd486bdf07e800d47eddc7cf6249e5386e8 (diff)
fix attachments.js in Safari by treating charset case-insensitively.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@988909 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/couch_test_runner.js')
-rw-r--r--share/www/script/couch_test_runner.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/www/script/couch_test_runner.js b/share/www/script/couch_test_runner.js
index 451a454a..f2d5e0e4 100644
--- a/share/www/script/couch_test_runner.js
+++ b/share/www/script/couch_test_runner.js
@@ -311,6 +311,11 @@ function TEquals(expected, actual, testName) {
"', got '" + repr(actual) + "'", testName);
}
+function TEqualsIgnoreCase(expected, actual, testName) {
+ T(equals(expected.toUpperCase(), actual.toUpperCase()), "expected '" + repr(expected) +
+ "', got '" + repr(actual) + "'", testName);
+}
+
function equals(a,b) {
if (a === b) return true;
try {