couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r750305 [1/4] - in /couchdb/branches/rep_security/share/www/script: ./ test/
Date Thu, 05 Mar 2009 03:24:45 GMT
Author: jchris
Date: Thu Mar  5 03:24:42 2009
New Revision: 750305

URL: http://svn.apache.org/viewvc?rev=750305&view=rev
Log:
split tests out like in trunk -- working toward trunk merge

Added:
    couchdb/branches/rep_security/share/www/script/test/
    couchdb/branches/rep_security/share/www/script/test/all_docs.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/attachment_paths.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/attachment_views.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/attachments.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/basics.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/bulk_docs.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/compact.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/config.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/conflicts.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/content_negotiation.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/copy_move_doc.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/delayed_commits.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/design_docs.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/design_options.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/design_paths.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/etags_head.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/large_docs.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/lots_of_docs.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/multiple_rows.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/purge.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/recreate_doc.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/reduce.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/reduce_false.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/replication.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/security_validation.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/utf8.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/uuids.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/view_collation.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/view_conflicts.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/view_errors.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/view_include_docs.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/view_multi_key_all_docs.js   (with
props)
    couchdb/branches/rep_security/share/www/script/test/view_multi_key_design.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/view_multi_key_temp.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/view_pagination.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/view_sandboxing.js   (with props)
    couchdb/branches/rep_security/share/www/script/test/view_xml.js   (with props)
Modified:
    couchdb/branches/rep_security/share/www/script/couch_test_runner.js
    couchdb/branches/rep_security/share/www/script/couch_tests.js

Modified: couchdb/branches/rep_security/share/www/script/couch_test_runner.js
URL: http://svn.apache.org/viewvc/couchdb/branches/rep_security/share/www/script/couch_test_runner.js?rev=750305&r1=750304&r2=750305&view=diff
==============================================================================
--- couchdb/branches/rep_security/share/www/script/couch_test_runner.js (original)
+++ couchdb/branches/rep_security/share/www/script/couch_test_runner.js Thu Mar  5 03:24:42
2009
@@ -16,6 +16,10 @@
   document.write('<script src="'+url+'"></script>');
 };
 
+function loadScript(url) {  
+  if (typeof document != "undefined") document.write('<script src="'+url+'"></script>');
+};
+
 function patchTest(fun) {
   var source = fun.toString();
   var output = "";
@@ -67,7 +71,7 @@
   var row = currentRow = $(button).parents("tr").get(0);
   $("td.status", row).removeClass("error").removeClass("failure").removeClass("success");
   $("td", row).text("");
-  var testFun = tests[row.id];
+  var testFun = couchTests[row.id];
   function run() {
     numFailures = 0;
     var start = new Date().getTime();
@@ -114,8 +118,8 @@
 }
 
 function updateTestsListing() {
-  for (var name in tests) {
-    var testFunction = tests[name];
+  for (var name in couchTests) {
+    var testFunction = couchTests[name];
     var row = $("<tr><th></th><td></td><td></td><td></td></tr>")
       .find("th").text(name).attr("title", "Show source").click(function() {
         showSource(this);



Mime
View raw message