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

Unified Diff: chrome/browser/chromeos/accessibility/select_to_speak_event_handler_unittest.cc

Issue 2813083003: Finish implementation of automation API hit testing for the desktop. (Closed)
Patch Set: Delete test that won't be relevant soon anyway Created 3 years, 8 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: chrome/browser/chromeos/accessibility/select_to_speak_event_handler_unittest.cc
diff --git a/chrome/browser/chromeos/accessibility/select_to_speak_event_handler_unittest.cc b/chrome/browser/chromeos/accessibility/select_to_speak_event_handler_unittest.cc
index 201677459e7ddf7ea7f2b7c0bcf1190a10b129ff..d3a986547fecb526b8ecdaddbac2a45ab2e96593 100644
--- a/chrome/browser/chromeos/accessibility/select_to_speak_event_handler_unittest.cc
+++ b/chrome/browser/chromeos/accessibility/select_to_speak_event_handler_unittest.cc
@@ -219,30 +219,6 @@ TEST_F(SelectToSpeakEventHandlerTest, SearchPlusClickTwice) {
EXPECT_FALSE(event_capturer_.last_key_event());
}
-TEST_F(SelectToSpeakEventHandlerTest, SearchPlusMouseThenCancel) {
- // If the user holds the Search key and then presses the mouse button,
- // but then releases the Search key first while the mouse is still down,
- // a cancel AX event is sent and the subsequent mouse up is canceled too.
-
- generator_->PressKey(ui::VKEY_LWIN, ui::EF_COMMAND_DOWN);
- ASSERT_TRUE(event_capturer_.last_key_event());
- EXPECT_FALSE(event_capturer_.last_key_event()->handled());
-
- generator_->set_current_location(gfx::Point(100, 12));
- generator_->PressLeftButton();
- EXPECT_FALSE(event_capturer_.last_mouse_event());
- EXPECT_TRUE(event_delegate_->CapturedAXEvent(ui::AX_EVENT_MOUSE_PRESSED));
-
- event_capturer_.Reset();
- generator_->ReleaseKey(ui::VKEY_LWIN, ui::EF_COMMAND_DOWN);
- EXPECT_FALSE(event_capturer_.last_key_event());
-
- EXPECT_TRUE(event_delegate_->CapturedAXEvent(ui::AX_EVENT_MOUSE_CANCELED));
-
- generator_->ReleaseLeftButton();
- EXPECT_FALSE(event_capturer_.last_mouse_event());
-}
-
TEST_F(SelectToSpeakEventHandlerTest, SearchPlusKeyIgnoresClicks) {
// If the user presses the Search key and then some other key,
// we should assume the user does not want select-to-speak, and

Powered by Google App Engine
This is Rietveld 408576698