Search in sources :

Example 1 with WXListDomObject

use of com.taobao.weex.dom.WXListDomObject 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)

Aggregations

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 WXDiv (com.taobao.weex.ui.component.WXDiv)1 WXDivTest (com.taobao.weex.ui.component.WXDivTest)1 WXHeaderTest (com.taobao.weex.ui.component.WXHeaderTest)1 Test (org.junit.Test)1