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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura_unittest.cc

Issue 784883002: Removes the old <select> popup code Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | content/child/blink_platform_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc b/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
index 511c68cec1160d0ca43fd6a314ef3593f5832b65..0774d2b10abd8b186bdb9388325fb5d8e241a9ed 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
@@ -792,31 +792,6 @@ TEST_F(RenderWidgetHostViewAuraTest, DestroyPopupTapOutsidePopup) {
view_ = NULL;
}
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
-
-// On Desktop Linux, select boxes need mouse capture in order to work. Test that
-// when a select box is opened via a mouse press that it retains mouse capture
-// after the mouse is released.
-TEST_F(RenderWidgetHostViewAuraTest, PopupRetainsCaptureAfterMouseRelease) {
- parent_view_->SetBounds(gfx::Rect(10, 10, 400, 400));
- parent_view_->Focus();
- EXPECT_TRUE(parent_view_->HasFocus());
-
- ui::test::EventGenerator generator(
- parent_view_->GetNativeView()->GetRootWindow(), gfx::Point(300, 300));
- generator.PressLeftButton();
-
- view_->SetPopupType(blink::WebPopupTypeSelect);
- view_->InitAsPopup(parent_view_, gfx::Rect(10, 10, 100, 100));
- ASSERT_TRUE(view_->NeedsMouseCapture());
- aura::Window* window = view_->GetNativeView();
- EXPECT_TRUE(window->HasCapture());
-
- generator.ReleaseLeftButton();
- EXPECT_TRUE(window->HasCapture());
-}
-#endif
-
// Test that select boxes close when their parent window loses focus (e.g. due
// to an alert or system modal dialog).
TEST_F(RenderWidgetHostViewAuraTest, PopupClosesWhenParentLosesFocus) {
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | content/child/blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698