Examples of TouchEndEvent


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

  public static TouchEndEvent createTouchEndEvent() {
    return createTouchEndEvent(new int[]{});
  }

  public static TouchEndEvent createTouchEndEvent(int[] positions) {
    TouchEndEvent touchEndEvent = mock(TouchEndEvent.class);
    setupTouchEvenMock(touchEndEvent, positions);
    return touchEndEvent;
  }
View Full Code Here

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

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

    TouchEndEvent touchEndEvent = mock(TouchEndEvent.class);
    tapRecognizer.onTouchEnd(touchEndEvent);

    verify(hasHandlers).fireEvent(eventCaptor.capture());
    GwtEvent<?> event = eventCaptor.getValue();
    TapEvent tapEvent = (TapEvent) event;
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.