From: Robert Konigsberg <konigsberg@google.com> Date: Thu, 29 Dec 2011 02:56:31 +0000 (-0500) Subject: Test name in the summary was wrong when selecting individual tests. X-Git-Tag: v1.0.0~383^2~1 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=0c393397e03e79578e65f0f1de4425d987fbda50;p=dygraphs.git Test name in the summary was wrong when selecting individual tests. --- diff --git a/auto_tests/misc/local.html b/auto_tests/misc/local.html index 417aacb..5bdf428 100644 --- a/auto_tests/misc/local.html +++ b/auto_tests/misc/local.html @@ -42,6 +42,7 @@ <script type="text/javascript"> var tc = null; + var name = null; function processVariables() { var splitVariables = function() { // http://www.idealog.us/2006/06/javascript_to_p.html var query = window.location.search.substring(1); @@ -60,6 +61,7 @@ if (args.testCaseName) { var testCases = getAllTestCases(); + name = args.testCaseName; for (var idx in testCases) { var entry = testCases[idx]; if (entry.name == args.testCaseName) { @@ -69,6 +71,7 @@ } } } else if (args.testCase) { + name = args.testCase; eval("tc = new " + args.testCase + "()"); } if (tc != null) { @@ -133,6 +136,7 @@ processVariables(); addGlobalTestSymbols(); var selector = document.getElementById("selector"); + if (selector != null) { // running a test var createAttached = function(name, parent) { var elem = document.createElement(name);