1 description("This test ensures that objects with security restrictions are cached correctly");
3 var ctors
= ["Image", "Option", "XMLHttpRequest", "Audio"];
5 for (var i
= 0; i
< ctors
.length
; i
++) {
8 // Test retrieving the object twice results in the same object
11 // Be paranoid -- make sure that setting a property results in that property
13 this[ctor
].testProperty
= "property set successfully";
14 shouldBe(ctor
+ ".testProperty", '"property set successfully"');
16 testFailed("Testing " + ctor
+ " threw " + e
);