WXDomStatement { void refreshFinish() { if (mDestroy) { return; } final WXDomObject root = mRegistry.get(WXDomObject.ROOT); mNormalTasks.add(new IWXRenderTask() { @Override public void execute() { int realWidth = (int) root.getLayoutWidth(); int realHeight = (int) root.getLayoutHeight(); mWXRenderManager.refreshFinish(mInstanceId, realWidth, realHeight); } @Override public String toString() { return "refreshFinish"; } }); mDirty = true; WXSDKInstance instance = WXSDKManager.getInstance().getSDKInstance(mInstanceId); if (instance != null) { instance.commitUTStab(IWXUserTrackAdapter.DOM_MODULE, WXErrorCode.WX_SUCCESS); } } WXDomStatement(String instanceId, WXRenderManager renderManager); void destroy(); static final String CHILDREN; static final String TYPE; }
@Test public void testRefreshFinish() throws Exception { createBody(); stmt.refreshFinish(); stmt.batch(); }