| Index: ash/laser/laser_pointer_controller_unittest.cc
|
| diff --git a/ash/laser/laser_pointer_controller_unittest.cc b/ash/laser/laser_pointer_controller_unittest.cc
|
| index 68878038784e20adfa183aee741a3d94ea5764d9..ea73da8dfefad031ebd385a17ab6c48a641aa799 100644
|
| --- a/ash/laser/laser_pointer_controller_unittest.cc
|
| +++ b/ash/laser/laser_pointer_controller_unittest.cc
|
| @@ -159,9 +159,11 @@ TEST_F(LaserPointerControllerTest, LaserPointerRenderer) {
|
| GetEventGenerator().MoveMouseToInHost(gfx::Point(5, 5));
|
| EXPECT_FALSE(controller_test_api_.IsShowingLaserPointer());
|
|
|
| - // Verify pressing the stylus will show the laser pointer and add a point.
|
| + // Verify pressing the stylus will show the laser pointer and add a point but
|
| + // will not activate fading out.
|
| GetEventGenerator().PressLeftButton();
|
| EXPECT_TRUE(controller_test_api_.IsShowingLaserPointer());
|
| + EXPECT_FALSE(controller_test_api_.IsFadingOut());
|
| EXPECT_EQ(1, controller_test_api_.laser_points().GetNumberOfPoints());
|
|
|
| // Verify dragging the stylus 2 times will add 2 more points.
|
| @@ -169,9 +171,11 @@ TEST_F(LaserPointerControllerTest, LaserPointerRenderer) {
|
| GetEventGenerator().MoveMouseToInHost(gfx::Point(7, 7));
|
| EXPECT_EQ(3, controller_test_api_.laser_points().GetNumberOfPoints());
|
|
|
| - // Verify releasing the stylus hides the laser pointer.
|
| + // Verify releasing the stylus still shows the laser pointer, which is fading
|
| + // away.
|
| GetEventGenerator().ReleaseLeftButton();
|
| - EXPECT_FALSE(controller_test_api_.IsShowingLaserPointer());
|
| + EXPECT_TRUE(controller_test_api_.IsShowingLaserPointer());
|
| + EXPECT_TRUE(controller_test_api_.IsFadingOut());
|
|
|
| // Verify that disabling the mode does not display the laser pointer.
|
| controller_test_api_.SetEnabled(false);
|
|
|