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

Method setViewNodeAllMarginsAndSize

valdi/test/utils/ViewNodeTestsUtils.cpp:120–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void ViewNodeTestsDependencies::setViewNodeMarginAndSize(const Ref<ViewNode>& viewNode,
121 double margin,
122 double width,
123 double height) {
124 setViewNodeAttribute(viewNode, "margin", Value(margin));
125 setViewNodeAttribute(viewNode, "width", Value(width));
126 setViewNodeAttribute(viewNode, "height", Value(height));
127 viewNode->getAttributesApplier().flush(*_viewTransactionScope);
128}
129
130void ViewNodeTestsDependencies::setViewNodeAllMarginsAndSize(const Ref<ViewNode>& viewNode,
131 double marginTop,
132 double marginRight,
133 double marginBottom,
134 double marginLeft,
135 double width,
136 double height) {
137 setViewNodeAttribute(viewNode, "marginTop", Value(marginTop));

Callers 1

TESTFunction · 0.80

Calls 2

flushMethod · 0.65
ValueInterface · 0.50

Tested by

no test coverage detected