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

Function isAbove

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

Source from the content-addressed store, hash-verified

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)}`);
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)}`);

Callers 2

testFlexboxPageFunction · 0.90

Calls 3

bottomFunction · 0.85
topFunction · 0.85
assertMethod · 0.80

Tested by

no test coverage detected