diff --git a/runner/index.html b/runner/index.html
index e08dc6d..3a69e6d 100644
--- a/runner/index.html
+++ b/runner/index.html
@@ -2,6 +2,7 @@
Web tests
+
diff --git a/runner/runner.js b/runner/runner.js
index 0379ffd..5fc5099 100644
--- a/runner/runner.js
+++ b/runner/runner.js
@@ -285,6 +285,10 @@ VisualOutput.prototype = {
var json = this.runner.results.to_json();
if (document.getElementById("dumpit").checked) {
+ this.json_results_area = Array.prototype.slice.call(this.elem.querySelectorAll("textarea"));
+ for(var i = 0,t = this.json_results_area.length; i < t; i++){
+ this.elem.removeChild(this.json_results_area[i]);
+ }
this.json_results_area = document.createElement("textarea");
this.json_results_area.style.width = "100%";
this.json_results_area.setAttribute("rows", "50");
@@ -355,12 +359,12 @@ function ManualUI(elem, runner) {
this.pass_button.onclick = function() {
this.disable_buttons();
- this.runner.on_result("PASS", "", []);
+ this.runner.on_result("PASS", "", "unjs");
}.bind(this);
this.fail_button.onclick = function() {
this.disable_buttons();
- this.runner.on_result("FAIL", "", []);
+ this.runner.on_result("FAIL", "", "unjs");
}.bind(this);
}
@@ -657,6 +661,13 @@ Runner.prototype = {
},
on_result: function(status, message, subtests) {
+ if (this.current_test.type == "manual" || this.current_test.type == "reftest"){
+ if (subtests != "unjs"){
+ return;
+ }else{
+ subtests = [];
+ }
+ }
clearTimeout(this.timeout);
this.results.set(this.current_test, status, message, subtests);
this.result_callbacks.forEach(function(callback) {