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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/touch/touch-event-dispatch-no-crash.html

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/touch-event-dispatch-no-crash.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/touch/touch-event-dispatch-no-crash.html b/third_party/WebKit/LayoutTests/fast/events/touch/touch-event-dispatch-no-crash.html
index f25fe74f51659b50e372c2bf3b3f8425eb0e1a31..12de76a2b005fb9dcbcb9d61246b802f079bdda7 100644
--- a/third_party/WebKit/LayoutTests/fast/events/touch/touch-event-dispatch-no-crash.html
+++ b/third_party/WebKit/LayoutTests/fast/events/touch/touch-event-dispatch-no-crash.html
@@ -6,8 +6,9 @@
<script type="text/javascript">
description('Test that touches created with no target does not crash during dispatch. http://crbug.com/517962');
-var event = document.createEvent('TouchEvent');
-event.initTouchEvent(document.createTouchList(document.createTouch()));
+var event = new TouchEvent('touchstart', {
+ touches: [document.createTouch()],
+});
document.body.dispatchEvent(event);
</script>

Powered by Google App Engine
This is Rietveld 408576698