From 49c9d17d8e407f54226b4fc4d55c0049ed58d628 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Sun, 1 Feb 2009 22:30:36 +0000 Subject: Add strict semicolons to the test suite for Webkit. thanks davisp. closes COUCH-232 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@739872 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/couch_tests.js | 82 ++++++++++++++++++++--------------------- 1 file changed, 41 insertions(+), 41 deletions(-) (limited to 'share/www/script/couch_tests.js') diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js index 8bdebec1..e7f8abdb 100644 --- a/share/www/script/couch_tests.js +++ b/share/www/script/couch_tests.js @@ -1491,71 +1491,71 @@ var tests = { // NOTE, the values are already in their correct sort order. Consider this // a specification of collation of json types. - var values = [] + var values = []; // special values sort before all other types - values.push(null) - values.push(false) - values.push(true) + values.push(null); + values.push(false); + values.push(true); // then numbers - values.push(1) - values.push(2) - values.push(3.0) - values.push(4) + values.push(1); + values.push(2); + values.push(3.0); + values.push(4); // then text, case sensitive - values.push("a") - values.push("A") - values.push("aa") - values.push("b") - values.push("B") - values.push("ba") - values.push("bb") + values.push("a"); + values.push("A"); + values.push("aa"); + values.push("b"); + values.push("B"); + values.push("ba"); + values.push("bb"); // then arrays. compared element by element until different. // Longer arrays sort after their prefixes - values.push(["a"]) - values.push(["b"]) - values.push(["b","c"]) - values.push(["b","c", "a"]) - values.push(["b","d"]) - values.push(["b","d", "e"]) + values.push(["a"]); + values.push(["b"]); + values.push(["b","c"]); + values.push(["b","c", "a"]); + values.push(["b","d"]); + values.push(["b","d", "e"]); // then object, compares each key value in the list until different. // larger objects sort after their subset objects. - values.push({a:1}) - values.push({a:2}) - values.push({b:1}) - values.push({b:2}) - values.push({b:2, a:1}) // Member order does matter for collation. - // CouchDB preserves member order - // but doesn't require that clients will. - // (this test might fail if used with a js engine - // that doesn't preserve order) - values.push({b:2, c:2}) + values.push({a:1}); + values.push({a:2}); + values.push({b:1}); + values.push({b:2}); + values.push({b:2, a:1}); // Member order does matter for collation. + // CouchDB preserves member order + // but doesn't require that clients will. + // (this test might fail if used with a js engine + // that doesn't preserve order) + values.push({b:2, c:2}); for (var i=0; i