コード例 #1
0
ファイル: EventsTest.java プロジェクト: MaxDhn/gwt-test-utils
  @Test
  public void checkMouseWheelEvent() {
    tested = false;
    Button b = new Button();
    b.addMouseWheelHandler(
        new MouseWheelHandler() {

          public void onMouseWheel(MouseWheelEvent event) {
            tested = !tested;
          }
        });

    // simule the event
    mouseWheel(b);

    Assert.assertTrue("onMouseWheel event was not triggered", tested);
  }