@Test public void testBind(){ testCreateView(); mWXText.applyLayoutAndEvent(mWXText); mWXText.bindData(mWXText); assertNotNull(mWXText.getView().getLayoutParams()); assertEquals(100, mWXText.getView().getLayoutParams().height); assertEquals(100, mWXText.getView().getLayoutParams().width); assertEquals(0, mWXText.getView().getPaddingLeft()); assertEquals(0, mWXText.getView().getPaddingTop()); assertEquals(0, mWXText.getView().getPaddingRight()); assertEquals(0, mWXText.getView().getPaddingBottom()); }
@Override public WXTextView getView() { return (WXTextView) super.getView(); }
WXText extends WXComponent { @Override public WXTextView getView() { return (WXTextView) super.getView(); } }
WXText extends WXComponent { @Override public WXTextView getView() { return (WXTextView) super.getView(); } WXText(WXSDKInstance instance, WXDomObject node,
                WXVContainer parent, boolean lazy); }
WXText extends WXComponent { @Override public WXTextView getView() { return (WXTextView) super.getView(); } WXText(WXSDKInstance instance, WXDomObject node,
                WXVContainer parent, boolean lazy); @Override WXTextView getView(); @Override void updateExtra(Object extra); }
WXText extends WXComponent { @Override public WXTextView getView() { return (WXTextView) super.getView(); } WXText(WXSDKInstance instance, WXDomObject node,
                WXVContainer parent, boolean lazy); @Override WXTextView getView(); @Override void updateExtra(Object extra); static final int sDEFAULT_SIZE; }