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

Unified Diff: ui/aura/shared/compound_event_filter_unittest.cc

Issue 10831135: aura: Fix hiding the cursor on touch events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « ui/aura/shared/compound_event_filter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/shared/compound_event_filter_unittest.cc
diff --git a/ui/aura/shared/compound_event_filter_unittest.cc b/ui/aura/shared/compound_event_filter_unittest.cc
index 4709a97bf7472886e1a044e96bfa791a76745e2b..85ee5808495178bc85ee342e986d0e0b9eb6f0d6 100644
--- a/ui/aura/shared/compound_event_filter_unittest.cc
+++ b/ui/aura/shared/compound_event_filter_unittest.cc
@@ -80,8 +80,15 @@ TEST_F(CompoundEventFilterTest, TouchHidesCursor) {
root_window()->AsRootWindowHostDelegate()->OnHostTouchEvent(&release);
EXPECT_FALSE(cursor_client.IsCursorVisible());
+ // Move the cursor again. The cursor should be visible.
root_window()->AsRootWindowHostDelegate()->OnHostMouseEvent(&mouse);
EXPECT_TRUE(cursor_client.IsCursorVisible());
+
+ // Now activate the window and press on it again.
+ aura::client::GetActivationClient(
+ root_window())->ActivateWindow(window.get());
+ root_window()->AsRootWindowHostDelegate()->OnHostTouchEvent(&press);
+ EXPECT_FALSE(cursor_client.IsCursorVisible());
}
} // namespace test
« no previous file with comments | « ui/aura/shared/compound_event_filter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698