Introduce first marker
Summary: @public Adds a marker section for a complete layout pass Reviewed By: SidharthGuglani Differential Revision: D13819447 fbshipit-source-id: 21a80f0fe3d325d804a968508761d115c50d3dc1
This commit is contained in:
committed by
Facebook Github Bot
parent
58f0cca7c7
commit
74dd627495
@@ -85,6 +85,16 @@ TEST_F(MarkerTest, marker_end_works) {
|
||||
<< "pointer returned by `startMarker` was not passed to `endMarker`";
|
||||
}
|
||||
|
||||
TEST_F(MarkerTest, layout_marker) {
|
||||
auto config = makeConfig();
|
||||
auto root = makeNode(config);
|
||||
|
||||
YGNodeCalculateLayout(root.get(), YGUndefined, YGUndefined, YGDirectionLTR);
|
||||
|
||||
ASSERT_EQ(markerCookie.start.marker, YGMarkerLayout);
|
||||
ASSERT_EQ(markerCookie.start.node, root.get());
|
||||
}
|
||||
|
||||
void* MarkerTest::startMarker(
|
||||
YGMarker marker,
|
||||
YGNodeRef node,
|
||||
|
Reference in New Issue
Block a user