| <!DOCTYPE html> |
| <style> |
| .hidden { position: relative; overflow: hidden; width: 40px; height: 20px; } |
| </style> |
| <a id="link" href="#"> |
| <div class='hidden'></div> |
| <div class='hidden'></div> |
| <div><b><div><i><div></div><div></div></i></div></b></div> |
| <img src="resources/greenbox.png" style=" width:700px; height:280px;"> |
| </a> |
| <p id="description"></p> |
| <div id="console"></div> |
| <script src="../../../../resources/js-test.js"></script> |
| <script> |
| jsTestIsAsync = true; |
| window.onload = function() { |
| description('The test succeeds if this does not hang or crash when getting the y conner\'s position from inline renderer.\n This test passes if it does not timeout.'); |
| if (window.eventSender) { |
| var link = document.getElementById('link'); |
| var tx = link.offsetLeft + 4; |
| var ty = link.offsetTop + 4; |
| |
| link.addEventListener('click', function(e) { debug('PASS'); }); |
| |
| eventSender.gestureTapDown(tx, ty); |
| eventSender.gestureShowPress(tx, ty); |
| eventSender.gestureTap(tx, ty); |
| } |
| finishJSTest(); |
| } |
| </script> |