Give different error if only selection changed
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Tue, 31 May 2011 13:31:07 -0600
changeset 213 4a5af8f2e33e
parent 212 bc759ec88e62
child 214 bb8c2ac33480
Give different error if only selection changed
autoimplementation.html
--- a/autoimplementation.html	Tue May 31 12:50:46 2011 -0600
+++ b/autoimplementation.html	Tue May 31 13:31:07 2011 -0600
@@ -2143,6 +2143,8 @@
 		alertDiv.className = "alert";
 		if (oldValue === null) {
 			alertDiv.textContent = "Newly added test result";
+		} else if (oldValue.replace(/[\[\]{}]/g, "") == newValue.replace(/[\[\]{}]/g, "")) {
+			alertDiv.textContent = "Last run produced a different selection: " + oldValue;
 		} else {
 			alertDiv.textContent = "Last run produced different markup: " + oldValue;
 		}