MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / isRightOf

Function isRightOf

apps/automated/src/ui/layouts/layout-tests-helper.ts:107–109  ·  view source on GitHub ↗
(view1: View, view2: View, message?: string)

Source from the content-addressed store, hash-verified

105}
106
107export function isRightOf(view1: View, view2: View, message?: string) {
108 TKUnit.assert(left(view1) >= right(view2), message || `${view1}.left:${left(view1)} is not right of ${view2}.right:${right(view2)}`);
109}
110
111export function isBelow(view1: View, view2: View, distance?: number, message?: string) {
112 TKUnit.assert(top(view1) >= bottom(view2), message || `${view1}.top:${top(view1)} is not below ${view2}.bottom:${bottom(view1)}`);

Callers 1

Calls 3

leftFunction · 0.85
rightFunction · 0.85
assertMethod · 0.80

Tested by

no test coverage detected