WXDomStatement { void startAnimation(@NonNull final String ref, @NonNull String animation, @Nullable final String callBack){ if (mDestroy) { return; } WXDomObject domObject = mRegistry.get(ref); if (domObject == null) { return; } final WXAnimationBean animationBean=createAnimationBean(ref, animation); if(animationBean!=null) { mNormalTasks.add(new IWXRenderTask() { @Override public void execute() { mWXRenderManager.startAnimation(mInstanceId, ref, animationBean, callBack); } @Override public String toString() { return "startAnimationByCall"; } }); } } WXDomStatement(String instanceId, WXRenderManager renderManager); void destroy(); static final String CHILDREN; static final String TYPE; }
@Test public void testStartAnimation() throws Exception { createBody(); JSONObject obj; obj = new JSONObject(); obj.put("type","div"); obj.put("ref","100"); stmt.addDom(obj,WXDomObject.ROOT,0); stmt.startAnimation("100","",null); }