blob: 88224e3bb4da3827b8fc1630ffd83a57c7eabe8e [file] [log] [blame]
<!DOCTYPE html>
<title>Touch Adjustment: bug 82044</title>
<script src="../resources/js-test.js"></script>
<script src="resources/touchadjustment.js"></script>
#sandbox { position: absolute; left: 0px; top: 0px; width: 400px; height: 200px; }
#div1 { position: absolute; left: 50px; top: 50px; width: 200px; height: 50px;}
#div2 { position: absolute; left: 50px; top: 100px; width: 200px; height: 50px;}
<div id=sandbox>
<div id=div1 onclick=onClick>
Some text.
<div id=div2>
Some text. <a id=a1 href="#1">A link</a>
<p id='description'></p>
<div id='console'></div>
function onClick() {
function testDirectTouches()
testTouchPoint(touchPoint(200, 90, 200), document.getElementById('div1'));
function runTests()
if (window.testRunner && window.internals && internals.touchNodeAdjustedToBestClickableNode) {
description('Test touch-adjustment on a block where we also touch the inner text and outside link.');
document.getElementById('sandbox').style.display = 'none';