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

Method setViewNodeMarginAndSize

valdi/test/utils/ViewNodeTestsUtils.cpp:110–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 setViewNodeAttribute(viewNode, "position", Value(STRING_LITERAL("absolute")));
109 setViewNodeAttribute(viewNode, "left", Value(x));
110 setViewNodeAttribute(viewNode, "width", Value(width));
111 setViewNodeAttribute(viewNode, "top", Value(y));
112 setViewNodeAttribute(viewNode, "height", Value(height));
113}
114
115void ViewNodeTestsDependencies::setViewNodeMarginAndSize(const Ref<ViewNode>& viewNode,
116 double margin,
117 double width,
118 double height) {
119 setViewNodeAttribute(viewNode, "margin", Value(margin));
120 setViewNodeAttribute(viewNode, "width", Value(width));
121 setViewNodeAttribute(viewNode, "height", Value(height));

Callers 2

TESTFunction · 0.80
TESTFunction · 0.80

Calls 2

flushMethod · 0.65
ValueInterface · 0.50

Tested by

no test coverage detected