Search in sources :

Example 1 with TestComponent

use of com.taobao.weex.ui.component.TestComponent in project weex-example by KalicyZhou.

the class WXAnimationModuleTest method testStartAnimation.

@Test
public void testStartAnimation() throws Exception {
    module.startAnimation(module.mWXSDKInstance, null, null, null);
    TestComponent comp = new TestComponent(module.mWXSDKInstance, new TestDomObject(), null);
    module.startAnimation(module.mWXSDKInstance, comp, null, null);
    WXAnimationBean animation = new WXAnimationBean();
    module.startAnimation(module.mWXSDKInstance, comp, animation, null);
    animation.styles = new WXAnimationBean.Style();
    module.startAnimation(module.mWXSDKInstance, comp, animation, null);
}
Also used : TestComponent(com.taobao.weex.ui.component.TestComponent) TestDomObject(com.taobao.weex.dom.TestDomObject) WXSDKInstanceTest(com.taobao.weex.WXSDKInstanceTest) PrepareForTest(org.powermock.core.classloader.annotations.PrepareForTest) Test(org.junit.Test)

Aggregations

WXSDKInstanceTest (com.taobao.weex.WXSDKInstanceTest)1 TestDomObject (com.taobao.weex.dom.TestDomObject)1 TestComponent (com.taobao.weex.ui.component.TestComponent)1 Test (org.junit.Test)1 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)1