Examples of TouchStartEvent


Examples of com.google.gwt.event.dom.client.TouchStartEvent

import org.junit.Assert;

public class TouchTestUtil {

  public static TouchStartEvent createTouchStartEvent(int x, int y) {
    TouchStartEvent touchStartEvent = mock(TouchStartEvent.class);
    setupTouchEvenMock(touchStartEvent, new int[] {x, y});
    return touchStartEvent;
  }
View Full Code Here

Examples of com.google.gwt.event.dom.client.TouchStartEvent

    setupTouchEvenMock(touchStartEvent, new int[] {x, y});
    return touchStartEvent;
  }

  public static TouchStartEvent createTouchStartEvent(int[] positions) {
    TouchStartEvent touchStartEvent = mock(TouchStartEvent.class);
    setupTouchEvenMock(touchStartEvent, positions);
    return touchStartEvent;
  }
View Full Code Here

Examples of com.google.gwt.event.dom.client.TouchStartEvent

    }
  }

  @Test
  public void testSimpleTouchStartAndEnd() {
    TouchStartEvent touchStartEvent = TouchTestUtil.createTouchStartEvent(1, 2);
    tapRecognizer.onTouchStart(touchStartEvent);

    TouchEndEvent touchEndEvent = mock(TouchEndEvent.class);
    tapRecognizer.onTouchEnd(touchEndEvent);
View Full Code Here

Examples of com.google.gwt.event.dom.client.TouchStartEvent

    Assert.assertSame(hasHandlers, tapEvent.getSource());
  }

  @Test
  public void testSimpleTouchStartAndCancel() {
    TouchStartEvent touchStartEvent = TouchTestUtil.createTouchStartEvent(1, 2);
    tapRecognizer.onTouchStart(touchStartEvent);
    tapRecognizer.onTouchCancel(mock(TouchCancelEvent.class));

    verifyNoMoreInteractions(hasHandlers);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.