You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by jc...@apache.org on 2009/02/16 00:59:39 UTC
svn commit: r744782 [1/4] - in /couchdb/trunk: share/www/ share/www/script/
share/www/script/test/ test/
Author: jchris
Date: Sun Feb 15 23:59:38 2009
New Revision: 744782
URL: http://svn.apache.org/viewvc?rev=744782&view=rev
Log:
Reorganize the tests into one file per test. No other changes.
Added:
couchdb/trunk/share/www/script/test/
couchdb/trunk/share/www/script/test/all_docs.js (with props)
couchdb/trunk/share/www/script/test/attachment_paths.js (with props)
couchdb/trunk/share/www/script/test/attachment_views.js (with props)
couchdb/trunk/share/www/script/test/attachments.js (with props)
couchdb/trunk/share/www/script/test/basics.js (with props)
couchdb/trunk/share/www/script/test/bulk_docs.js (with props)
couchdb/trunk/share/www/script/test/compact.js (with props)
couchdb/trunk/share/www/script/test/config.js (with props)
couchdb/trunk/share/www/script/test/conflicts.js (with props)
couchdb/trunk/share/www/script/test/content_negotiation.js (with props)
couchdb/trunk/share/www/script/test/copy_move_doc.js (with props)
couchdb/trunk/share/www/script/test/delayed_commits.js (with props)
couchdb/trunk/share/www/script/test/design_docs.js (with props)
couchdb/trunk/share/www/script/test/design_options.js (with props)
couchdb/trunk/share/www/script/test/design_paths.js (with props)
couchdb/trunk/share/www/script/test/etags_head.js (with props)
couchdb/trunk/share/www/script/test/etags_views.js (with props)
couchdb/trunk/share/www/script/test/invalid_docids.js (with props)
couchdb/trunk/share/www/script/test/large_docs.js (with props)
couchdb/trunk/share/www/script/test/list_views.js (with props)
couchdb/trunk/share/www/script/test/lots_of_docs.js (with props)
couchdb/trunk/share/www/script/test/max_dbs_open.js (with props)
couchdb/trunk/share/www/script/test/multiple_rows.js (with props)
couchdb/trunk/share/www/script/test/purge.js (with props)
couchdb/trunk/share/www/script/test/recreate_doc.js (with props)
couchdb/trunk/share/www/script/test/reduce.js (with props)
couchdb/trunk/share/www/script/test/reduce_false.js (with props)
couchdb/trunk/share/www/script/test/replication.js (with props)
couchdb/trunk/share/www/script/test/security_validation.js (with props)
couchdb/trunk/share/www/script/test/show_documents.js (with props)
couchdb/trunk/share/www/script/test/utf8.js (with props)
couchdb/trunk/share/www/script/test/uuids.js (with props)
couchdb/trunk/share/www/script/test/view_collation.js (with props)
couchdb/trunk/share/www/script/test/view_conflicts.js (with props)
couchdb/trunk/share/www/script/test/view_errors.js (with props)
couchdb/trunk/share/www/script/test/view_include_docs.js (with props)
couchdb/trunk/share/www/script/test/view_multi_key_all_docs.js (with props)
couchdb/trunk/share/www/script/test/view_multi_key_design.js (with props)
couchdb/trunk/share/www/script/test/view_multi_key_temp.js (with props)
couchdb/trunk/share/www/script/test/view_pagination.js (with props)
couchdb/trunk/share/www/script/test/view_sandboxing.js (with props)
couchdb/trunk/share/www/script/test/view_xml.js (with props)
Modified:
couchdb/trunk/share/www/couch_tests.html
couchdb/trunk/share/www/script/couch_test_runner.js
couchdb/trunk/share/www/script/couch_tests.js
couchdb/trunk/test/runner.sh
couchdb/trunk/test/test.js
Modified: couchdb/trunk/share/www/couch_tests.html
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/couch_tests.html?rev=744782&r1=744781&r2=744782&view=diff
==============================================================================
--- couchdb/trunk/share/www/couch_tests.html [utf-8] (original)
+++ couchdb/trunk/share/www/couch_tests.html [utf-8] Sun Feb 15 23:59:38 2009
@@ -34,7 +34,7 @@
});
});
var testsPath = document.location.toString().split('?')[1];
- loadTests(testsPath||"script/couch_tests.js")
+ loadScript(testsPath||"script/couch_tests.js")
</script>
</head>
<body><div id="wrap">
Modified: couchdb/trunk/share/www/script/couch_test_runner.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/couch_test_runner.js?rev=744782&r1=744781&r2=744782&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/couch_test_runner.js (original)
+++ couchdb/trunk/share/www/script/couch_test_runner.js Sun Feb 15 23:59:38 2009
@@ -12,8 +12,8 @@
// *********************** Test Framework of Sorts ************************* //
-function loadTests(url) {
- document.write('<script src="'+url+'"></script>');
+function loadScript(url) {
+ if (typeof document != "undefined") document.write('<script src="'+url+'"></script>');
};
function patchTest(fun) {
@@ -67,7 +67,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();
@@ -110,12 +110,12 @@
var name = $(cell).text();
var win = window.open("", name, "width=700,height=500,resizable=yes,scrollbars=yes");
win.document.title = name;
- $("<pre></pre>").text(tests[name].toString()).appendTo(win.document.body).fadeIn();
+ $("<pre></pre>").text(couchTests[name].toString()).appendTo(win.document.body).fadeIn();
}
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);