OLD | NEW |
1 description("This tests that setting window event listeners on the frameset, set
s them on the window."); | 1 description("This tests that setting window event listeners on the frameset, set
s them on the window."); |
2 | 2 |
3 function gc() | 3 function gc() |
4 { | 4 { |
5 if (window.GCController) | 5 if (window.GCController) |
6 return GCController.collect(); | 6 return GCController.collect(); |
7 | 7 |
8 for (var i = 0; i < 10000; i++) { // > force garbage collection (FF requires
about 9K allocations before a collect) | 8 for (var i = 0; i < 10000; i++) { // > force garbage collection (FF requires
about 9K allocations before a collect) |
9 var s = new String(""); | 9 var s = new String(""); |
10 } | 10 } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 shouldBe("window.onoffline", "frameSet.onoffline"); | 46 shouldBe("window.onoffline", "frameSet.onoffline"); |
47 | 47 |
48 frameSet.ononline = func; | 48 frameSet.ononline = func; |
49 shouldBe("window.ononline", "func"); | 49 shouldBe("window.ononline", "func"); |
50 shouldBe("window.ononline", "frameSet.ononline"); | 50 shouldBe("window.ononline", "frameSet.ononline"); |
51 | 51 |
52 frameSet.onresize = func; | 52 frameSet.onresize = func; |
53 shouldBe("window.onresize", "func"); | 53 shouldBe("window.onresize", "func"); |
54 shouldBe("window.onresize", "frameSet.onresize"); | 54 shouldBe("window.onresize", "frameSet.onresize"); |
55 | 55 |
| 56 frameSet.onscroll = func; |
| 57 shouldBe("window.onscroll", "func"); |
| 58 shouldBe("window.onscroll", "frameSet.onscroll"); |
| 59 |
56 frameSet.onstorage = func; | 60 frameSet.onstorage = func; |
57 shouldBe("window.onstorage", "func"); | 61 shouldBe("window.onstorage", "func"); |
58 shouldBe("window.onstorage", "frameSet.onstorage"); | 62 shouldBe("window.onstorage", "frameSet.onstorage"); |
59 | 63 |
60 frameSet.onunload = func; | 64 frameSet.onunload = func; |
61 shouldBe("window.onunload", "func"); | 65 shouldBe("window.onunload", "func"); |
62 shouldBe("window.onunload", "frameSet.onunload"); | 66 shouldBe("window.onunload", "frameSet.onunload"); |
63 window.onunload = null; | 67 window.onunload = null; |
64 | 68 |
65 gc(); | 69 gc(); |
OLD | NEW |