summaryrefslogtreecommitdiffstats
path: root/ui/aura/root_window_unittest.cc
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-09 23:22:09 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-09 23:22:09 +0000
commit909afe39bf16d03f7b42740747fa4c15c27c67cc (patch)
tree13e749aca7dae865497984fb1f7856bd30653732 /ui/aura/root_window_unittest.cc
parent3683adf58bcf7041346f00014c8f12405ae5ef9f (diff)
downloadchromium_src-909afe39bf16d03f7b42740747fa4c15c27c67cc.zip
chromium_src-909afe39bf16d03f7b42740747fa4c15c27c67cc.tar.gz
chromium_src-909afe39bf16d03f7b42740747fa4c15c27c67cc.tar.bz2
The center of a rect is x+width/2, y+height/2
If a rect is (0, 0, 5, 5) the center should be 2.5, 2.5, not 2, 2. Tests: ui_unittests:RectTest.CenterPoint ui_unittests:RectTest.CenterPointF BUG=147395 Review URL: https://chromiumcodereview.appspot.com/11065050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160976 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/root_window_unittest.cc')
-rw-r--r--ui/aura/root_window_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/aura/root_window_unittest.cc b/ui/aura/root_window_unittest.cc
index cc7a729..5c8f3f7 100644
--- a/ui/aura/root_window_unittest.cc
+++ b/ui/aura/root_window_unittest.cc
@@ -360,7 +360,7 @@ TEST_F(RootWindowTest, CanProcessEventsWithinSubtree) {
client.GetNonLockWindow());
w2->set_id(2);
scoped_ptr<Window> w3(
- test::CreateTestWindowWithDelegate(&d, 3, gfx::Rect(20, 20, 20, 20),
+ test::CreateTestWindowWithDelegate(&d, 3, gfx::Rect(30, 30, 20, 20),
client.GetLockWindow()));
w1->Focus();