couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r925853 - /couchdb/trunk/share/www/script/test/changes.js
Date Sun, 21 Mar 2010 18:25:32 GMT
Author: jan
Date: Sun Mar 21 18:25:32 2010
New Revision: 925853

URL: http://svn.apache.org/viewvc?rev=925853&view=rev
Log:
Make changes test pass in CLI runner & WebKit

Modified:
    couchdb/trunk/share/www/script/test/changes.js

Modified: couchdb/trunk/share/www/script/test/changes.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/test/changes.js?rev=925853&r1=925852&r2=925853&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/test/changes.js (original)
+++ couchdb/trunk/share/www/script/test/changes.js Sun Mar 21 18:25:32 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(



Mime
View raw message