MCPcopy Create free account
hub / github.com/Snapchat/Valdi / UpdateStep

Class UpdateStep

valdi/test/runtime/ViewNode_tests.cpp:3070–3075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3068 items[items.size() - 1]->removeFromParent(utils.getViewTransactionScope());
3069 items.pop_back();
3070
3071 root->performLayout(utils.getViewTransactionScope(), Size(100, 100), LayoutDirectionLTR);
3072 root->updateVisibilityAndPerformUpdates(utils.getViewTransactionScope());
3073
3074 ASSERT_EQ(50, scrollContainer->getChildrenSpaceWidth());
3075 ASSERT_EQ(200, scrollContainer->getChildrenSpaceHeight());
3076
3077 // contentOffset should not have changed
3078 ASSERT_EQ(Point(0, 100), scrollContainer->getDirectionAgnosticScrollContentOffset());

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68