summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2012-02-17 10:02:27 +0800
committerChih-Chung Chang <chihchung@google.com>2012-02-17 10:04:10 +0800
commitb3d01963463a11d27c286ffbf7f715f59bbecf88 (patch)
tree66f12741bf9b68bb0283067998bb264a31789042 /tests
parented0e84d75ed4f75ac9589bb3ea04b7327f8745f2 (diff)
downloadandroid_packages_apps_Snap-b3d01963463a11d27c286ffbf7f715f59bbecf88.zip
android_packages_apps_Snap-b3d01963463a11d27c286ffbf7f715f59bbecf88.tar.gz
android_packages_apps_Snap-b3d01963463a11d27c286ffbf7f715f59bbecf88.tar.bz2
Cache animation time value to reduce work and synchronize animation.
Change-Id: I00081bc6037c01dafc56cf017dcc1da448c1d106
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/gallery3d/ui/GLCanvasTest.java20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/src/com/android/gallery3d/ui/GLCanvasTest.java b/tests/src/com/android/gallery3d/ui/GLCanvasTest.java
index 528b04f..ca34d7c 100644
--- a/tests/src/com/android/gallery3d/ui/GLCanvasTest.java
+++ b/tests/src/com/android/gallery3d/ui/GLCanvasTest.java
@@ -66,26 +66,6 @@ public class GLCanvasTest extends TestCase {
}
@SmallTest
- public void testAnimationTime() {
- GL11 glStub = new GLStub();
- GLCanvas canvas = new GLCanvasImpl(glStub);
-
- long[] testData = {0, 1, 2, 1000, 10000, Long.MAX_VALUE};
-
- for (long v : testData) {
- canvas.setCurrentAnimationTimeMillis(v);
- assertEquals(v, canvas.currentAnimationTimeMillis());
- }
-
- try {
- canvas.setCurrentAnimationTimeMillis(-1);
- fail();
- } catch (Throwable ex) {
- // expected.
- }
- }
-
- @SmallTest
public void testSetColor() {
new SetColorTest().run();
}