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
3069 container->setPrefersLazyLayout(utils.getViewTransactionScope(), false);
3070
3071 root->performLayout(utils.getViewTransactionScope(), Size(100, 100), LayoutDirectionLTR);
3072 root->updateVisibilityAndPerformUpdates(utils.getViewTransactionScope());
3073
3074 ASSERT_EQ(Frame(0, 0, 100, 100), container->getCalculatedFrame());
3075 ASSERT_EQ(Frame(10, 10, 80, 80), child->getCalculatedFrame());
3076}
3077
3078TEST(ViewNode, canResolveDirectionUnawareCoordinatesInRTL) {

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68