blob: c7253e38267eb381958ee71e2f153b76f1c19634 [file] [log] [blame]
body {
cursor: hand;
function log(text)
var div = document.createElement("div");
div.textContent = text;
function test()
if (window.testRunner)
if (!window.eventSender)
eventSender.dragMode = false;
eventSender.mouseMoveTo(50, 50);
var originalInfo = internals.getCurrentCursorInfo();
// The view is 800x600 in tests.
eventSender.mouseMoveTo(799, 500);
var scrollbarInfo = internals.getCurrentCursorInfo();
log("Hovered pointer: " + originalInfo);
log("Scrollbar pointer: " + scrollbarInfo);
<body onload="test()" style="height: 2000px">
This tests that hovering over a scrollbar resets the mouse cursor to the default pointer.<br>
<div id="console"></div>