summaryrefslogtreecommitdiff
path: root/share/www/script
diff options
context:
space:
mode:
authorPaul Joseph Davis <davisp@apache.org>2009-05-18 03:12:54 +0000
committerPaul Joseph Davis <davisp@apache.org>2009-05-18 03:12:54 +0000
commit2a585a7029fae665b8370b20da6fcd07fec58a63 (patch)
tree38b5c29e9d651fcbacbde9f01584ff9c72508dd4 /share/www/script
parent645526fe5f580455049e63d4d6ab1ac03bdb2213 (diff)
View source loads the original file now.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775796 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script')
-rw-r--r--share/www/script/couch_test_runner.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/share/www/script/couch_test_runner.js b/share/www/script/couch_test_runner.js
index ae0dc573..c396cd16 100644
--- a/share/www/script/couch_test_runner.js
+++ b/share/www/script/couch_test_runner.js
@@ -109,8 +109,7 @@ function runTest(button, callback, debug) {
function showSource(cell) {
var name = $(cell).text();
var win = window.open("", name, "width=700,height=500,resizable=yes,scrollbars=yes");
- win.document.title = name;
- $("<pre></pre>").text(couchTests[name].toString()).appendTo(win.document.body).fadeIn();
+ win.document.location = "script/test/" + name + ".js";
}
function updateTestsListing() {
@@ -187,4 +186,4 @@ function repr(val) {
} else {
return JSON.stringify(val);
}
-} \ No newline at end of file
+}