WXRenderStatement { WXComponent createBodyOnDomThread(WXDomObject dom) { if (mWXSDKInstance == null) { return null; } WXDomObject domObject = new WXDomObject(); domObject.type = WXBasicComponentType.DIV; domObject.ref = "god"; mGodComponent = (WXVContainer) WXComponentFactory.newInstance(mWXSDKInstance, domObject, null, mInstanceId); mGodComponent.createView(null, -1); if (mGodComponent == null) { if (WXEnvironment.isApkDebugable()) { WXLogUtils.e("rootView failed!"); } return null; } FrameLayout frameLayout = (FrameLayout) mGodComponent.getView(); ViewGroup.LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); frameLayout.setLayoutParams(layoutParams); WXComponent component = generateComponentTree(dom, mGodComponent); mGodComponent.addChild(component); mRegistry.put(component.getRef(), component); return component; } WXRenderStatement(WXSDKInstance instance, String instaceId); void destroy(); WXSDKInstance getWXSDKInstance(); void flushView(String ref); WXComponent getComponent(String ref);  }
@Test public void testCreateBodyOnDomThread() throws Exception { }