Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Commit

Permalink
Cleanup testing running screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkinswnaf committed Aug 9, 2014
1 parent a3441ea commit c6d6928
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions data/tab.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ body {
text-align: center;
color: white;
background-color: black;
border-radius: 5px;
}

h1 {
Expand Down
2 changes: 1 addition & 1 deletion data/tab.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div id="TestArea"></div>
</div>
<div id="test-running" class="dim">
<div id="test-running-label" class="dim-running"><img src="img/mlab-beaker100x.png"/><br></div>
<div id="test-running-box" class="dim-running"><img src="img/mlab-beaker100x.png"/><br><p id="test-running-label"></p></div>
</div>
<div id="container-right">
<div id="infoTextArea">
Expand Down
8 changes: 5 additions & 3 deletions data/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,16 +216,18 @@ self.port.on("testStarted", function (test) {
if (!runningElement) { return; }
runningElement.style.visibility = "visible";
labelElement = document.getElementById("test-running-label");
labelElement.appendChild(document.createTextNode(test + " test is running..."));
labelElement.appendChild(document.createTextNode(test + " test is running ..."));
});

self.port.on("testStopped", function (test) {
var labelElement = null, runningElement = null;
var runningElement = null, labelElement = null;
runningElement = document.getElementById("test-running");
if (!runningElement) { return; }
runningElement.style.visibility = "hidden";
labelElement = document.getElementById("test-running-label");
labelElement.removeChild(runningElement);
while (labelElement.firstChild) {
labelElement.removeChild(labelElement.firstChild);
}
});

window.addEventListener("unload", function e(e) {
Expand Down

0 comments on commit c6d6928

Please sign in to comment.