chromium/third_party/blink/web_tests/compositing/gestures/gesture-tapHighlight-simple-window-scroll-expected.html

<!DOCTYPE html>
<html>
<head>
<script src="resources/link-highlight-helper.js"></script>
<link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css">
</head>
<body onload="runTest();">
<div style="will-change: transform; width=1600px; height: 1000px">
<div style="position: relative; left: 100; top: 50;">
<a href="">Link 1</a></br>
<a href="">Link 2</a></br>
<a href="">Link 3</a></br>
<a class="fauxHighlight" href="" id="targetLink">&nbsp;Target Link&nbsp;</a>
</div>
<div style="position: relative; left: 100; top: 150; width: 700;">
This test is successful if "Target Link" above is covered in a green rectangle with square corners,
and the window is partially scrolled in both directions.
</div>
</div>
<div style="width: 1000px; height: 10px"></div>
<script>
function runTest() {
    var clientRect = document.getElementById('targetLink').getBoundingClientRect();
    x = (clientRect.left + clientRect.right) / 2;
    y = (clientRect.top + clientRect.bottom) / 2;
    if (window.testRunner)
        testRunner.waitUntilDone();

    if (window.eventSender) {
        //window.scrollTo(50, 30)
        window.setTimeout(function() { testRunner.notifyDone(); }, 0);
    } else {
        debug("This test requires DumpRenderTree.");
    }
}
</script>
</script>
</body>
</html>