From 2a585a7029fae665b8370b20da6fcd07fec58a63 Mon Sep 17 00:00:00 2001 From: Paul Joseph Davis Date: Mon, 18 May 2009 03:12:54 +0000 Subject: View source loads the original file now. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775796 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/couch_test_runner.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'share') 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; - $("
").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
+}
-- 
cgit v1.2.3