2 This page tests cached access to properties of dictionary objects and objects
3 with changing prototypes. If the test passes, you'll see a series of PASS messages
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.\n");
27 log("FAIL: " + aDescription
+ " should be " + b
+ " but instead is " + a
+ ".\n");
32 var largestInteger
= 4294967295;
33 var array
= new Array();
34 array
[largestInteger
- 1] = "test";
36 for (var i
=0; i
<10; ++i
) len
= array
.length
;
38 shouldBe(len
, "len", largestInteger
);