| commit | 5c0259499cfc8286f2eaa2571191cf179da1e3e5 | [log] [tgz] |
|---|---|---|
| author | Alan Viverette <alanv@google.com> | Wed Feb 12 14:56:14 2014 -0800 |
| committer | Alan Viverette <alanv@google.com> | Wed Feb 12 14:56:14 2014 -0800 |
| tree | e05527058c3fcbb57495086515b8518400c61785 | |
| parent | 2cb0c82d452c54516d1c0de6a86db0cd44b134dd [diff] |
Fix gradient drawable CTS tests Change-Id: I0dc3e4e387b577c586c05cbd221f3a53ddd1be8f
diff --git a/tests/tests/graphics/src/android/graphics/drawable/cts/GradientDrawableTest.java b/tests/tests/graphics/src/android/graphics/drawable/cts/GradientDrawableTest.java index 979dd8d..0a19cb7 100644 --- a/tests/tests/graphics/src/android/graphics/drawable/cts/GradientDrawableTest.java +++ b/tests/tests/graphics/src/android/graphics/drawable/cts/GradientDrawableTest.java
@@ -259,13 +259,13 @@ R.drawable.gradientdrawable_radius_base); gradientDrawable.setBounds(parentBounds); radius = gradientDrawable.getGradientRadius(); - assertEquals(25, radius); + assertEquals(25.0f, radius, 0.0f); gradientDrawable = (GradientDrawable) resources.getDrawable( R.drawable.gradientdrawable_radius_parent); gradientDrawable.setBounds(parentBounds); radius = gradientDrawable.getGradientRadius(); - assertEquals(50, radius); + assertEquals(50.0f, radius, 0.0f); } public void testGetIntrinsicWidth() {