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

Issue 2808223002: Add test for ContentSettingBubbleContents

Created:
3 years, 8 months ago by Charlie Harrison
Modified:
3 years, 8 months ago
Reviewers:
msw
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add test for ContentSettingBubbleContents This CL adds a regression test for the issue fixed in [1]. Namely, that a missed layout causes the updated "done" button not to resize properly when its text changes. [1]: https://codereview.chromium.org/2804113003/ BUG=689992

Patch Set 1 #

Total comments: 38

Patch Set 2 : msw review #

Patch Set 3 : include native_widget_types #

Patch Set 4 : GetNativeWindow(), avoid implicit type #

Total comments: 5

Patch Set 5 : Add test for ContentSettingBubbleContents #

Patch Set 6 : s/MoveMouseTo/MoveMouseToInHost/ #

Patch Set 7 : set correct layout provider #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -0 lines) Patch
A chrome/browser/ui/views/content_setting_bubble_contents_unittest.cc View 1 2 3 4 5 6 1 chunk +136 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 37 (29 generated)
Charlie Harrison
msw: Here is the unit test as promised. The portion I am most unsure about ...
3 years, 8 months ago (2017-04-10 21:52:05 UTC) #4
msw
lots of minor comments suggesting possible ways to simplify, but generally this seems fine and ...
3 years, 8 months ago (2017-04-11 01:19:53 UTC) #7
Charlie Harrison
Thanks for the detailed review. It looks like the ContentSettingBubbleContents also doesn't really need a ...
3 years, 8 months ago (2017-04-11 12:20:46 UTC) #14
msw
nice, lgtm with a nit and a q https://codereview.chromium.org/2808223002/diff/60001/chrome/browser/ui/views/content_setting_bubble_contents_unittest.cc File chrome/browser/ui/views/content_setting_bubble_contents_unittest.cc (right): https://codereview.chromium.org/2808223002/diff/60001/chrome/browser/ui/views/content_setting_bubble_contents_unittest.cc#newcode71 chrome/browser/ui/views/content_setting_bubble_contents_unittest.cc:71: typedef ...
3 years, 8 months ago (2017-04-11 17:19:45 UTC) #21
Charlie Harrison
https://codereview.chromium.org/2808223002/diff/60001/chrome/browser/ui/views/content_setting_bubble_contents_unittest.cc File chrome/browser/ui/views/content_setting_bubble_contents_unittest.cc (right): https://codereview.chromium.org/2808223002/diff/60001/chrome/browser/ui/views/content_setting_bubble_contents_unittest.cc#newcode71 chrome/browser/ui/views/content_setting_bubble_contents_unittest.cc:71: typedef views::ViewsTestBase ContentSettingBubbleContentsTest; On 2017/04/11 17:19:45, msw wrote: > ...
3 years, 8 months ago (2017-04-11 19:20:57 UTC) #23
msw
lgtm https://codereview.chromium.org/2808223002/diff/60001/chrome/browser/ui/views/content_setting_bubble_contents_unittest.cc File chrome/browser/ui/views/content_setting_bubble_contents_unittest.cc (right): https://codereview.chromium.org/2808223002/diff/60001/chrome/browser/ui/views/content_setting_bubble_contents_unittest.cc#newcode105 chrome/browser/ui/views/content_setting_bubble_contents_unittest.cc:105: ui::test::EventGenerator event_generator(widget->GetNativeWindow()); On 2017/04/11 19:20:57, Charlie Harrison wrote: ...
3 years, 8 months ago (2017-04-11 19:27:35 UTC) #25
Charlie Harrison
Hmm, it looks like the checkbox is not getting checked on Mac. Is there anything ...
3 years, 8 months ago (2017-04-11 20:28:03 UTC) #28
msw
3 years, 8 months ago (2017-04-11 20:59:29 UTC) #29
On 2017/04/11 20:28:03, Charlie Harrison wrote:
> Hmm, it looks like the checkbox is not getting checked on Mac. Is there
anything
> I'm missing? 
> 
> I don't normally do development on Mac so I'll have some additional latency
for
> me to manually debug.

I don't work on Mac much either, sorry. It looks like it does find the checkbox,
but the event doesn't toggle the checked state? Hmm... Maybe ping mblsha@ for
EventGenerator issues on Mac, or ping tapted@ for more general Mac Views
questions.

Powered by Google App Engine
This is Rietveld 408576698