Commit c283ecaf authored by Christian Stenger's avatar Christian Stenger

Squish: Temporary fix for tst_installed_languages

b748c1b3 solved the issue for
Qt Creator running in English only. This test starts Qt Creator
with different language settings, so the app won't close properly.

Change-Id: I63b3b6c4125dc0173c4fd3b4d54c48a0d1dd9687
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent 6f01f73b
......@@ -52,7 +52,16 @@ def main():
overrideStartApplication()
startApplication("qtcreator" + SettingsPath)
try:
invokeMenuItem(testData.field(lang, "File"), testData.field(lang, "Exit"))
if platform.system() == 'Darwin':
# temporary hack for handling wrong menus when using Squish 5.0.1 with Qt5.2
fileMenu = waitForObjectItem(":Qt Creator.QtCreator.MenuBar_QMenuBar",
testData.field(lang, "File"))
activateItem(fileMenu)
waitForObject("{type='QMenu' visible='1'}")
activateItem(fileMenu)
nativeType("<Command+q>")
else:
invokeMenuItem(testData.field(lang, "File"), testData.field(lang, "Exit"))
test.passes("Creator was running in %s translation." % languageName)
except:
test.fail("Creator seems to be missing %s translation" % languageName)
......
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