Ignore []/{} mismatch for regression testing
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Mon, 29 Aug 2011 14:42:53 -0600
changeset 552 bfb0c735c728
parent 551 c1c9160a162f
child 553 5d11411c4a35
Ignore []/{} mismatch for regression testing
tests.js
--- a/tests.js	Mon Aug 29 13:24:16 2011 -0600
+++ b/tests.js	Mon Aug 29 14:42:53 2011 -0600
@@ -4132,7 +4132,9 @@
 	var oldValue = localStorage.getItem(key);
 	var newValue = specCell.lastChild.firstChild.textContent;
 
-	if (oldValue === null || oldValue !== newValue) {
+	// Ignore differences between {} and [].
+	if (oldValue === null
+	|| oldValue.replace("{}", "[]") !== newValue.replace("{}", "[]")) {
 		specCell.parentNode.className = "alert";
 		var alertDiv = document.createElement("div");
 		specCell.lastChild.appendChild(alertDiv);