Search in sources :

Example 1 with TestActivity

use of com.taobao.weex.TestActivity in project weex-example by KalicyZhou.

the class WXGestureTest method setUp.

@Before
public void setUp() throws Exception {
    component = WXDivTest.create();
    ComponentTest.create(component);
    component.addEvent(WXGestureType.LowLevelGesture.ACTION_CANCEL.toString());
    component.addEvent(WXGestureType.LowLevelGesture.ACTION_DOWN.toString());
    component.addEvent(WXGestureType.LowLevelGesture.ACTION_MOVE.toString());
    component.addEvent(WXGestureType.LowLevelGesture.ACTION_UP.toString());
    TestActivity activity = Robolectric.setupActivity(TestActivity.class);
    mGesture = new WXGesture(component, activity);
}
Also used : TestActivity(com.taobao.weex.TestActivity) Before(org.junit.Before)

Example 2 with TestActivity

use of com.taobao.weex.TestActivity in project incubator-weex by apache.

the class WXGestureTest method setUp.

@Before
public void setUp() throws Exception {
    component = WXDivTest.create();
    ComponentTest.create(component);
    component.addEvent(WXGestureType.LowLevelGesture.ACTION_CANCEL.toString());
    component.addEvent(WXGestureType.LowLevelGesture.ACTION_DOWN.toString());
    component.addEvent(WXGestureType.LowLevelGesture.ACTION_MOVE.toString());
    component.addEvent(WXGestureType.LowLevelGesture.ACTION_UP.toString());
    TestActivity activity = Robolectric.setupActivity(TestActivity.class);
    mGesture = new WXGesture(component, activity);
}
Also used : TestActivity(com.taobao.weex.TestActivity) Before(org.junit.Before)

Aggregations

TestActivity (com.taobao.weex.TestActivity)2 Before (org.junit.Before)2