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

Unified Diff: chrome/browser/ui/views/ash/tab_scrubber_browsertest.cc

Issue 2842553005: Fix test TabScrubberTest.FullScreenBrowser (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/ash/tab_scrubber_browsertest.cc
diff --git a/chrome/browser/ui/views/ash/tab_scrubber_browsertest.cc b/chrome/browser/ui/views/ash/tab_scrubber_browsertest.cc
index 8e484e30e6996af4a8c79d591df688ff068bf183..7d890c402acefbf64f27c9293da2a00888d2c2e7 100644
--- a/chrome/browser/ui/views/ash/tab_scrubber_browsertest.cc
+++ b/chrome/browser/ui/views/ash/tab_scrubber_browsertest.cc
@@ -22,6 +22,7 @@
#include "chrome/browser/ui/views/tabs/tab_strip.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/base/in_process_browser_test.h"
+#include "chrome/test/base/interactive_test_utils.h"
#include "content/public/browser/notification_service.h"
#include "content/public/common/url_constants.h"
#include "content/public/test/test_utils.h"
@@ -329,8 +330,11 @@ IN_PROC_BROWSER_TEST_F(TabScrubberTest, MultiBrowser) {
}
// Tests that tab scrubbing works correctly for a full-screen browser.
-// TODO(crbug.com/708612): Re-enable the test after the bug is fixed.
-IN_PROC_BROWSER_TEST_F(TabScrubberTest, DISABLED_FullScreenBrowser) {
+IN_PROC_BROWSER_TEST_F(TabScrubberTest, FullScreenBrowser) {
+ // Initializes the position of mouse. Makes the mouse away from the tabstrip
+ // to prevent any interference on this test.
+ ASSERT_TRUE(ui_test_utils::SendMouseMoveSync(
+ gfx::Point(0, browser()->window()->GetBounds().height())));
AddTabs(browser(), 6);
browser()->tab_strip_model()->ActivateTabAt(4, false);
« 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