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

Issue 296523002: Fix and re-enable some browser focus interactive ui tests. (Closed)

Created:
6 years, 7 months ago by msw
Modified:
6 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, Jay Civelli, Finnur, Ilya Sherman, Paweł Hajdan Jr., rvargas (doing something else), ckocagil, Elliot Glaysher, pkotwicz
Visibility:
Public.

Description

Fix and re-enable some browser focus interactive ui tests. Fix FocusTraversal[OnInterstitial] except *OnInterstitial on Mac :( Fix InterstitialFocus and FindFocusTest. Add a TestFocusTraversal helper function consolidated from tests. Simplify TestInterstitialPage and add a WaitForInterstitial helper. Move test server init to a common SetUpOnMainThread. Remove unnecessary helpers and includes. TODO(followup): Fix more tests! TODO(followup): s/DisableFindBarAnimationsDuringTesting/ScopedAnimationDurationScaleMode/? BUG=60973, 62544, 67301, 81451, 109770, 163931 TEST=Automated tests work and stay enabled... R=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272259

Patch Set 1 #

Patch Set 2 : Get interstitial tests working. #

Patch Set 3 : Fix FocusTraversal[OnInterstitial], InterstitialFocus, and FindFocusTest. #

Patch Set 4 : Debugging Mac; TestFocusTraversal reverse is broken. #

Patch Set 5 : Continued debugging of insane behavior on Mac. #

Patch Set 6 : Fix InterstitialFocus; disable FocusTraversalOnInterstitial on Mac; cleanup. #

Total comments: 4

Patch Set 7 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -446 lines) Patch
M chrome/browser/ui/browser_focus_uitest.cc View 1 2 3 4 5 6 21 chunks +158 lines, -446 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
msw
Hey Scott, please take a look; thanks! (review from those CC'ed is welcome)
6 years, 7 months ago (2014-05-21 23:57:38 UTC) #1
sky
https://codereview.chromium.org/296523002/diff/140001/chrome/browser/ui/browser_focus_uitest.cc File chrome/browser/ui/browser_focus_uitest.cc (right): https://codereview.chromium.org/296523002/diff/140001/chrome/browser/ui/browser_focus_uitest.cc#newcode417 chrome/browser/ui/browser_focus_uitest.cc:417: EXPECT_TRUE(IsViewFocused(VIEW_ID_TAB_CONTAINER)); Shouldn't this be an ASSERT? Is there any ...
6 years, 7 months ago (2014-05-22 04:13:35 UTC) #2
msw
https://codereview.chromium.org/296523002/diff/140001/chrome/browser/ui/browser_focus_uitest.cc File chrome/browser/ui/browser_focus_uitest.cc (right): https://codereview.chromium.org/296523002/diff/140001/chrome/browser/ui/browser_focus_uitest.cc#newcode417 chrome/browser/ui/browser_focus_uitest.cc:417: EXPECT_TRUE(IsViewFocused(VIEW_ID_TAB_CONTAINER)); On 2014/05/22 04:13:35, sky wrote: > Shouldn't this ...
6 years, 7 months ago (2014-05-22 04:46:53 UTC) #3
sky
LGTM
6 years, 7 months ago (2014-05-22 14:01:36 UTC) #4
msw
The CQ bit was checked by msw@chromium.org
6 years, 7 months ago (2014-05-22 14:54:05 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/296523002/160001
6 years, 7 months ago (2014-05-22 14:55:26 UTC) #6
commit-bot: I haz the power
Change committed as 272259
6 years, 7 months ago (2014-05-22 19:00:27 UTC) #7
tapted
6 years, 7 months ago (2014-05-23 06:12:12 UTC) #8
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/299703018/ by tapted@chromium.org.

The reason for reverting is: Tests failing on WinXP waterfall bot:

2 tests timed out:
    BrowserFocusTest.FocusTraversal
    BrowserFocusTest.FocusTraversalOnInterstitial

Starting

http://build.chromium.org/p/chromium.win/builders/XP%20Tests%20%281%29/builds....

Powered by Google App Engine
This is Rietveld 408576698