Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(721)

Unified Diff: chrome/browser/cocoa/animatable_image_unittest.mm

Issue 3169030: Change the conditions on which the popup blocked animation is shown to be more reliable. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: fix compile Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698