X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Fmisc%2Flocal.html;h=b7d3a0dfd8ab0d338051900ffeba05dd22d2e172;hb=9838afeac7e8e46c5af67c495e73372fa30d668a;hp=417aacb33d449dbce19b4a9033dbca29473c1fc9;hpb=339332831ab29d1adb20d80bd409d3124556c934;p=dygraphs.git diff --git a/auto_tests/misc/local.html b/auto_tests/misc/local.html index 417aacb..b7d3a0d 100644 --- a/auto_tests/misc/local.html +++ b/auto_tests/misc/local.html @@ -8,48 +8,81 @@ - + - - - + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + - + @@ -133,6 +230,7 @@ processVariables(); addGlobalTestSymbols(); var selector = document.getElementById("selector"); + if (selector != null) { // running a test var createAttached = function(name, parent) { var elem = document.createElement(name); @@ -144,14 +242,15 @@ if (selector != null) { // running a test var list = createAttached("ul", selector); var parent = list.parentElement; var createLink = function(parent, text, url) { - var li = createAttached("li", parent); - var a = createAttached("a", li); - a.innerText = text; - a.href = url; + var li = createAttached("li", parent); + var a = createAttached("a", li); + a.innerHTML = text; + a.href = url; } if (tc == null) { description.innerHTML = "Test cases:"; var testCases = getAllTestCases(); + createLink(list, "(run all tests)", document.URL + "?command=runAllTests"); for (var idx in testCases) { var entryName = testCases[idx].name; createLink(list, entryName, document.URL + "?testCaseName=" + entryName);