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

Side by Side Diff: ui/views/corewm/tooltip_controller_unittest.cc

Issue 1995923002: Disable TooltipControllerCaptureTest.Capture on windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/corewm/tooltip_controller.h" 5 #include "ui/views/corewm/tooltip_controller.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "ui/aura/client/cursor_client.h" 10 #include "ui/aura/client/cursor_client.h"
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 helper_->FireTooltipTimer(); 462 helper_->FireTooltipTimer();
463 463
464 EXPECT_TRUE(helper_->IsTooltipVisible()); 464 EXPECT_TRUE(helper_->IsTooltipVisible());
465 view_->GetWidget()->ReleaseCapture(); 465 view_->GetWidget()->ReleaseCapture();
466 EXPECT_FALSE(helper_->IsTooltipVisible()); 466 EXPECT_FALSE(helper_->IsTooltipVisible());
467 EXPECT_TRUE(helper_->GetTooltipWindow() == NULL); 467 EXPECT_TRUE(helper_->GetTooltipWindow() == NULL);
468 } 468 }
469 469
470 // Disabled on linux as DesktopScreenX11::GetWindowAtScreenPoint() doesn't 470 // Disabled on linux as DesktopScreenX11::GetWindowAtScreenPoint() doesn't
471 // consider z-order. 471 // consider z-order.
472 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 472 // Disabled on Windows due to failing bots. http://crbug.com/604479
473 #if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_WIN)
473 #define MAYBE_Capture DISABLED_Capture 474 #define MAYBE_Capture DISABLED_Capture
474 #else 475 #else
475 #define MAYBE_Capture Capture 476 #define MAYBE_Capture Capture
476 #endif 477 #endif
477 // Verifies the correct window is found for tooltips when there is a capture. 478 // Verifies the correct window is found for tooltips when there is a capture.
478 TEST_F(TooltipControllerCaptureTest, MAYBE_Capture) { 479 TEST_F(TooltipControllerCaptureTest, MAYBE_Capture) {
479 const base::string16 tooltip_text(ASCIIToUTF16("1")); 480 const base::string16 tooltip_text(ASCIIToUTF16("1"));
480 const base::string16 tooltip_text2(ASCIIToUTF16("2")); 481 const base::string16 tooltip_text2(ASCIIToUTF16("2"));
481 482
482 widget_->SetBounds(gfx::Rect(0, 0, 200, 200)); 483 widget_->SetBounds(gfx::Rect(0, 0, 200, 200));
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 helper_->FireTooltipTimer(); 796 helper_->FireTooltipTimer();
796 tooltip_bounds1 = test_tooltip_->location(); 797 tooltip_bounds1 = test_tooltip_->location();
797 798
798 EXPECT_NE(tooltip_bounds1_1, tooltip_bounds1); 799 EXPECT_NE(tooltip_bounds1_1, tooltip_bounds1);
799 EXPECT_EQ(reference_string, helper_->GetTooltipText()); 800 EXPECT_EQ(reference_string, helper_->GetTooltipText());
800 } 801 }
801 802
802 } // namespace test 803 } // namespace test
803 } // namespace corewm 804 } // namespace corewm
804 } // namespace views 805 } // namespace views
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698