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

@ -128,9 +128,7 @@
<div id="output">
<div class="summary clearfix">
<h4>Progress
<span id="manifest">updating and loading test manifest; this may take several minutes</span>
</h4>
<h4>Progress</h4>
<div class="progress">
<div class="progress-bar" role="progressbar"
aria-valuenow="0" aria-valuemin="0" aria-valuemax="0" style="width: 0">

View file

@ -184,17 +184,13 @@ td.ERROR {
background-color: inherit;
}
to {
background-color: #ffc;
background-color: #f6bb42;
}
}
#manifest {
padding-left: 6px;
padding-right: 6px;
font-size: 80%;
font-weight: normal;
font-style: italic;
color: #999;
.loading-manifest {
background-image: none;
color: #333;
animation-duration: 1.5s;
animation-name: alert_updating;
animation-iteration-count: infinite;

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();