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

Issue 1268643002: [Views] Fix WidgetTest.GetRestoredBounds (Closed)

Created:
5 years, 4 months ago by jackhou1
Modified:
5 years, 4 months ago
Reviewers:
tapted, sky
CC:
chromium-reviews, tfarina, tdanderson+views_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Views] Fix WidgetTest.GetRestoredBounds Test was failing on Mac because ViewsTestHelperMac::TearDown() now DCHECKs that all Widgets are closed (added in r334985). Fix this by closing the Widget at end of test. Also re-enable this test on Win. It's unfortunately still broken on Linux (see bug). Also re-write the test a bit to make it clearer. BUG=378134, 515369 Committed: https://crrev.com/1456431501bdaf8c9362e25343b7393126a722af Cr-Commit-Position: refs/heads/master@{#341643}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comments. #

Patch Set 3 : Clean up test. #

Patch Set 4 : Use ScopedFakeNSWindowFullscreen. #

Patch Set 5 : Disable on Linux. #

Total comments: 8

Patch Set 6 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -23 lines) Patch
M ui/views/widget/widget_unittest.cc View 1 2 3 4 5 2 chunks +42 lines, -23 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
jackhou1
tapted, PTAL
5 years, 4 months ago (2015-07-30 02:49:41 UTC) #2
tapted
you have almost depleted my yak cannon https://codereview.chromium.org/1268643002/diff/1/ui/views/widget/widget_unittest.cc File ui/views/widget/widget_unittest.cc (right): https://codereview.chromium.org/1268643002/diff/1/ui/views/widget/widget_unittest.cc#newcode1286 ui/views/widget/widget_unittest.cc:1286: #if defined(OS_MACOSX) ...
5 years, 4 months ago (2015-07-30 03:04:35 UTC) #3
jackhou1
https://codereview.chromium.org/1268643002/diff/1/ui/views/widget/widget_unittest.cc File ui/views/widget/widget_unittest.cc (right): https://codereview.chromium.org/1268643002/diff/1/ui/views/widget/widget_unittest.cc#newcode1286 ui/views/widget/widget_unittest.cc:1286: #if defined(OS_MACOSX) On 2015/07/30 03:04:35, tapted wrote: > I ...
5 years, 4 months ago (2015-07-30 06:18:14 UTC) #4
tapted
lgtm - just some nits Looks like there might already be a bug for the ...
5 years, 4 months ago (2015-07-30 06:50:18 UTC) #5
jackhou1
https://codereview.chromium.org/1268643002/diff/80001/ui/views/widget/widget_unittest.cc File ui/views/widget/widget_unittest.cc (right): https://codereview.chromium.org/1268643002/diff/80001/ui/views/widget/widget_unittest.cc#newcode1288 ui/views/widget/widget_unittest.cc:1288: #if !defined(OS_CHROMEOS) && !defined(OS_LINUX) On 2015/07/30 06:50:18, tapted wrote: ...
5 years, 4 months ago (2015-07-30 07:25:04 UTC) #6
jackhou1
sky, please review for OWNERS
5 years, 4 months ago (2015-07-31 00:58:39 UTC) #8
sky
LGTM
5 years, 4 months ago (2015-08-03 15:47:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1268643002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1268643002/100001
5 years, 4 months ago (2015-08-03 23:11:35 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 4 months ago (2015-08-03 23:38:54 UTC) #13
commit-bot: I haz the power
5 years, 4 months ago (2015-08-03 23:39:38 UTC) #14
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/1456431501bdaf8c9362e25343b7393126a722af
Cr-Commit-Position: refs/heads/master@{#341643}

Powered by Google App Engine
This is Rietveld 408576698