| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src='../../../resources/testharness.js'></script> |
| 3 <script src='../../../resources/testharnessreport.js'></script> |
| 4 <style> |
| 5 #first {width: 100px; height: 50px; } |
| 6 #second {width: 100px; height: 50px; touch-action: none;} |
| 7 </style> |
| 8 <body> |
| 9 <div id="first"></div> |
| 10 <div id="second"></div> |
| 11 <script> |
| 12 test(function() { |
| 13 var handler = (e) => {e.preventDefault();}; |
| 14 window.addEventListener('touchstart', handler); |
| 15 eventSender.addTouchPoint(15, 15); |
| 16 eventSender.touchStart(); |
| 17 eventSender.clearTouchPoints(); |
| 18 window.removeEventListener('touchstart', handler); |
| 19 }, 'Forced passive event listener'); |
| 20 test(function() { |
| 21 var handler = (e) => {e.preventDefault();}; |
| 22 window.addEventListener('touchstart', handler); |
| 23 eventSender.addTouchPoint(15, 70); |
| 24 eventSender.touchStart(); |
| 25 window.removeEventListener('touchstart', handler); |
| 26 }, 'Forced passive event listener with touch-action'); |
| 27 </script> |
| 28 </body> |
| OLD | NEW |