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

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

Issue 429803002: Revert of Remove WheelEvent.initWebKitWheelEvent() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 ec9d32c58a7a4fa290ca283527108a01e476b16e..25110c4b0159347a047c21f020cc8d8754e3a609 100644
--- a/LayoutTests/fast/forms/resources/common-wheel-event.js
+++ b/LayoutTests/fast/forms/resources/common-wheel-event.js
@@ -1,7 +1,8 @@
function dispatchWheelEvent(element, deltaX, deltaY)
{
- var eventInit = { deltaX: -deltaX, deltaY: -deltaY };
- var event = new WheelEvent('mousewheel', eventInit);
+ var event = document.createEvent('WheelEvent');
+ var dontCare = 0;
+ event.initWebKitWheelEvent(deltaX, deltaY, document.defaultView, dontCare, dontCare, dontCare, dontCare, false, false, false, false);
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