Reviewed by Geoff.
[WebKit-https.git] / LayoutTests / fast / dom / Window / resources / window-appendages-cleared-results.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <link rel="stylesheet" href="../../../js/resources/js-test-style.css">
5 <script src="../../../js/resources/js-test-pre.js"></script>
6 </head>
7 <body>
8 <p id="description"></p>
9 <div id="console"></div>
10 <script>
11
12 function checkForLeftoverProperties(string, object)
13 {
14     var array = new Array;
15     for (var property in object) {
16         array.push(property);
17     }
18     array.sort();
19     for (var i = 0; i < array.length; ++i) {
20         var property = array[i];
21         shouldBeFalse(string + '.' + property + ' == "LEFTOVER"');
22     }
23 }
24
25 checkForLeftoverProperties("history", window.history);
26 checkForLeftoverProperties("frames", frames);
27 checkForLeftoverProperties("location", location);
28 checkForLeftoverProperties("locationbar", locationbar);
29 checkForLeftoverProperties("menubar", menubar);
30 checkForLeftoverProperties("personalbar", personalbar);
31 checkForLeftoverProperties("screen", screen);
32 checkForLeftoverProperties("scrollbars", scrollbars);
33 checkForLeftoverProperties("statusbar", statusbar);
34 checkForLeftoverProperties("toolbar", toolbar);
35
36 shouldBeUndefined('window.event');
37
38 var successfullyParsed = true;
39 </script>
40 <script src="../../../js/resources/js-test-post.js"></script>
41 <script>
42 if (window.layoutTestController)
43     layoutTestController.notifyDone();
44 </script>
45 </body>
46 </html>