Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / touch / resources / emulated-touch-iframe2.html
blob6c5c0c94bb132a095d6fc6dd19a9f4add7b40ac1
1 <html>
2 <body onload="parent.runTest()">
3 <div id='mydiv' style='width:100px;height:100px;position:absolute;top:0px; left:0px; background-color:blue;'></div>
4 <script type='text/javascript'>
5 var myDiv = document.getElementById('mydiv');
6 myDiv.addEventListener('touchstart', function() { parent.handleTouchstart(); }, false);
7 myDiv.addEventListener('touchmove', function() { parent.handleTouchmove(); }, false);
8 myDiv.addEventListener('touchend', function() { parent.testComplete(); }, false);
9 </script>
10 </body>
11 </html>