1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../../../resources/js-test.js"></script>
9 function checkForLeftoverProperties(string
, object
)
11 var array
= new Array
;
12 for (var property
in object
) {
16 for (var i
= 0; i
< array
.length
; ++i
) {
17 var property
= array
[i
];
18 shouldBeFalse(string
+ '.' + property
+ ' == "LEFTOVER"');
22 checkForLeftoverProperties("history", window
.history
);
23 checkForLeftoverProperties("location", location
);
24 checkForLeftoverProperties("locationbar", locationbar
);
25 checkForLeftoverProperties("menubar", menubar
);
26 checkForLeftoverProperties("personalbar", personalbar
);
27 checkForLeftoverProperties("screen", screen
);
28 checkForLeftoverProperties("scrollbars", scrollbars
);
29 checkForLeftoverProperties("statusbar", statusbar
);
30 checkForLeftoverProperties("toolbar", toolbar
);
32 shouldBeUndefined('window.event');
35 if (window
.testRunner
)
36 testRunner
.notifyDone();