SquishTests: Fix designer test

Children inside the object inspector are sorted
lexicographically nowadays.

Change-Id: I2f704e3a3cca526246babb2b12d48fe359eb6e6b
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
This commit is contained in:
Christian Stenger
2023-02-03 08:56:02 +01:00
parent 51cbfd77db
commit dd3f5d3a6a

View File

@@ -67,8 +67,8 @@ def performEditMenu():
"visible='1' window=':Qt Creator_Core::Internal::MainWindow'} " "visible='1' window=':Qt Creator_Core::Internal::MainWindow'} "
"type='QTreeView' unnamed='1' visible='1'}") "type='QTreeView' unnamed='1' visible='1'}")
tree = __iterateChildren__(objInspTV.model(), None) tree = __iterateChildren__(objInspTV.model(), None)
expectedMenuSequence = [["menuSquishTestFile", 2], ["actionOpen", 3], ["separator", 3], expectedMenuSequence = [["menuSquishTestFile", 2], ["actionOpen", 3], ["actionShutdown", 3],
["actionShutdown", 3]] ["separator", 3]]
seqStart = tree.index(expectedMenuSequence[0]) seqStart = tree.index(expectedMenuSequence[0])
test.verify(seqStart != -1 and tree[seqStart:seqStart + 4] == expectedMenuSequence, test.verify(seqStart != -1 and tree[seqStart:seqStart + 4] == expectedMenuSequence,
"Verify Object Inspector contains expected menu inclusive children.") "Verify Object Inspector contains expected menu inclusive children.")