Author: jan
Date: Sun Mar 21 18:25:39 2010
New Revision: 925854
URL: http://svn.apache.org/viewvc?rev=925854&view=rev
Log:
Make changes test pass in CLI runner & WebKit
Modified:
couchdb/branches/0.11.x/share/www/script/test/changes.js
Modified: couchdb/branches/0.11.x/share/www/script/test/changes.js
URL:
http://svn.apache.org/viewvc/couchdb/branches/0.11.x/share/www/script/test/changes.js?rev=925854&r1=925853&r2=925854&view=diff
==============================================================================
--- couchdb/branches/0.11.x/share/www/script/test/changes.js (original)
+++ couchdb/branches/0.11.x/share/www/script/test/changes.js Sun Mar 21
18:25:39 2010
@@ -258,7 +258,8 @@ couchTests.changes = function(debug) {
var req = CouchDB.request("GET",
"/test_suite_db/_changes?filter=changes_filter/bop&style=all_docs");
var resp = JSON.parse(req.responseText);
- TEquals(3, resp.results.length, "should return matching rows");
+ var expect = (!is_safari && xhr) ? 3: 1;
+ TEquals(expect, resp.results.length, "should return matching rows");
// test for userCtx
run_on_modified_server(