diff options
author | John Christopher Anderson <jchris@apache.org> | 2008-11-17 22:14:14 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2008-11-17 22:14:14 +0000 |
commit | d2a6bdbe68ae65aee21d9267e9985fe611bf6e7c (patch) | |
tree | b6b28dd190c0975b6f1de1f732675db65ed3101e /share/www/couch_tests.html | |
parent | aee6f18edf8cdf3f7c09c93fcf1af48c2c15fcd8 (diff) |
factored couch_test_runner.js out from couch_tests.js, made it usuable for unit testing views from design docs
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@718409 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/couch_tests.html')
-rw-r--r-- | share/www/couch_tests.html | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/share/www/couch_tests.html b/share/www/couch_tests.html index 4de4fcdb..f1ab443b 100644 --- a/share/www/couch_tests.html +++ b/share/www/couch_tests.html @@ -22,20 +22,18 @@ specific language governing permissions and limitations under the License. <script src="script/jquery.js?1.2.6"></script> <script src="script/couch.js?0.8.0"></script> <script src="script/pprint.js?0.8.0"></script> + <script src="script/couch_test_runner.js"></script> <script> - $(document).ready(function() { + $(function() { + updateTestsListing(); + $("#toolbar button.run").click(runAllTests); + if (window != parent) parent.updateNavigation(); $("#toolbar button.load").click(function() { location.reload(true); }); }); - </script> - <script src="script/couch_tests.js"></script> - <script> - $(document).ready(function() { - updateTestsListing(); - $("#toolbar button.run").click(runAllTests); - if (window != parent) parent.updateNavigation(); - }); + var testsPath = document.location.toString().split('?')[1]; + loadTests(testsPath||"script/couch_tests.js") </script> </head> <body> |