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

Unified Diff: LayoutTests/fast/forms/resources/common-wheel-event.js

Issue 425633002: Remove WheelEvent.initWebKitWheelEvent() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix tests Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/events/wheelevent-in-scrolling-div-expected.txt ('k') | Source/core/events/WheelEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/resources/common-wheel-event.js
diff --git a/LayoutTests/fast/forms/resources/common-wheel-event.js b/LayoutTests/fast/forms/resources/common-wheel-event.js
index 25110c4b0159347a047c21f020cc8d8754e3a609..ec9d32c58a7a4fa290ca283527108a01e476b16e 100644
--- a/LayoutTests/fast/forms/resources/common-wheel-event.js
+++ b/LayoutTests/fast/forms/resources/common-wheel-event.js
@@ -1,8 +1,7 @@
function dispatchWheelEvent(element, deltaX, deltaY)
{
- var event = document.createEvent('WheelEvent');
- var dontCare = 0;
- event.initWebKitWheelEvent(deltaX, deltaY, document.defaultView, dontCare, dontCare, dontCare, dontCare, false, false, false, false);
+ var eventInit = { deltaX: -deltaX, deltaY: -deltaY };
+ var event = new WheelEvent('mousewheel', eventInit);
element.dispatchEvent(event);
}
« no previous file with comments | « LayoutTests/fast/events/wheelevent-in-scrolling-div-expected.txt ('k') | Source/core/events/WheelEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698