Make errors less cluttered again
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Mon, 19 Sep 2011 14:29:55 -0600
changeset 596 035a0c1a4ca1
parent 595 ea6a5d169a17
child 597 4a58a50f456c
Make errors less cluttered again

Don't populate the picker in splitruntest.html until after the tests
have run, if applicable. This way, if something outside the editable
region changes, the innerHTML diff of the root element will be much less
verbose.
conformancetest/splitruntest.html
--- a/conformancetest/splitruntest.html	Mon Sep 19 14:28:11 2011 -0600
+++ b/conformancetest/splitruntest.html	Mon Sep 19 14:29:55 2011 -0600
@@ -57,10 +57,10 @@
 		}
 		pickerContents += " <a href=?" + group + ">" + group + "</a>";
 	}
-	document.querySelector("#picker").innerHTML = pickerContents;
 
 	var command = location.search.replace(/^\?/, "");
 	if (!(command in groupedBrowserTests)) {
+		document.querySelector("#picker").innerHTML = pickerContents;
 		return;
 	}
 	if (command !== firstGroup) {
@@ -80,6 +80,8 @@
 	document.getElementById("test-container").parentNode
 		.removeChild(document.getElementById("test-container"));
 
+	document.querySelector("#picker").innerHTML = pickerContents;
+
 	var elapsed = Math.round(Date.now() - startTime)/1000;
 	document.getElementById("timing").textContent =
 		"Time elapsed: " + Math.floor(elapsed/60) + ":" + (elapsed % 60).toFixed(3) + " min.";