2 This page tests a specific set of conditions that could cause a property map to
3 rehash, giving two objects with equal structure ID's unequal structures. If the
4 test passes, you'll see a PASS message below.
7 <pre id=
"console"></pre>
11 if (window
.testRunner
)
12 testRunner
.dumpAsText();
17 document
.getElementById("console").appendChild(document
.createTextNode(s
+ "\n"));
22 function shouldBe(a
, aDescription
, b
)
25 log("PASS: " + aDescription
+ " should be " + b
+ " and is.");
27 log("FAIL: " + aDescription
+ " should be " + b
+ " but instead is " + a
+ ".");
63 shouldBe(getP7(o
) == getP7(o2
), "getP7(o) == getP7(o2)", true);