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

Side by Side 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, 4 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 3
4 <p id="description"></p> 4 <p id="description"></p>
5 <div id="console"></div> 5 <div id="console"></div>
6 <script type="text/javascript"> 6 <script type="text/javascript">
7 description('Test that touches created with no target does not crash during disp atch. http://crbug.com/517962'); 7 description('Test that touches created with no target does not crash during disp atch. http://crbug.com/517962');
8 8
9 var event = document.createEvent('TouchEvent'); 9 var event = new TouchEvent('touchstart', {
10 event.initTouchEvent(document.createTouchList(document.createTouch())); 10 touches: [document.createTouch()],
11 });
11 document.body.dispatchEvent(event); 12 document.body.dispatchEvent(event);
12 13
13 </script> 14 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698