Chromium Code Reviews| Index: chrome/browser/cocoa/animatable_image_unittest.mm |
| diff --git a/chrome/browser/cocoa/animatable_image_unittest.mm b/chrome/browser/cocoa/animatable_image_unittest.mm |
| index 2fc95772b9b8472b48535af6c4c095e8db803e28..af2bc6a93739fbce46cde3384a6e697f8e5317bc 100644 |
| --- a/chrome/browser/cocoa/animatable_image_unittest.mm |
| +++ b/chrome/browser/cocoa/animatable_image_unittest.mm |
| @@ -33,4 +33,14 @@ TEST_F(AnimatableImageTest, BasicAnimation) { |
| [animation_ startAnimation]; |
| } |
| +TEST_F(AnimatableImageTest, CancelAnimation) { |
| + [animation_ setStartFrame:CGRectMake(0, 0, 10, 10)]; |
| + [animation_ setEndFrame:CGRectMake(500, 500, 100, 100)]; |
| + [animation_ setStartOpacity:0.1]; |
| + [animation_ setEndOpacity:1.0]; |
| + [animation_ setDuration:5.0]; // Long enough to be able to test cancelling. |
| + [animation_ startAnimation]; |
| + [animation_ close]; |
|
Nico
2010/08/31 15:14:54
this just checks that nothing crashes in the cance
Robert Sesek
2010/08/31 15:15:52
Correct.
|
| +} |
| + |
| } // namespace |