diff --git a/pages/API/dialog-page/dialog-page.uvue b/pages/API/dialog-page/dialog-page.uvue index d95c3d8595a29ccef25b3b9fcb5d6a347f7d8164..34b4a747d082d8831e96ae3e2b1762cc0040ab3c 100644 --- a/pages/API/dialog-page/dialog-page.uvue +++ b/pages/API/dialog-page/dialog-page.uvue @@ -253,26 +253,31 @@ handleOpenAnimationType(e : RadioGroupChangeEvent) { this.openAnimationType = e.detail.value as OpenAnimationType }, + // 自动化测试 getDialogPage() : UniPage | null { const dialogPages = this.$page.getDialogPages() return dialogPages.length > 0 ? dialogPages[0] : null }, + // 自动化测试 dialogPageCheckGetDialogPages() : boolean { const dialogPage = this.getDialogPage()! const dialogPages = dialogPage.getDialogPages() const res = dialogPages.length == 0 return res }, + // 自动化测试 dialogPageGetPageStyle() : UTSJSONObject { const dialogPage = this.getDialogPage()! return dialogPage.getPageStyle() }, + // 自动化测试 dialogPageSetPageStyle() { const dialogPage = this.getDialogPage()! dialogPage.setPageStyle({ backgroundColorContent: 'red' }) }, + // 自动化测试 dialogPageCheckGetElementById() : boolean { const dialogPage = this.getDialogPage()! const element = dialogPage.getElementById('dialog1-go-next-page') @@ -286,18 +291,21 @@ // #endif return res }, + // 自动化测试 dialogCheckGetAndroidView() : boolean { const dialogPage = this.getDialogPage()! const androidView = dialogPage.getAndroidView() const res = androidView != null return res }, + // 自动化测试 dialogCheckGetIOSView() : boolean { const dialogPage = this.getDialogPage()! const IOSView = dialogPage.getIOSView() const res = IOSView != null return res }, + // 自动化测试 dialogCheckGetHTMLElement() : boolean { const dialogPage = this.getDialogPage()! const HTMLView = dialogPage.getHTMLElement()