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

Function isLeftOf

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

Source from the content-addressed store, hash-verified

97}
98
99export function isLeftOf(view1: View, view2: View, message?: string) {
100 TKUnit.assert(right(view1) <= left(view2), message || `${view1}.right:${right(view1)} is not left of ${view2}.left:${left(view2)}`);
101}
102
103export function isAbove(view1: View, view2: View, message?: string) {
104 TKUnit.assert(bottom(view1) <= top(view2), message || `${view1}.bottom:${bottom(view1)} is not above ${view2}.top:${top(view2)}`);

Callers 2

testFlexboxPageFunction · 0.90

Calls 3

rightFunction · 0.85
leftFunction · 0.85
assertMethod · 0.80

Tested by

no test coverage detected