| Index: views/controls/single_split_view_unittest.cc
|
| diff --git a/views/controls/single_split_view_unittest.cc b/views/controls/single_split_view_unittest.cc
|
| index 65fbb0061ef61f8ddc63f6437797d2c010929fc7..f3223231b3bc410cd56767d3ce817891c764d055 100644
|
| --- a/views/controls/single_split_view_unittest.cc
|
| +++ b/views/controls/single_split_view_unittest.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -166,9 +166,14 @@ TEST(SingleSplitViewTest, MouseDrag) {
|
| MouseEvent mouse_released(
|
| ui::ET_MOUSE_RELEASED, 7,
|
| kInitialDividerOffset + kMouseOffset + kMouseMoveDelta * 2, 0);
|
| - split.OnMouseReleased(mouse_released, false);
|
| + split.OnMouseReleased(mouse_released);
|
| EXPECT_EQ(kInitialDividerOffset + kMouseMoveDelta * 2,
|
| split.divider_offset());
|
| +
|
| + // Expect intial offset after a system/user gesture cancels the drag.
|
| + // This shouldn't occur after mouse release, but it's sufficient for testing.
|
| + split.OnMouseCaptureLost();
|
| + EXPECT_EQ(kInitialDividerOffset, split.divider_offset());
|
| }
|
|
|
| } // namespace views
|
|
|