Search in sources :

Example 1 with WXDiv

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

the class WXListComponentTest method testParseTransforms.

@Test
public void testParseTransforms() throws Exception {
    WXDiv div = WXDivTest.create();
    ComponentTest.create(div);
    WXDomObject dom = new WXListDomObject();
    dom.getAttrs().put(WXListComponent.TRANSFORM, "scale(0.9,0.8);translate(10,20);opacity(0.5);rotate(100)");
    component = create(div, dom);
    ComponentTest.create(component);
}
Also used : WXDiv(com.taobao.weex.ui.component.WXDiv) WXListDomObject(com.taobao.weex.dom.WXListDomObject) WXDomObject(com.taobao.weex.dom.WXDomObject) Test(org.junit.Test) ComponentTest(com.taobao.weex.ui.component.ComponentTest) WXSDKInstanceTest(com.taobao.weex.WXSDKInstanceTest) WXHeaderTest(com.taobao.weex.ui.component.WXHeaderTest) WXDivTest(com.taobao.weex.ui.component.WXDivTest)

Example 2 with WXDiv

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

the class WXListComponentTest method setUp.

@Before
public void setUp() throws Exception {
    WXDiv div = WXDivTest.create();
    ComponentTest.create(div);
    component = create(div);
    ComponentTest.create(component);
}
Also used : WXDiv(com.taobao.weex.ui.component.WXDiv) Before(org.junit.Before)

Aggregations

WXDiv (com.taobao.weex.ui.component.WXDiv)2 WXSDKInstanceTest (com.taobao.weex.WXSDKInstanceTest)1 WXDomObject (com.taobao.weex.dom.WXDomObject)1 WXListDomObject (com.taobao.weex.dom.WXListDomObject)1 ComponentTest (com.taobao.weex.ui.component.ComponentTest)1 WXDivTest (com.taobao.weex.ui.component.WXDivTest)1 WXHeaderTest (com.taobao.weex.ui.component.WXHeaderTest)1 Before (org.junit.Before)1 Test (org.junit.Test)1