diff --git a/tests/app/ui/layouts/safe-area-tests.ts b/tests/app/ui/layouts/safe-area-tests.ts index 9329aa103..af5c5ff3e 100644 --- a/tests/app/ui/layouts/safe-area-tests.ts +++ b/tests/app/ui/layouts/safe-area-tests.ts @@ -67,6 +67,77 @@ export class SafeAreaTests extends testModule.UITest { equal(b, heightPixels, `${layout}.bottom - actual:${b}; expected: ${heightPixels}`); } + // Absolute + private getAbsoluteViews(template: string) { + let root = parse(template); + return { + root, + child0: root.getViewById("child0") as view.View, + }; + }; + + public test_absolute_in_full_screen() { + const snippet = ` + + `; + + this.executeSnippet( + this.getAbsoluteViews(snippet), + this.noop, + ({ root }) => { this.layout_in_full_screen_test(root); } + ); + } + + + public test_absolute_children_components_in_safe_area() { + const snippet = ` + +