Default RotateDrawable toDegrees is 360.0f
Bug: 27325817
Change-Id: I944545998c7ae3c776885c2ec2b8122f57b4d7af
diff --git a/tests/tests/graphics/src/android/graphics/drawable/cts/RotateDrawableTest.java b/tests/tests/graphics/src/android/graphics/drawable/cts/RotateDrawableTest.java
index 31a8141..e51edc1 100644
--- a/tests/tests/graphics/src/android/graphics/drawable/cts/RotateDrawableTest.java
+++ b/tests/tests/graphics/src/android/graphics/drawable/cts/RotateDrawableTest.java
@@ -100,11 +100,11 @@
public void testSetDegrees() {
RotateDrawable d = new RotateDrawable();
assertEquals(0.0f, d.getFromDegrees(), 0.01f);
- assertEquals(0.0f, d.getToDegrees(), 0.01f);
+ assertEquals(360.0f, d.getToDegrees(), 0.01f);
d.setFromDegrees(-10.0f);
assertEquals(-10.0f, d.getFromDegrees(), 0.01f);
- assertEquals(0.0f, d.getToDegrees(), 0.01f);
+ assertEquals(360.0f, d.getToDegrees(), 0.01f);
d.setToDegrees(10.0f);
assertEquals(10.0f, d.getToDegrees(), 0.01f);