SquishTests: Fix expected proposals

Change-Id: Id835185e621fac6adba3e1db15d1a3d782b571df
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
This commit is contained in:
Christian Stenger
2023-07-11 15:48:35 +02:00
parent d55d2cbb2f
commit 6b39020295

View File

@@ -41,8 +41,9 @@ def main():
listView = waitForObject(":popupFrame_Proposal_QListView")
shownProposals = dumpItems(listView.model())
usedProposal = "class derived from QObject"
expectedProposals = ["class", "class ", "class template",
expectedProposals = ["class ", "class template",
usedProposal, "class derived from QWidget"]
expectedProposals += [" class"] if useClang else ["class"]
test.xcompare(len(shownProposals), len(expectedProposals), # QTCREATORBUG-23159
"Number of proposed templates")
test.verify(set(expectedProposals).issubset(set(shownProposals)),