2 This page tests for correct behavior in the case of a global object that has
3 had a property deleted. If the test passes, you'll see a PASS message below.
6 <pre id=
"console"></pre>
10 if (window
.testRunner
)
11 testRunner
.dumpAsText();
16 document
.getElementById("console").appendChild(document
.createTextNode(s
+ "\n"));
21 function shouldBe(a
, aDescription
, b
)
24 log("PASS: " + aDescription
+ " should be " + b
+ " and is.");
26 log("FAIL: " + aDescription
+ " should be " + b
+ " but instead is " + a
+ ".");
33 window
.__defineGetter__("x", function() { return y
; });
35 window
.__defineGetter__("y", function() { return 42; });