You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2009/05/18 05:12:54 UTC

svn commit: r775796 - /couchdb/trunk/share/www/script/couch_test_runner.js

Author: davisp
Date: Mon May 18 03:12:54 2009
New Revision: 775796

URL: http://svn.apache.org/viewvc?rev=775796&view=rev
Log:
View source loads the original file now.


Modified:
    couchdb/trunk/share/www/script/couch_test_runner.js

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=775796&r1=775795&r2=775796&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/couch_test_runner.js (original)
+++ couchdb/trunk/share/www/script/couch_test_runner.js Mon May 18 03:12:54 2009
@@ -109,8 +109,7 @@
 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 @@
   } else {
     return JSON.stringify(val);
   }
-}
\ No newline at end of file
+}