forked from qt-creator/qt-creator
Squish: Remove obsolete workaround
Squish forces file dialogs to be real QFileDialogs for a long time while testing. Beside being no more necessary the workaround also causes problems nowadays. Change-Id: I211b64e61a0e28ede2a38d4d90cea5da350fa749 Reviewed-by: Robert Löhning <robert.loehning@qt.io>
This commit is contained in:
@@ -238,18 +238,6 @@ def selectFromFileDialog(fileName, waitForFile=False, ignoreFinalSnooze=False):
|
||||
test.log("Closing active popup widget")
|
||||
QApplication.activePopupWidget().close()
|
||||
|
||||
if platform.system() == "Darwin":
|
||||
snooze(1)
|
||||
nativeType("<Command+Shift+g>")
|
||||
snooze(1)
|
||||
nativeType(fileName)
|
||||
snooze(2)
|
||||
nativeType("<Return>")
|
||||
snooze(3)
|
||||
nativeType("<Return>")
|
||||
if not ignoreFinalSnooze:
|
||||
snooze(1)
|
||||
else:
|
||||
fName = os.path.basename(os.path.abspath(fileName))
|
||||
pName = os.path.dirname(os.path.abspath(fileName)) + os.sep
|
||||
try:
|
||||
|
Reference in New Issue
Block a user