Fix View_AnimationTest testClearDuringAnimation

Calling view.clearAnimation calls Animation.detach which sets the
Animation's mEnd member to true. Thus, assert that Animation.hasEnded
returns true rather than false. Also check that getAnimation returns
null as part of calling clearAnimation...

Change-Id: I0db1900e890f7aadc931c2579c42eb003f3aba0d
diff --git a/tests/tests/view/src/android/view/cts/View_AnimationTest.java b/tests/tests/view/src/android/view/cts/View_AnimationTest.java
index 7a22a3b..06763f5 100644
--- a/tests/tests/view/src/android/view/cts/View_AnimationTest.java
+++ b/tests/tests/view/src/android/view/cts/View_AnimationTest.java
@@ -151,6 +151,7 @@
         runTestOnUiThread(new Runnable() {
             public void run() {
                 view.startAnimation(mAnimation);
+                assertNotNull(view.getAnimation());
             }
         });
 
@@ -164,6 +165,7 @@
         view.clearAnimation();
         Thread.sleep(TIME_OUT);
         assertTrue(mAnimation.hasStarted());
-        assertFalse(mAnimation.hasEnded());
+        assertTrue(mAnimation.hasEnded());
+        assertNull(view.getAnimation());
     }
 }