提交 edbee87f 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

refactor(dialogPage): 补充注释说明

上级 a8fae94d
...@@ -253,26 +253,31 @@ ...@@ -253,26 +253,31 @@
handleOpenAnimationType(e : RadioGroupChangeEvent) { handleOpenAnimationType(e : RadioGroupChangeEvent) {
this.openAnimationType = e.detail.value as OpenAnimationType this.openAnimationType = e.detail.value as OpenAnimationType
}, },
// 自动化测试
getDialogPage() : UniPage | null { getDialogPage() : UniPage | null {
const dialogPages = this.$page.getDialogPages() const dialogPages = this.$page.getDialogPages()
return dialogPages.length > 0 ? dialogPages[0] : null return dialogPages.length > 0 ? dialogPages[0] : null
}, },
// 自动化测试
dialogPageCheckGetDialogPages() : boolean { dialogPageCheckGetDialogPages() : boolean {
const dialogPage = this.getDialogPage()! const dialogPage = this.getDialogPage()!
const dialogPages = dialogPage.getDialogPages() const dialogPages = dialogPage.getDialogPages()
const res = dialogPages.length == 0 const res = dialogPages.length == 0
return res return res
}, },
// 自动化测试
dialogPageGetPageStyle() : UTSJSONObject { dialogPageGetPageStyle() : UTSJSONObject {
const dialogPage = this.getDialogPage()! const dialogPage = this.getDialogPage()!
return dialogPage.getPageStyle() return dialogPage.getPageStyle()
}, },
// 自动化测试
dialogPageSetPageStyle() { dialogPageSetPageStyle() {
const dialogPage = this.getDialogPage()! const dialogPage = this.getDialogPage()!
dialogPage.setPageStyle({ dialogPage.setPageStyle({
backgroundColorContent: 'red' backgroundColorContent: 'red'
}) })
}, },
// 自动化测试
dialogPageCheckGetElementById() : boolean { dialogPageCheckGetElementById() : boolean {
const dialogPage = this.getDialogPage()! const dialogPage = this.getDialogPage()!
const element = dialogPage.getElementById('dialog1-go-next-page') const element = dialogPage.getElementById('dialog1-go-next-page')
...@@ -286,18 +291,21 @@ ...@@ -286,18 +291,21 @@
// #endif // #endif
return res return res
}, },
// 自动化测试
dialogCheckGetAndroidView() : boolean { dialogCheckGetAndroidView() : boolean {
const dialogPage = this.getDialogPage()! const dialogPage = this.getDialogPage()!
const androidView = dialogPage.getAndroidView() const androidView = dialogPage.getAndroidView()
const res = androidView != null const res = androidView != null
return res return res
}, },
// 自动化测试
dialogCheckGetIOSView() : boolean { dialogCheckGetIOSView() : boolean {
const dialogPage = this.getDialogPage()! const dialogPage = this.getDialogPage()!
const IOSView = dialogPage.getIOSView() const IOSView = dialogPage.getIOSView()
const res = IOSView != null const res = IOSView != null
return res return res
}, },
// 自动化测试
dialogCheckGetHTMLElement() : boolean { dialogCheckGetHTMLElement() : boolean {
const dialogPage = this.getDialogPage()! const dialogPage = this.getDialogPage()!
const HTMLView = dialogPage.getHTMLElement() const HTMLView = dialogPage.getHTMLElement()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册