blob: 3190e712b5ef749423297241b4d582005f803b78 [file] [log] [blame]
<style type="text/css">
#scrollable {
height: 1000px;
overflow: auto;
border: solid 3px #cc0000;
font-size: 80px;
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<div id="container">
<p id="description"></p>
For manual testing, hold middle button in scrollable and move around mouse pointer for scrolling, then release middle button to stop scrolling.
<div id="scrollable"></div>
<div id="console"></div>
test(function() {
if (!window.eventSender)
var middleButton = 1;
var middleClickAutoscrollRadius = 15;
var middleClickAutoscrollStart = 1551;
var scrollable = document.getElementById("scrollable");
var startX = scrollable.offsetLeft + 5;
var startY = scrollable.offsetTop + 5;
var endX = startX;
var endY = scrollable.offsetTop + middleClickAutoscrollRadius + 6;
eventSender.mouseMoveTo(startX, startY);
eventSender.mouseMoveTo(endX, endY);
assert_true(internals.isUseCounted(document, middleClickAutoscrollStart));