X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Fmisc%2Flocal.html;h=05b6cf219be206a86b4ca2eb8d0c0512ecef1cf5;hb=357f7a8acdc4c1fbfaab8c238c62db11a041d0d8;hp=243e513cebab8323c9c9ab4cab93a9ca66834dce;hpb=94ea5744c9541f9c91ee2d150d06024e430c967e;p=dygraphs.git diff --git a/auto_tests/misc/local.html b/auto_tests/misc/local.html index 243e513..05b6cf2 100644 --- a/auto_tests/misc/local.html +++ b/auto_tests/misc/local.html @@ -58,8 +58,20 @@ var test = args.test; var command = args.command; - if (args.testCase) { + if (args.testCaseName) { + var testCases = getAllTestCases(); + for (var idx in testCases) { + var entry = testCases[idx]; + if (entry.name == args.testCaseName) { + var prototype = entry.testCase; + tc = new entry.testCase(); + break; + } + } + } else if (args.testCase) { eval("tc = new " + args.testCase + "()"); + } + if (tc != null) { if (args.command) { if (args.command == "runAllTests") { console.log("Running all tests for " + args.testCase); @@ -87,9 +99,45 @@
  • command - either runTest or runAllTests. Example: local.html?testCase=ScrollingDivTestCase&test=testNestedDiv_Scrolled&command=runTest +

    +