Beispiel #1
0
  public void testVideoPlaying() throws InterruptedException {
    PresentationStubActivity activity = getActivity();

    assertEquals(false, mVideo.isPlaying());
    waitForTime(activity, 2000);
    mVideo.play();
    waitForTime(activity, 2000);
    assertEquals(true, mVideo.isPlaying());
    mVideo.play();
    waitForTime(activity, 500);
    assertEquals(true, mVideo.isPlaying());
    mVideo.pause();
    waitForTime(activity, 500);
    assertEquals(false, mVideo.isPlaying());
  }