Move init and cleanup methods to base class

This commit is contained in:
B.Melnik 2021-10-20 14:00:05 +03:00
parent 11a030323e
commit fbce275e3c
No known key found for this signature in database
GPG Key ID: 4A9B2E42E3BD4727
10 changed files with 9 additions and 74 deletions

View File

@ -21,4 +21,12 @@ TestCase {
visible: true
}
function initTestCase() {
window.show()
}
function cleanupTestCase() {
window.close()
}
}

View File

@ -53,15 +53,6 @@ WindowTestCase {
}
}
function initTestCase() {
window.show()
}
function cleanupTestCase() {
window.close()
}
function test_clickFunctions() {
// Verify than signal exists
verify(clickedSpy.valid, "Signal " + clickedSpy.signalName + "is not valid")

View File

@ -72,15 +72,6 @@ WindowTestCase {
}
function initTestCase() {
window.show()
}
function cleanupTestCase() {
window.close()
}
function test_case_ChooseChatNameModal_height_width() {
var genKeyModal = popupComponent.createObject(window)

View File

@ -26,17 +26,6 @@ WindowTestCase {
}
function initTestCase() {
window.show()
}
function cleanupTestCase() {
window.close()
}
function test_case1_BeforeGetStartedModal_height_width() {
var beforeGetStartedModal = popupComponent.createObject(window)

View File

@ -36,14 +36,6 @@ WindowTestCase {
///////
function initTestCase() {
window.show()
}
function cleanupTestCase() {
window.close()
}
function test_case1() {
var propfilePopup = popupComponent.createObject(window)
propfilePopup.openPopup(true, "Test user", "Some author", "", "bla bla test it bitch", "Nickname")

View File

@ -41,16 +41,6 @@ WindowTestCase {
}
function initTestCase() {
window.show()
}
function cleanupTestCase() {
window.close()
}
function test_case1_statusButton_clicked() {
var statusButton = popupComponent.createObject(window)

View File

@ -36,16 +36,6 @@ WindowTestCase {
}
function initTestCase() {
window.show()
}
function cleanupTestCase() {
window.close()
}
function test_case1_statusChatInfoButton_clicked() {
var statusChatInfoButton = popupComponent.createObject(window)

View File

@ -25,14 +25,6 @@ WindowTestCase {
}
}
function initTestCase() {
window.show()
}
function cleanupTestCase() {
window.close()
}
function test_expand() {
verify(!expandableItem.expanded)

View File

@ -30,14 +30,6 @@ WindowTestCase {
subTitle: "Subtitle"
}
function initTestCase() {
window.show()
}
function cleanupTestCase() {
window.close()
}
function test_clickFunctions() {
// Verify than signal exists
verify(clickedSpy.valid, "Signal " + clickedSpy.signalName + "is not valid")

View File

@ -8,7 +8,7 @@ DEFINES += PROJECT_PATH=\"$${PWD}\"
#DISTFILES += $$
DISTFILES += $$files("$$PWD/*", true)
DISTFILES += $$files("$$PWD/*.qml", true)
QML_IMPORT_PATH += status-desktop/ui/StatusQ/src