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

Issue 10689082: Fix flaky linux panel tests related to active state checks (Closed)

Created:
8 years, 5 months ago by jennb
Modified:
8 years, 5 months ago
Reviewers:
dcheng
CC:
chromium-reviews, jennb, jianli, Dmitry Titov, dcheng, Nico
Visibility:
Public.

Description

Fix flaky linux panel tests related to active state checks. Set up signal that waits for expected active state transitioning. Make sure we consume previous notifications before waiting on new ones. BUG=135377 TEST=re-enabled Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=145804

Patch Set 1 : wait for window being active before deactivating (again) #

Patch Set 2 : More log msgs during panel creation #

Patch Set 3 : no RunAllPending before setting up signal #

Patch Set 4 : Cleaned up log msgs. Add fix to new tests. #

Total comments: 4

Patch Set 5 : log msg to see when active state changes #

Patch Set 6 : added panel active state observer #

Patch Set 7 : Synced and re-enabled tests for linux #

Patch Set 8 : remember active state transition has been seen #

Patch Set 9 : remove log msg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -116 lines) Patch
M chrome/browser/ui/panels/base_panel_browser_test.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/panels/base_panel_browser_test.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/panels/detached_panel_browsertest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/panels/old_base_panel_browser_test.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/panels/old_detached_panel_browsertest.cc View 1 2 3 4 5 6 5 chunks +3 lines, -22 lines 0 comments Download
M chrome/browser/ui/panels/old_docked_panel_browsertest.cc View 1 2 3 4 5 6 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/panels/old_panel_and_desktop_notification_browsertest.cc View 1 2 3 4 5 6 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/panels/old_panel_browsertest.cc View 1 2 3 4 5 6 9 chunks +8 lines, -56 lines 0 comments Download
M chrome/browser/ui/panels/old_panel_drag_browsertest.cc View 1 2 3 4 5 6 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/panels/old_panel_resize_browsertest.cc View 1 2 3 4 5 6 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/panels/panel_browsertest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/browser/ui/panels/test_panel_active_state_observer.h View 1 2 3 4 5 6 7 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/ui/panels/test_panel_active_state_observer.cc View 1 2 3 4 5 6 7 1 chunk +49 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jennb
8 years, 5 months ago (2012-07-03 22:59:51 UTC) #1
dcheng
http://codereview.chromium.org/10689082/diff/14001/chrome/browser/ui/panels/old_base_panel_browser_test.cc File chrome/browser/ui/panels/old_base_panel_browser_test.cc (right): http://codereview.chromium.org/10689082/diff/14001/chrome/browser/ui/panels/old_base_panel_browser_test.cc#newcode260 chrome/browser/ui/panels/old_base_panel_browser_test.cc:260: EXPECT_TRUE(expect_active == is_active); EXPECT_EQ http://codereview.chromium.org/10689082/diff/14001/chrome/browser/ui/panels/old_base_panel_browser_test.cc#newcode262 chrome/browser/ui/panels/old_base_panel_browser_test.cc:262: LOG(WARNING) << "Expected ...
8 years, 5 months ago (2012-07-03 23:04:25 UTC) #2
jennb
On Tue, Jul 3, 2012 at 4:04 PM, <dcheng@chromium.org> wrote: > > http://codereview.chromium.**org/10689082/diff/14001/** > chrome/browser/ui/panels/old_**base_panel_browser_test.cc<http://codereview.chromium.org/10689082/diff/14001/chrome/browser/ui/panels/old_base_panel_browser_test.cc> ...
8 years, 5 months ago (2012-07-03 23:08:55 UTC) #3
jennb
Ready for another look.
8 years, 5 months ago (2012-07-09 21:50:22 UTC) #4
dcheng
lgtm
8 years, 5 months ago (2012-07-09 22:29:32 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennb@chromium.org/10689082/34001
8 years, 5 months ago (2012-07-09 22:30:12 UTC) #6
commit-bot: I haz the power
8 years, 5 months ago (2012-07-09 23:36:01 UTC) #7
Commit queue rejected this change because the description was changed
between the time the change entered the commit queue and the time it
was ready to commit. You can safely check the commit box again.

Powered by Google App Engine
This is Rietveld 408576698