From 7f962aeb6b93273793e22364940ec90935a3f1c9 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 27 Jul 2012 10:00:03 +0200 Subject: [PATCH] Squish: Fix setRunInTerminal for 1-target-projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fix just removes the dependency to the scrollArea that exists when there are more than 1 targets but is missing when there's only 1 target available. Change-Id: I02594aa5226f53ffaa5e3693b8075f5ef88c5f88 Reviewed-by: Robert Löhning --- tests/system/shared/project_explorer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/system/shared/project_explorer.py b/tests/system/shared/project_explorer.py index 02a45e9722d..022727b3123 100644 --- a/tests/system/shared/project_explorer.py +++ b/tests/system/shared/project_explorer.py @@ -114,6 +114,6 @@ def switchToBuildOrRunSettingsFor(targetCount, currentTarget, projectSettings, i def setRunInTerminal(targetCount, currentTarget, runInTerminal=True): switchViewTo(ViewConstants.PROJECTS) switchToBuildOrRunSettingsFor(targetCount, currentTarget, ProjectSettings.RUN) - ensureChecked("{container=':Qt Creator.scrollArea_QScrollArea' text='Run in terminal'\ + ensureChecked("{window=':Qt Creator_Core::Internal::MainWindow' text='Run in terminal'\ type='QCheckBox' unnamed='1' visible='1'}", runInTerminal) switchViewTo(ViewConstants.EDIT)