From f33d0179a783059e1f38de1d243c59959f24a940 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Mon, 20 Aug 2012 12:40:14 +0200 Subject: [PATCH] Squish: Fix for UI change Implementation of TargetSelector has changed - this patch adjusts the click positions for build and run settings. Change-Id: Id65a00d8dba66d6be158ca86969795ce1196e569 Reviewed-by: Robert Loehning --- tests/system/shared/project_explorer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/system/shared/project_explorer.py b/tests/system/shared/project_explorer.py index 794ece68b51..43d5530c9da 100644 --- a/tests/system/shared/project_explorer.py +++ b/tests/system/shared/project_explorer.py @@ -82,9 +82,9 @@ def switchToBuildOrRunSettingsFor(targetCount, currentTarget, projectSettings, i selectorWidth = (targetSel.width - 3 - 2 * (ADD_BUTTON_WIDTH + 1)) / targetCount - 1 yToClick = targetSel.height * 3 / 5 + 5 if projectSettings == ProjectSettings.RUN: - xToClick = ADD_BUTTON_WIDTH + (selectorWidth + 1) * currentTarget - 2 + selectorWidth / 2 + 5 + xToClick = ADD_BUTTON_WIDTH + (selectorWidth + 1) * currentTarget - 2 + selectorWidth / 2 + 15 elif projectSettings == ProjectSettings.BUILD: - xToClick = ADD_BUTTON_WIDTH + (selectorWidth + 1) * currentTarget - 2 + selectorWidth / 2 - 5 + xToClick = ADD_BUTTON_WIDTH + (selectorWidth + 1) * currentTarget - 2 + selectorWidth / 2 - 15 else: test.fatal("Don't know what you're trying to switch to") return False