Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444

This commit is contained in:
Josh Matthews 2017-04-17 12:06:02 +10:00 committed by Anthony Ramine
parent 25e8bf69e6
commit 665817d2a6
35333 changed files with 1818077 additions and 16036 deletions

View file

@ -152,7 +152,6 @@ function VisualOutput(elem, runner) {
this.section_wrapper = null;
this.results_table = this.elem.querySelector(".results > table");
this.section = null;
this.manifest_status = this.elem.querySelector("#manifest");
this.progress = this.elem.querySelector(".summary .progress");
this.meter = this.progress.querySelector(".progress-bar");
this.result_count = null;
@ -195,7 +194,7 @@ VisualOutput.prototype = {
}
this.meter.style.width = '0px';
this.meter.textContent = '0%';
this.manifest_status.style.display = "none";
this.meter.classList.remove("stopped", "loading-manifest");
this.elem.querySelector(".jsonResults").style.display = "none";
this.results_table.removeChild(this.results_table.tBodies[0]);
this.results_table.appendChild(document.createElement("tbody"));
@ -205,14 +204,13 @@ VisualOutput.prototype = {
this.clear();
this.instructions.style.display = "none";
this.elem.style.display = "block";
this.manifest_status.style.display = "inline";
this.steady_status("loading-manifest");
},
on_start: function() {
this.clear();
this.instructions.style.display = "none";
this.elem.style.display = "block";
this.meter.classList.remove("stopped");
this.meter.classList.add("progress-striped", "active");
},
@ -281,17 +279,24 @@ VisualOutput.prototype = {
this.update_meter(this.runner.progress(), this.runner.results.count(), this.runner.test_count());
},
on_done: function() {
steady_status: function(statusName) {
var statusTexts = {
done: "Done!",
stopped: "Stopped",
"loading-manifest": "Updating and loading test manifest; this may take several minutes."
};
var textContent = statusTexts[statusName];
this.meter.setAttribute("aria-valuenow", this.meter.getAttribute("aria-valuemax"));
this.meter.style.width = "100%";
if (this.runner.stop_flag) {
this.meter.textContent = "Stopped";
this.meter.classList.add("stopped");
} else {
this.meter.textContent = "Done!";
}
this.meter.classList.remove("progress-striped", "active");
this.meter.textContent = textContent;
this.meter.classList.remove("progress-striped", "active", "stopped", "loading-manifest");
this.meter.classList.add(statusName);
this.runner.test_div.textContent = "";
},
on_done: function() {
this.steady_status(this.runner.stop_flag ? "stopped" : "done");
//add the json serialization of the results
var a = this.elem.querySelector(".jsonResults");
var json = this.runner.results.to_json();