Merge remote-tracking branch 'origin/4.10'

Change-Id: I24ef6e5c83725185bafed04d38f2523f8aad1ddc
This commit is contained in:
Eike Ziller
2019-07-29 09:49:02 +02:00
10 changed files with 8 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -99,7 +99,8 @@ def selectFromCombo(objectSpec, itemName):
else: else:
mouseClick(object) mouseClick(object)
snooze(1) snooze(1)
mouseClick(waitForObjectItem(object, itemName.replace(".", "\\."))) # params required here
mouseClick(waitForObjectItem(object, itemName.replace(".", "\\.")), 5, 5, 0, Qt.LeftButton)
test.verify(waitFor("str(object.currentText)==itemName", 5000), test.verify(waitFor("str(object.currentText)==itemName", 5000),
"Switched combo item to '%s'" % itemName) "Switched combo item to '%s'" % itemName)
return True return True

View File

@@ -29,7 +29,8 @@ def handleInsertVirtualFunctions(expected, toAdd):
def __checkVirtualFunction(treeView, classIndex, isCheckedF, child): def __checkVirtualFunction(treeView, classIndex, isCheckedF, child):
item = "%s.%s" % (str(classIndex.text), str(child.text)) item = "%s.%s" % (str(classIndex.text), str(child.text))
test.log("Checking '%s'." % item) test.log("Checking '%s'." % item)
mouseClick(waitForObjectItem(treeView, item.replace("_", "\\_"))) # params required here
mouseClick(waitForObjectItem(treeView, item.replace("_", "\\_")), 5, 5, 0, Qt.LeftButton)
test.verify(waitFor("isCheckedF(child)", 1000), "Function must be checked after clicking") test.verify(waitFor("isCheckedF(child)", 1000), "Function must be checked after clicking")
treeView = waitForObject("{container={title='Functions to insert:' type='QGroupBox' unnamed='1'" treeView = waitForObject("{container={title='Functions to insert:' type='QGroupBox' unnamed='1'"

View File

@@ -93,7 +93,9 @@ def renameFile(projectDir, proFile, branch, oldname, newname):
try: try:
openItemContextMenu(treeview, itemText, 5, 5, 0) openItemContextMenu(treeview, itemText, 5, 5, 0)
except: except:
openItemContextMenu(treeview, addBranchWildcardToRoot(itemText), 5, 5, 0) itemWithWildcard = addBranchWildcardToRoot(itemText)
waitForObjectItem(treeview, itemWithWildcard, 10000)
openItemContextMenu(treeview, itemWithWildcard, 5, 5, 0)
# hack for Squish5/Qt5.2 problems of handling menus on Mac - remove asap # hack for Squish5/Qt5.2 problems of handling menus on Mac - remove asap
if platform.system() == 'Darwin': if platform.system() == 'Darwin':
waitFor("macHackActivateContextMenuItem('Rename...')", 5000) waitFor("macHackActivateContextMenuItem('Rename...')", 5000)

View File

@@ -53,11 +53,11 @@ def closeHTTPStatusAndPasterDialog(protocol, pasterDialog):
if 'Service Unavailable' in text: if 'Service Unavailable' in text:
test.warning(text) test.warning(text)
return True return True
test.log("Closed dialog without expected error.", text)
except: except:
t,v = sys.exc_info()[:2] t,v = sys.exc_info()[:2]
test.warning("An exception occurred in closeHTTPStatusAndPasterDialog(): %s(%s)" test.warning("An exception occurred in closeHTTPStatusAndPasterDialog(): %s(%s)"
% (str(t), str(v))) % (str(t), str(v)))
test.log("Closed dialog without expected error.", text)
return False return False
def pasteFile(sourceFile, protocol): def pasteFile(sourceFile, protocol):