TEST(YogaDeathTest, cannot_add_nonnull_measure_func_to_non_leaf_node() { YGNode root = YGNodeNew(); YGNode root_child0 = YGNodeNew(); YGNodeInsertChild(root, root_child0, 0); ASSERT_DEATH(root.setMeasureFunc(_measure), "Cannot set measure function.*"); }
TEST(YogaDeathTest, cannot_add_nonnull_measure_func_to_non_leaf_node) { YGNode root = new YGNode(); YGNode root_child0 = new YGNode(); root.Children.Add(root_child0); ASSERT_DEATH(root.MeasureFunc = _measure, "Cannot set measure function.*"); }
TEST(YogaDeathTest, cannot_add_child_to_node_with_measure_func() { YGNode root = YGNodeNew(); root.setMeasureFunc(_measure); YGNode root_child0 = YGNodeNew(); ASSERT_DEATH(YGNodeInsertChild(root, root_child0, 0), "Cannot add child.*"); YGNodeFree(root_child0); }
TEST(YogaDeathTest, cannot_add_child_to_node_with_measure_func) { YGNode root = new YGNode(); root.MeasureFunc = _measure; YGNode root_child0 = new YGNode(); ASSERT_DEATH(root.Children.Add(root_child0, 0), "Cannot add child.*"); YGNodeFree(root_child0); }