OLD | NEW |
---|---|
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 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.
| |
10 box.id = "box"; | |
11 box.style.width = "100px"; | |
12 box.style.height = "100px"; | |
13 document.body.appendChild(box); | |
14 | |
15 var target = document.getElementById("box"); | |
9 var event = new TouchEvent('touchstart', { | 16 var event = new TouchEvent('touchstart', { |
10 touches: [document.createTouch()], | 17 touches: [document.createTouch(window, target, 1, 100, 101, 102, 103)], |
11 }); | 18 }); |
12 document.body.dispatchEvent(event); | 19 document.body.dispatchEvent(event); |
13 | 20 |
14 </script> | 21 </script> |
OLD | NEW |