### Question:
WXTextDomObject extends WXDomObject { @Override public void layoutBefore() { hasBeenMeasured = false; updateStyleAndText(); spanned = createSpanned(mText); if(hasNewLayout()){ if(WXEnvironment.isApkDebugable()) { WXLogUtils.d("Previous csslayout was ignored! markLayoutSeen() never called"); } markUpdateSeen(); } super.dirty(); super.layoutBefore(); } WXTextDomObject(); TextPaint getTextPaint(); @Override void layoutBefore(); @Override void layoutAfter(); @Override Layout getExtra(); @Override void updateAttr(Map<String, Object> attrs); @Override void updateStyle(Map<String, Object> styles); @Override WXTextDomObject clone(); @Override void destroy();  }### Answer:
@Test public void testLayoutBefore() throws Exception { dom.layoutBefore(); }