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);
}
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);
}
Aggregations