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

Issue 10914242: Improve panel tests by properly waiting for expected conditions. (Closed)

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

Description

Improve panel tests by properly waiting for expected conditions. Pulled logic from PanelActiveStateObserver into a base class for reuse. Updated ActivatePanelOrTabbedWindow to apply to browserless panels. Fixed DetachedPanelBrowserTest.DrawAttentionResetOnActivate to actually create detached panels. Added guard in Panel::SetPanelBounds() to check if there is no change. Native layer doesn't always check (anymore). TBR=thakis BUG=140971, 145428, 145740, 147536, 147643 TEST=tests adjusted Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=156704

Patch Set 1 : #

Patch Set 2 : fix typo in OS_MACOSX define #

Patch Set 3 : undo changes to ActivateDeactivateBasic test #

Total comments: 6

Patch Set 4 : use NOTREACHED #

Patch Set 5 : few more active state doublechecks added #

Patch Set 6 : Synced #

Patch Set 7 : improve AutoResize test, was still flaking #

Total comments: 2

Patch Set 8 : Synced #

Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -194 lines) Patch
M chrome/browser/ui/panels/detached_panel_browsertest.cc View 1 2 3 4 5 6 7 4 chunks +11 lines, -14 lines 0 comments Download
M chrome/browser/ui/panels/docked_panel_browsertest.cc View 14 chunks +31 lines, -37 lines 0 comments Download
M chrome/browser/ui/panels/panel.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_browsertest.cc View 1 2 3 4 5 6 7 13 chunks +76 lines, -49 lines 0 comments Download
M chrome/browser/ui/panels/panel_drag_browsertest.cc View 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_gtk.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/panels/test_panel_active_state_observer.h View 2 chunks +5 lines, -21 lines 0 comments Download
M chrome/browser/ui/panels/test_panel_active_state_observer.cc View 1 chunk +5 lines, -32 lines 0 comments Download
A + chrome/browser/ui/panels/test_panel_notification_observer.h View 2 chunks +17 lines, -19 lines 0 comments Download
A + chrome/browser/ui/panels/test_panel_notification_observer.cc View 2 chunks +9 lines, -17 lines 0 comments Download
A chrome/browser/ui/panels/test_panel_strip_squeeze_observer.h View 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/ui/panels/test_panel_strip_squeeze_observer.cc View 1 chunk +39 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jennb
Try jobs are looking good so far. I'll run a few more linux ones before ...
8 years, 3 months ago (2012-09-13 00:04:13 UTC) #1
jennb
Additional notes to help with review: https://chromiumcodereview.appspot.com/10914242/diff/1006/chrome/browser/ui/panels/panel_browsertest.cc File chrome/browser/ui/panels/panel_browsertest.cc (right): https://chromiumcodereview.appspot.com/10914242/diff/1006/chrome/browser/ui/panels/panel_browsertest.cc#newcode362 chrome/browser/ui/panels/panel_browsertest.cc:362: if (panel->GetBounds().height() < ...
8 years, 3 months ago (2012-09-13 00:45:34 UTC) #2
Dmitry Titov
https://chromiumcodereview.appspot.com/10914242/diff/1006/chrome/browser/ui/panels/panel_browsertest.cc File chrome/browser/ui/panels/panel_browsertest.cc (right): https://chromiumcodereview.appspot.com/10914242/diff/1006/chrome/browser/ui/panels/panel_browsertest.cc#newcode893 chrome/browser/ui/panels/panel_browsertest.cc:893: Panel* panel1 = CreatePanel("Panel1"); I wonder why do we ...
8 years, 3 months ago (2012-09-13 18:19:00 UTC) #3
jennb
http://codereview.chromium.org/10914242/diff/1006/chrome/browser/ui/panels/panel_gtk.cc File chrome/browser/ui/panels/panel_gtk.cc (right): http://codereview.chromium.org/10914242/diff/1006/chrome/browser/ui/panels/panel_gtk.cc#newcode955 chrome/browser/ui/panels/panel_gtk.cc:955: GtkAllocation allocation; On 2012/09/13 18:19:00, Dmitry Titov wrote: > ...
8 years, 3 months ago (2012-09-13 18:40:48 UTC) #4
Dmitry Titov
Very nice fixes. Hope they'll kill the flakiness! LGTM.
8 years, 3 months ago (2012-09-13 18:51:58 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/10914242/8003
8 years, 3 months ago (2012-09-13 18:55:16 UTC) #6
commit-bot: I haz the power
Presubmit check for 10914242-8003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-13 18:55:21 UTC) #7
Dmitry Titov
still lgtm, with a comment: https://chromiumcodereview.appspot.com/10914242/diff/7030/chrome/browser/ui/panels/panel_browsertest.cc File chrome/browser/ui/panels/panel_browsertest.cc (right): https://chromiumcodereview.appspot.com/10914242/diff/7030/chrome/browser/ui/panels/panel_browsertest.cc#newcode453 chrome/browser/ui/panels/panel_browsertest.cc:453: chrome::NOTIFICATION_PANEL_STRIP_UPDATED, Should this too ...
8 years, 3 months ago (2012-09-13 23:06:21 UTC) #8
jennb
https://chromiumcodereview.appspot.com/10914242/diff/7030/chrome/browser/ui/panels/panel_browsertest.cc File chrome/browser/ui/panels/panel_browsertest.cc (right): https://chromiumcodereview.appspot.com/10914242/diff/7030/chrome/browser/ui/panels/panel_browsertest.cc#newcode453 chrome/browser/ui/panels/panel_browsertest.cc:453: chrome::NOTIFICATION_PANEL_STRIP_UPDATED, On 2012/09/13 23:06:21, Dmitry Titov wrote: > Should ...
8 years, 3 months ago (2012-09-13 23:10:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennb@chromium.org/10914242/7030
8 years, 3 months ago (2012-09-13 23:20:18 UTC) #10
commit-bot: I haz the power
Retried try job too often for step(s) interactive_ui_tests, jingle_unittests, gpu_unittests, base_unittests, sync_integration_tests, sql_unittests, content_unittests, safe_browsing_tests, ...
8 years, 3 months ago (2012-09-13 23:32:05 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennb@chromium.org/10914242/35
8 years, 3 months ago (2012-09-14 00:44:58 UTC) #12
jennb
8 years, 3 months ago (2012-09-14 01:02:47 UTC) #13
On 2012/09/14 00:44:58, I haz the power (commit-bot) wrote:
> CQ is trying da patch. Follow status at
> https://chromium-status.appspot.com/cq/jennb%40chromium.org/10914242/35

FYI - landed this manually due to CQ having problems applying the patch. Seems
to be a bug that affects others too.

Powered by Google App Engine
This is Rietveld 408576698