Search in sources :

Example 1 with WXRenderManager

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

the class WXDomStatementTest method setUp.

@Before
public void setUp() throws Exception {
    WXSDKEngine.initialize(RuntimeEnvironment.application, new InitConfig.Builder().build());
    ShadowLooper looper = WXBridgeManagerTest.getLooper();
    looper.idle();
    ShadowLooper.runUiThreadTasksIncludingDelayedTasks();
    instance = WXSDKInstanceTest.createInstance();
    rednerManager = new WXRenderManager();
    //
    rednerManager.registerInstance(instance);
    stmt = new WXDomStatement(instance.getInstanceId(), rednerManager);
}
Also used : ShadowLooper(org.robolectric.shadows.ShadowLooper) WXRenderManager(com.taobao.weex.ui.WXRenderManager) Before(org.junit.Before)

Example 2 with WXRenderManager

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

the class WXBridgeManagerTest method setUp.

@Before
public void setUp() throws Exception {
    WXSDKEngine.initialize(RuntimeEnvironment.application, new InitConfig.Builder().build());
    instance = WXSDKInstanceTest.createInstance();
    WXRenderManager rednerManager = new WXRenderManager();
    //
    rednerManager.registerInstance(instance);
    WXSDKManagerTest.setRenderManager(rednerManager);
}
Also used : WXRenderManager(com.taobao.weex.ui.WXRenderManager) Before(org.junit.Before)

Example 3 with WXRenderManager

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

the class WXDomManagerTest method setUp.

@Before
public void setUp() throws Exception {
    WXRenderManager rm = new WXRenderManager();
    instance = WXSDKInstanceTest.createInstance();
    rm.registerInstance(instance);
    dm = new WXDomManager(rm);
}
Also used : WXRenderManager(com.taobao.weex.ui.WXRenderManager) Before(org.junit.Before)

Example 4 with WXRenderManager

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

the class WXDomManagerTest method setUp.

@Before
public void setUp() throws Exception {
    WXRenderManager rm = new WXRenderManager();
    instance = WXSDKInstanceTest.createInstance();
    rm.registerInstance(instance);
    dm = new WXDomManager(rm);
}
Also used : WXRenderManager(com.taobao.weex.ui.WXRenderManager) Before(org.junit.Before)

Example 5 with WXRenderManager

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

the class WXDomStatementTest method setUp.

@Before
public void setUp() throws Exception {
    WXSDKEngine.initialize(RuntimeEnvironment.application, new InitConfig.Builder().build());
    ShadowLooper looper = WXBridgeManagerTest.getLooper();
    looper.idle();
    ShadowLooper.runUiThreadTasksIncludingDelayedTasks();
    instance = WXSDKInstanceTest.createInstance();
    rednerManager = new WXRenderManager();
    // 
    rednerManager.registerInstance(instance);
    WXSDKManagerTest.setRenderManager(rednerManager);
    stmt = new DOMActionContextImpl(instance.getInstanceId(), rednerManager);
}
Also used : ShadowLooper(org.robolectric.shadows.ShadowLooper) WXRenderManager(com.taobao.weex.ui.WXRenderManager) Before(org.junit.Before)

Aggregations

WXRenderManager (com.taobao.weex.ui.WXRenderManager)6 Before (org.junit.Before)6 ShadowLooper (org.robolectric.shadows.ShadowLooper)2