summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7cf85dd)
1. Add meta-links to the test name and new "more..." links.
2. Test name link runs that single test. more... shows the stack trace in an alert window. (Not ideal, but it's something.)
color: black;
text-decoration: none;
}
color: black;
text-decoration: none;
}
+
+ .anchor:hover {
+ color:blue;
+ }
tr.appendChild(tdResult);
var tdName = document.createElement("td");
tr.appendChild(tdResult);
var tdName = document.createElement("td");
- tdName.innerText = result.name;
+ 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);
tr.appendChild(tdName);
var tdDuration = document.createElement("td");
tdDuration.innerText = result.duration;
tr.appendChild(tdDuration);
tr.appendChild(tdName);
var tdDuration = document.createElement("td");
tdDuration.innerText = result.duration;
tr.appendChild(tdDuration);
+ if (result.e) {
+ var tdDetails = document.createElement("td");
+ div = document.createElement("div");
+ div.innerText = "more...";
+ div.setAttribute("class", "anchor");
+ div.onclick = function(e) {
+ return function() {
+ alert(e + "\n" + e.stack);
+ };
+ }(result.e);
+ tdDetails.appendChild(div);
+ tr.appendChild(tdDetails);
+ }
+
table.appendChild(tr);
}
}
table.appendChild(tr);
}
}
this.results.push({
name : tc.name + "." + name,
result : result,
this.results.push({
name : tc.name + "." + name,
result : result,
- duration : endms_ - this.startms_
+ duration : endms_ - this.startms_,
+ e : e
});
this.summary.passed += result ? 1 : 0;
this.summary.failed += result ? 0 : 1;
});
this.summary.passed += result ? 1 : 0;
this.summary.failed += result ? 0 : 1;