Chromium Code Reviews| 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 12de76a2b005fb9dcbcb9d61246b802f079bdda7..2bbd6a85542814479d1116b8a7a036121d5f67ad 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,15 @@ |
| <script type="text/javascript"> |
| description('Test that touches created with no target does not crash during dispatch. http://crbug.com/517962'); |
| +var box = document.createElement("div"); |
|
foolip
2017/03/21 08:01:13
Why these changes? Just adding null and 0 argument
lunalu1
2017/03/21 19:19:27
Done.
|
| +box.id = "box"; |
| +box.style.width = "100px"; |
| +box.style.height = "100px"; |
| +document.body.appendChild(box); |
| + |
| +var target = document.getElementById("box"); |
| var event = new TouchEvent('touchstart', { |
| - touches: [document.createTouch()], |
| + touches: [document.createTouch(window, target, 1, 100, 101, 102, 103)], |
| }); |
| document.body.dispatchEvent(event); |