< prev index next >
modules/graphics/src/test/java/test/javafx/animation/AnimationPulseReceiverTest.java
Print this page
*** 51,61 ****
animation = new AnimationMock(timer, Duration.INDEFINITE, 1.0, 1, false);
}
@After
public void tearDown() {
! animation.impl_stop();
}
@Test
public void testPlay_DefaultResolution() {
// start animatiom
--- 51,61 ----
animation = new AnimationMock(timer, Duration.INDEFINITE, 1.0, 1, false);
}
@After
public void tearDown() {
! animation.doStop();
}
@Test
public void testPlay_DefaultResolution() {
// start animatiom
*** 70,84 ****
// another pulse
animation.shim_pulseReceiver().timePulse(16 * DEFAULT_RESOLUTION);
assertEquals(13 * DEFAULT_RESOLUTION, animation.getLastTimePulse());
// stop animation
! animation.impl_stop();
assertFalse(timer.containsPulseReceiver(animation.shim_pulseReceiver()));
// stop again
! animation.impl_stop();
assertFalse(timer.containsPulseReceiver(animation.shim_pulseReceiver()));
// start again
timer.setNanos(Math.round(30 * DEFAULT_RESOLUTION * TICKS_2_NANOS));
animation.startReceiver(0);
--- 70,84 ----
// another pulse
animation.shim_pulseReceiver().timePulse(16 * DEFAULT_RESOLUTION);
assertEquals(13 * DEFAULT_RESOLUTION, animation.getLastTimePulse());
// stop animation
! animation.doStop();
assertFalse(timer.containsPulseReceiver(animation.shim_pulseReceiver()));
// stop again
! animation.doStop();
assertFalse(timer.containsPulseReceiver(animation.shim_pulseReceiver()));
// start again
timer.setNanos(Math.round(30 * DEFAULT_RESOLUTION * TICKS_2_NANOS));
animation.startReceiver(0);
< prev index next >