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

Side by Side Diff: LayoutTests/fast/dom/Window/script-tests/HTMLBodyElement-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 body, sets th em on the window."); 1 description("This tests that setting window event listeners on the body, sets th em 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 shouldBe("window.onoffline", "document.body.onoffline"); 45 shouldBe("window.onoffline", "document.body.onoffline");
46 46
47 document.body.ononline = func; 47 document.body.ononline = func;
48 shouldBe("window.ononline", "func"); 48 shouldBe("window.ononline", "func");
49 shouldBe("window.ononline", "document.body.ononline"); 49 shouldBe("window.ononline", "document.body.ononline");
50 50
51 document.body.onresize = func; 51 document.body.onresize = func;
52 shouldBe("window.onresize", "func"); 52 shouldBe("window.onresize", "func");
53 shouldBe("window.onresize", "document.body.onresize"); 53 shouldBe("window.onresize", "document.body.onresize");
54 54
55 document.body.onscroll = func;
56 shouldBe("window.onscroll", "func");
57 shouldBe("window.onscroll", "document.body.onscroll");
58
55 document.body.onstorage = func; 59 document.body.onstorage = func;
56 shouldBe("window.onstorage", "func"); 60 shouldBe("window.onstorage", "func");
57 shouldBe("window.onstorage", "document.body.onstorage"); 61 shouldBe("window.onstorage", "document.body.onstorage");
58 62
59 document.body.onunload = func; 63 document.body.onunload = func;
60 shouldBe("window.onunload", "func"); 64 shouldBe("window.onunload", "func");
61 shouldBe("window.onunload", "document.body.onunload"); 65 shouldBe("window.onunload", "document.body.onunload");
62 window.onunload = null; 66 window.onunload = null;
63 67
64 gc(); 68 gc();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698