+ var div = document.createElement("div");
+ div.innerText = result.name;
+ div.onclick = function(name) {
+ return function() {
+ var s = name.split(".");
+ var testCase = s[0];
+ var testName = s[1];
+ url = window.location.pathname +
+ "?testCaseName=" + testCase +
+ "&test=" + testName +
+ "&command=runTest";
+ window.location.href = url;
+ };
+ }(result.name);
+ div.setAttribute("class", "anchor");
+ tdName.appendChild(div);