Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: third_party/WebKit/LayoutTests/fast/events/resources/middleClickAutoscroll.js

Issue 2918053002: Move middle-click autoscroll to synthetic fling. (Closed)
Patch Set: Delete redundant cursor shape print Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/events/resources/middleClickAutoscroll.js
diff --git a/third_party/WebKit/LayoutTests/fast/events/resources/middleClickAutoscroll.js b/third_party/WebKit/LayoutTests/fast/events/resources/middleClickAutoscroll.js
index 73de8b2f999510a65345e33ee976a7b69abdd9cc..f1763b8405b0c55f292daa69a672cca552e2c5d7 100644
--- a/third_party/WebKit/LayoutTests/fast/events/resources/middleClickAutoscroll.js
+++ b/third_party/WebKit/LayoutTests/fast/events/resources/middleClickAutoscroll.js
@@ -50,6 +50,8 @@ function testPanScroll(param)
return;
scrolled = true;
testPassed('autoscroll started');
+ var cursorInfo = window.internals.getCurrentCursorInfo();
+ debug("Mouse cursor shape: " + cursorInfo);
if (window.eventSender) {
if (param.clickOrDrag == 'click')
@@ -64,6 +66,12 @@ function testPanScroll(param)
noMoreScroll = true;
window.setTimeout(function() {
testPassed('autoscroll stopped');
+ var cursorInfo = window.internals.getCurrentCursorInfo();
+ if (cursorInfo == "type=Pointer hotSpot=0,0" || cursorInfo == "type=IBeam hotSpot=0,0")
+ testPassed('Mouse cursor cleared');
+ else
+ testFailed('Mouse cursor shape: ' + cursorInfo);
+
finishTest();
}, autoscrollInterval * 2);
};

Powered by Google App Engine
This is Rietveld 408576698