diff --git a/tests/app/ui/page/page-tests-common.ts b/tests/app/ui/page/page-tests-common.ts index 71d7e3ca3..59aab24ce 100644 --- a/tests/app/ui/page/page-tests-common.ts +++ b/tests/app/ui/page/page-tests-common.ts @@ -24,6 +24,7 @@ import { Label } from "tns-core-modules/ui/label"; import { Color } from "tns-core-modules/color"; import { TabView, TabViewItem } from "tns-core-modules/ui/tab-view/tab-view"; import { _resetRootView, getRootView } from "tns-core-modules/application"; +import { Button } from "tns-core-modules/ui/button/button"; export function addLabelToPage(page: Page, text?: string) { const label = new Label(); @@ -421,6 +422,84 @@ export function test_WhenPageIsNavigatedToFrameCurrentPageIsNowTheSameAsThePage( page.off(Label.loadedEvent, navigatedEventHandler); } +export function test_WhenInnerViewCallsCloseModal_WithArguments_ShouldPassResult() { + _test_WhenInnerViewCallsCloseModal((args: ShownModallyData) => + { + const page = args.object; + const button =