forked from qt-creator/qt-creator
Squish: Added test for local git actions
Change-Id: I4b7cd2e872d6a9aed95d3802d9df98ffdce2cbfe Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -724,3 +724,11 @@ def getQModelIndexStr(property, container):
|
||||
if (container.startswith(":")):
|
||||
container = "'%s'" % container
|
||||
return ("{column='0' container=%s %s type='QModelIndex'}" % (container, property))
|
||||
|
||||
def verifyItemOrder(items, text):
|
||||
text = str(text)
|
||||
lastIndex = 0
|
||||
for item in items:
|
||||
index = text.find(item)
|
||||
test.verify(index > lastIndex, "'" + item + "' found at index " + str(index))
|
||||
lastIndex = index
|
||||
|
||||
Reference in New Issue
Block a user