|
|
Created:
9 years ago by jennb Modified:
9 years ago Reviewers:
levin CC:
chromium-reviews, prasadt, jianli, Dmitry Titov, dcheng, Paweł Hajdan Jr. Base URL:
svn://svn.chromium.org/chrome/trunk/src Visibility:
Public. |
DescriptionFix AutoResize test and restore origin constants.
BUG=105445
TEST=PanelBrowserTest.AutoResize
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112842
Patch Set 1 #
Total comments: 3
Messages
Total messages: 8 (0 generated)
http://codereview.chromium.org/8785009/diff/1/chrome/browser/ui/panels/panel_... File chrome/browser/ui/panels/panel_browsertest.cc (left): http://codereview.chromium.org/8785009/diff/1/chrome/browser/ui/panels/panel_... chrome/browser/ui/panels/panel_browsertest.cc:844: set_testing_work_area(gfx::Rect(0, 0, 1200, 900)); This doesn't change the work area. Just changes a member variable in the base class. Oops.
On 2011/12/02 22:57:34, jennb wrote: > http://codereview.chromium.org/8785009/diff/1/chrome/browser/ui/panels/panel_... > File chrome/browser/ui/panels/panel_browsertest.cc (left): > > http://codereview.chromium.org/8785009/diff/1/chrome/browser/ui/panels/panel_... > chrome/browser/ui/panels/panel_browsertest.cc:844: > set_testing_work_area(gfx::Rect(0, 0, 1200, 900)); > This doesn't change the work area. Just changes a member variable in the base > class. Oops. LGTM
http://codereview.chromium.org/8785009/diff/1/chrome/browser/ui/panels/panel_... File chrome/browser/ui/panels/panel_browsertest.cc (left): http://codereview.chromium.org/8785009/diff/1/chrome/browser/ui/panels/panel_... chrome/browser/ui/panels/panel_browsertest.cc:844: set_testing_work_area(gfx::Rect(0, 0, 1200, 900)); On 2011/12/02 22:57:34, jennb wrote: > This doesn't change the work area. Just changes a member variable in the base > class. Oops. I wonder why this method exists. It appears to have been added here: http://src.chromium.org/viewvc/chrome?view=rev&revision=109588 but I don't see it being used there.
http://codereview.chromium.org/8785009/diff/1/chrome/browser/ui/panels/panel_... File chrome/browser/ui/panels/panel_browsertest.cc (left): http://codereview.chromium.org/8785009/diff/1/chrome/browser/ui/panels/panel_... chrome/browser/ui/panels/panel_browsertest.cc:844: set_testing_work_area(gfx::Rect(0, 0, 1200, 900)); On 2011/12/02 23:06:47, levin wrote: > On 2011/12/02 22:57:34, jennb wrote: > > This doesn't change the work area. Just changes a member variable in the base > > class. Oops. > I wonder why this method exists. It appears to have been added here: > http://src.chromium.org/viewvc/chrome?view=rev&revision=109588 > > but I don't see it being used there. It's used in that test to set the value to 0 so that we don't customize the work area in that one particular test. Guess that method needs a better name. I would prefer to rename it in a different patch and keep this one small, if that's ok with you?
On 2011/12/02 23:23:46, jennb wrote: > http://codereview.chromium.org/8785009/diff/1/chrome/browser/ui/panels/panel_... > File chrome/browser/ui/panels/panel_browsertest.cc (left): > > http://codereview.chromium.org/8785009/diff/1/chrome/browser/ui/panels/panel_... > chrome/browser/ui/panels/panel_browsertest.cc:844: > set_testing_work_area(gfx::Rect(0, 0, 1200, 900)); > On 2011/12/02 23:06:47, levin wrote: > > On 2011/12/02 22:57:34, jennb wrote: > > > This doesn't change the work area. Just changes a member variable in the > base > > > class. Oops. > > I wonder why this method exists. It appears to have been added here: > > http://src.chromium.org/viewvc/chrome?view=rev&revision=109588 > > > > but I don't see it being used there. > > It's used in that test to set the value to 0 so that we don't customize the work > area in that one particular test. Guess that method needs a better name. I would > prefer to rename it in a different patch and keep this one small, if that's ok > with you? Yes, of course!
On 2011/12/03 00:42:49, levin wrote: > On 2011/12/02 23:23:46, jennb wrote: > > > http://codereview.chromium.org/8785009/diff/1/chrome/browser/ui/panels/panel_... > > File chrome/browser/ui/panels/panel_browsertest.cc (left): > > > > > http://codereview.chromium.org/8785009/diff/1/chrome/browser/ui/panels/panel_... > > chrome/browser/ui/panels/panel_browsertest.cc:844: > > set_testing_work_area(gfx::Rect(0, 0, 1200, 900)); > > On 2011/12/02 23:06:47, levin wrote: > > > On 2011/12/02 22:57:34, jennb wrote: > > > > This doesn't change the work area. Just changes a member variable in the > > base > > > > class. Oops. > > > I wonder why this method exists. It appears to have been added here: > > > http://src.chromium.org/viewvc/chrome?view=rev&revision=109588 > > > > > > but I don't see it being used there. > > > > It's used in that test to set the value to 0 so that we don't customize the > work > > area in that one particular test. Guess that method needs a better name. I > would > > prefer to rename it in a different patch and keep this one small, if that's ok > > with you? > > Yes, of course! Is that a LGTM? ;-)
On 2011/12/03 01:36:09, jennb wrote: > On 2011/12/03 00:42:49, levin wrote: > > On 2011/12/02 23:23:46, jennb wrote: > > > > > > http://codereview.chromium.org/8785009/diff/1/chrome/browser/ui/panels/panel_... > > > File chrome/browser/ui/panels/panel_browsertest.cc (left): > > > > > > > > > http://codereview.chromium.org/8785009/diff/1/chrome/browser/ui/panels/panel_... > > > chrome/browser/ui/panels/panel_browsertest.cc:844: > > > set_testing_work_area(gfx::Rect(0, 0, 1200, 900)); > > > On 2011/12/02 23:06:47, levin wrote: > > > > On 2011/12/02 22:57:34, jennb wrote: > > > > > This doesn't change the work area. Just changes a member variable in the > > > base > > > > > class. Oops. > > > > I wonder why this method exists. It appears to have been added here: > > > > http://src.chromium.org/viewvc/chrome?view=rev&revision=109588 > > > > > > > > but I don't see it being used there. > > > > > > It's used in that test to set the value to 0 so that we don't customize the > > work > > > area in that one particular test. Guess that method needs a better name. I > > would > > > prefer to rename it in a different patch and keep this one small, if that's > ok > > > with you? > > > > Yes, of course! > > Is that a LGTM? ;-) Sorry, didn't see the earlier email. |