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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/touch/script-tests/document-create-touch-list.js

Issue 2182183003: Remove |TouchEvent.initTouchEvent()| in M54 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/LayoutTests/fast/events/touch/script-tests/document-create-touch-list.js
diff --git a/third_party/WebKit/LayoutTests/fast/events/touch/script-tests/document-create-touch-list.js b/third_party/WebKit/LayoutTests/fast/events/touch/script-tests/document-create-touch-list.js
index eb0de44785e5d75216c61ba7cd36514659e9e7bd..af9839ef3d03dee4796aa0b9196691814a866073 100644
--- a/third_party/WebKit/LayoutTests/fast/events/touch/script-tests/document-create-touch-list.js
+++ b/third_party/WebKit/LayoutTests/fast/events/touch/script-tests/document-create-touch-list.js
@@ -16,8 +16,13 @@ try {
var t2 = document.createTouch(window, document.body, 12342, 50, 55, 115, 120);
var tl = document.createTouchList(t, t2);
- var evt = document.createEvent("TouchEvent");
- evt.initTouchEvent(tl, tl, tl, "touchstart", window, 0, 0, 0, 0, true, false, false, false);
+ var evt = new TouchEvent("touchstart", {
+ view: window,
+ touches: tl,
+ targetTouches: tl,
+ changedTouches: tl,
+ ctrlKey: true,
+ });
document.body.addEventListener("touchstart", function handleTouchStart(ev) {
ts = ev;

Powered by Google App Engine
This is Rietveld 408576698