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

Function lazyLayoutViewModel

valdi/test/integration/Runtime_tests.cpp:3492–3499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3490 ASSERT_EQ(Valdi::Frame(4, 0, 10, 10), entry1->getCalculatedFrame());
3491 ASSERT_EQ(Valdi::Frame(21, 0, 10, 10), entry2->getCalculatedFrame());
3492 ASSERT_EQ(Valdi::Frame(38, 0, 10, 10), entry3->getCalculatedFrame());
3493 ASSERT_EQ(54, container->getChildrenSpaceWidth());
3494
3495 tree->scheduleExclusiveUpdate([=]() {
3496 rootNode->setAttribute(tree->getCurrentViewTransactionScope(),
3497 directionAttribute,
3498 tree.get(),
3499 Valdi::Value(std::string("rtl")),
3500 nullptr);
3501 rootNode->getAttributesApplier().flush(tree->getCurrentViewTransactionScope());
3502 });

Callers 1

TEST_PFunction · 0.85

Calls 1

ValueInterface · 0.50

Tested by

no test coverage detected