Commit 3b820cc9 authored by Christian Stenger's avatar Christian Stenger

Squish: Fix tst_installed_languages on OSX

Change-Id: I470047d663ec4c2bfebaa17baf67bc811d9c0c65
Reviewed-by: default avatarRobert Loehning <robert.loehning@qt.io>
parent b2f869c4
......@@ -42,6 +42,8 @@ def main():
selectFromCombo(":User Interface.languageBox_QComboBox", languageName)
clickButton(waitForObject(":Options.OK_QPushButton"))
clickButton(waitForObject(":Restart required.OK_QPushButton"))
test.verify(waitFor("not object.exists(':Options_Core::Internal::SettingsDialog')", 5000),
"Options dialog disappeared")
invokeMenuItem("File", "Exit")
waitForCleanShutdown()
snooze(4) # wait for complete unloading of Creator
......@@ -49,12 +51,16 @@ def main():
startApplication("qtcreator" + SettingsPath)
try:
if platform.system() == 'Darwin':
# temporary hack for handling wrong menus when using Squish 5.0.1 with Qt5.2
try:
fileMenu = waitForObjectItem(":Qt Creator.QtCreator.MenuBar_QMenuBar",
testData.field(lang, "File"))
activateItem(fileMenu)
waitForObject("{type='QMenu' visible='1'}")
obj = waitForObject("{type='QMenu' visible='1'}")
test.compare(str(obj.objectName), 'QtCreator.Menu.File',
"Creator was running in %s translation" % languageName)
activateItem(fileMenu)
except:
test.fail("Creator seems to be missing %s translation" % languageName)
nativeType("<Command+q>")
else:
invokeMenuItem(testData.field(lang, "File"), testData.field(lang, "Exit"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment