Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: LayoutTests/fast/dom/Window/script-tests/HTMLFrameSetElement-window-eventListener-attributes.js

Issue 27511002: Forward onscroll on body and frameset to window (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sharedidl
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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();
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Window/script-tests/HTMLBodyElement-window-eventListener-attributes.js ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698