OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <link rel="stylesheet" href="compositor-touch-hit-rects.css"> |
| 5 <style> |
| 6 html { |
| 7 font-size: 10px; |
| 8 } |
| 9 #tests { |
| 10 /* Make sure the html/body nodes have 0 height */ |
| 11 position: absolute; |
| 12 } |
| 13 </style> |
| 14 </head> |
| 15 <body> |
| 16 <div id='tests'> |
| 17 Document with touch handlers. |
| 18 <br><br> |
| 19 <br><br><br> |
| 20 </div> |
| 21 <script> |
| 22 if (window.testRunner) |
| 23 document.documentElement.setAttribute('dumpRenderTree', 'true'); |
| 24 |
| 25 function handler() {}; |
| 26 frameElement.addHandlers = function() { |
| 27 document.addEventListener('touchstart', handler, false); |
| 28 } |
| 29 frameElement.removeHandlers = function() { |
| 30 document.removeEventListener('touchstart', handler, false); |
| 31 } |
| 32 </script> |
| 33 |
| 34 </body> |
| 35 </html> |
OLD | NEW |