Squish: Fix expected default setting

Pre-compiled headers are no more ignored by default.

Change-Id: Ia107495626f8050fb2537443ef69ea732a93b530
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
This commit is contained in:
Christian Stenger
2019-02-19 10:28:52 +01:00
parent fc573254b7
commit e31020a60e
2 changed files with 4 additions and 4 deletions

View File

@@ -65,6 +65,6 @@ def getCodeModelString(useClang):
def checkCodeModelSettings(useClang): def checkCodeModelSettings(useClang):
__openCodeModelOptions__() __openCodeModelOptions__()
test.verify(verifyChecked("{name='ignorePCHCheckBox' type='QCheckBox' visible='1'}"), test.log("Verifying whether 'Ignore pre-compiled headers' is unchecked by default.")
"Verifying whether 'Ignore pre-compiled headers' is checked by default.") verifyChecked("{name='ignorePCHCheckBox' type='QCheckBox' visible='1'}", False)
clickButton(waitForObject(":Options.OK_QPushButton")) clickButton(waitForObject(":Options.OK_QPushButton"))

View File

@@ -42,9 +42,9 @@ def tempDir():
def deleteDirIfExists(path): def deleteDirIfExists(path):
shutil.rmtree(path, True) shutil.rmtree(path, True)
def verifyChecked(objectName): def verifyChecked(objectName, checked=True):
object = waitForObject(objectName) object = waitForObject(objectName)
test.compare(object.checked, True) test.compare(object.checked, checked)
return object return object
def ensureChecked(objectName, shouldBeChecked = True, timeout=20000): def ensureChecked(objectName, shouldBeChecked = True, timeout=20000):