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

Method getRootView

valdi/test/runtime/ViewNode_tests.cpp:3143–3145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3141 scrollContainer->setScrollContentOffset(utils.getViewTransactionScope(), Point(0, 0));
3142 ASSERT_EQ(Point(0, 0), scrollContainer->getDirectionAgnosticScrollContentOffset());
3143 ASSERT_EQ(0, onScrollCount); // should not notify as we're already at 0 when initializing the scrollview
3144 ASSERT_EQ(0, onScrollEndCount);
3145
3146 scrollContainer->setScrollContentOffset(utils.getViewTransactionScope(), Point(0, 0), true);
3147 ASSERT_EQ(Point(0, 0), scrollContainer->getDirectionAgnosticScrollContentOffset());
3148 ASSERT_EQ(0, onScrollCount); // should not notify as we're already at 0 when initializing the scrollview

Callers 3

TEST_PFunction · 0.45
getRootViewFunction · 0.45

Calls 2

getDummyViewFunction · 0.85
getViewMethod · 0.45

Tested by

no test coverage detected