Package limelight.ui

Examples of limelight.ui.MockPanel


    assertEquals(true, loop.shouldBeIdle());
  }

  public void testShouldNotBeIdleWithAnimationTasks() throws Exception
  {
    loop.add(new MockAnimation(20, new MockPanel()));

    assertEquals(false, loop.shouldBeIdle());
  }
View Full Code Here


  private AnimationLoop loop;

  @Before
  public void setUp() throws Exception
  {
    animation = new MockAnimation(100, new MockPanel());
    loop = new AnimationLoop();
    Context.instance().animationLoop = loop;
    IdleThreadLoop.verbose = false;
  }
View Full Code Here

  }

  @Test
  public void tolerance() throws Exception
  {
    animation = new MockAnimation(100, new MockPanel());

    long delay = animation.getDelayNanos();
    long tolerableDelay = (long)( delay * 0.95);
    assertEquals(tolerableDelay, animation.getTolerableDelay());
  }
View Full Code Here

  }

  @Test
  public void lessThanOneUpdatePerSecond() throws Exception
  {
    animation = new MockAnimation(0.5, new MockPanel());
    animation.update();

    assertEquals(false, animation.isReady());
    animation.getTimer().moveMarkBackInTime(oneSecond);
    assertEquals(false, animation.isReady());
View Full Code Here

TOP

Related Classes of limelight.ui.MockPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.