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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/wheel/wheelevent-handler-count.html

Issue 2261173005: wheel layout tests moved to fast/events/wheel folder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 <script src="../../resources/js-test.js"></script> 1 <script src="../../../resources/js-test.js"></script>
2 <script> 2 <script>
3 description("This test checks that we correctly update the wheel event handler c ount as event handlers are added and removed"); 3 description("This test checks that we correctly update the wheel event handler c ount as event handlers are added and removed");
4 4
5 (function() { 5 (function() {
6 // Test addEventListener/removeEventListener on the document. 6 // Test addEventListener/removeEventListener on the document.
7 var listener = function() { } 7 var listener = function() { }
8 8
9 shouldBe('window.internals.wheelEventHandlerCount(document)', '0'); 9 shouldBe('window.internals.wheelEventHandlerCount(document)', '0');
10 document.addEventListener('mousewheel', listener, true); 10 document.addEventListener('mousewheel', listener, true);
11 shouldBe('window.internals.wheelEventHandlerCount(document)', '1'); 11 shouldBe('window.internals.wheelEventHandlerCount(document)', '1');
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 window.onmousewheel = function() { } 60 window.onmousewheel = function() { }
61 shouldBe('window.internals.wheelEventHandlerCount(document)', '1'); 61 shouldBe('window.internals.wheelEventHandlerCount(document)', '1');
62 window.onmousewheel = function() { } 62 window.onmousewheel = function() { }
63 shouldBe('window.internals.wheelEventHandlerCount(document)', '1'); 63 shouldBe('window.internals.wheelEventHandlerCount(document)', '1');
64 window.onmousewheel = null; 64 window.onmousewheel = null;
65 shouldBe('window.internals.wheelEventHandlerCount(document)', '0'); 65 shouldBe('window.internals.wheelEventHandlerCount(document)', '0');
66 })(); 66 })();
67 67
68 </script> 68 </script>
69 </body> 69 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698