added test for reset method in YogaNodeJNI to verify all layout outputs are reset properly

Summary: This diff adds a test for reset method in YogaNodeJNI to verify all layout outputs are reset properly

Reviewed By: davidaurelio

Differential Revision: D14643926

fbshipit-source-id: fffbcd07ccb6d2df83fc0bf187d992ef194f3bd0
This commit is contained in:
Sidharth Guglani
2019-04-01 06:16:36 -07:00
committed by Facebook Github Bot
parent c378be490f
commit 5ad752079c
2 changed files with 7 additions and 0 deletions
@@ -211,6 +211,8 @@ public abstract class YogaNode {
public abstract boolean isMeasureDefined();
public abstract boolean isBaselineDefined();
public abstract void setData(Object data);
@Nullable
@@ -468,6 +468,11 @@ public abstract class YogaNodeJNIBase extends YogaNode {
return mMeasureFunction != null;
}
@Override
public boolean isBaselineDefined() {
return mBaselineFunction != null;
}
public void setData(Object data) {
mData = data;
}