Make alert checkbox work again
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Wed, 26 Oct 2011 12:31:03 -0600
changeset 651 eac8fb8e1f5f
parent 650 56ef67010340
child 652 7c3831ccb411
Make alert checkbox work again

It was broken by the commit "I didn't know about
HTMLStyleElement.disabled :(", fe7832db in git and 963926c4 in hg.
Apparently I didn't test. Now it seems to work.
tests.js
--- a/tests.js	Wed Oct 26 12:27:03 2011 -0600
+++ b/tests.js	Wed Oct 26 12:31:03 2011 -0600
@@ -30,7 +30,7 @@
 		var toolbarDiv = document.createElement("div");
 		toolbarDiv.id = "toolbar";
 		// Note: this is completely not a hack at all.
-		toolbarDiv.innerHTML = "<style id=alerts>/* body > div > table > tbody > tr:not(.alert):not(:first-child):not(.active) { display: none } */</style>"
+		toolbarDiv.innerHTML = "<style id=alerts>body > div > table > tbody > tr:not(.alert):not(:first-child):not(.active) { display: none }</style>"
 			+ "<label><input id=alert-checkbox type=checkbox accesskey=a checked onclick='updateAlertRowStyle()'> Display rows without spec <u>a</u>lerts</label>"
 			+ "<label><input id=browser-checkbox type=checkbox accesskey=b checked onclick='localStorage[\"display-browser-tests\"] = event.target.checked'> Run <u>b</u>rowser tests as well as spec tests</label>";