Package com.google.gwt.event.dom.client

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


  @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

Related Classes of com.google.gwt.event.dom.client.TouchEndEvent

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.