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

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Issue 2569053002: Non-composited scrollbars don't fade out when mouse is over. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index 3d209f9e6ea7813e7907d879136736c0439b5854..c4077ee36b417eb519afec7fa2615eab48881717 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -10987,6 +10987,18 @@ TEST_F(WebFrameTest, TestNonCompositedOverlayScrollbarsFade) {
testing::runDelayedTasks(kMockOverlayFadeOutDelayMs);
EXPECT_TRUE(scrollableArea->scrollbarsHidden());
+ // Non-composited scrollbars don't fade out while mouse is over.
+ EXPECT_TRUE(scrollableArea->verticalScrollbar());
+ scrollableArea->setScrollOffset(ScrollOffset(20, 20), ProgrammaticScroll,
+ ScrollBehaviorInstant);
+ EXPECT_FALSE(scrollableArea->scrollbarsHidden());
+ scrollableArea->mouseEnteredScrollbar(*scrollableArea->verticalScrollbar());
+ testing::runDelayedTasks(kMockOverlayFadeOutDelayMs);
+ EXPECT_FALSE(scrollableArea->scrollbarsHidden());
+ scrollableArea->mouseExitedScrollbar(*scrollableArea->verticalScrollbar());
+ testing::runDelayedTasks(kMockOverlayFadeOutDelayMs);
+ EXPECT_TRUE(scrollableArea->scrollbarsHidden());
+
mockOverlayTheme.setOverlayScrollbarFadeOutDelay(0.0);
}
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698