From a87293d1c4d1c5e12dc8311cfa49283ab6d977ab Mon Sep 17 00:00:00 2001
From: Christian Stenger
Date: Wed, 13 Nov 2019 09:56:18 +0100
Subject: [PATCH] Squish: Update expected tool tips
Change-Id: Ibde199b8f88448c9f0e7b235f7ede57735718201
Reviewed-by: Robert Loehning
---
tests/system/suite_editors/tst_qml_editor/test.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/tests/system/suite_editors/tst_qml_editor/test.py b/tests/system/suite_editors/tst_qml_editor/test.py
index c8e5a66a010..633e9fcbdc1 100644
--- a/tests/system/suite_editors/tst_qml_editor/test.py
+++ b/tests/system/suite_editors/tst_qml_editor/test.py
@@ -129,7 +129,7 @@ def testHovering():
{'text':'Rectangle
\n Paints a filled rectangle with an '
'optional border |  |
'}
]
- alternativeValues = [{"text":"FocusScope"}, {"text":"Rectangle"}]
+ alternativeValues = [{"text":"FocusScope
"}, {"text":"Rectangle
"}]
verifyHoveringOnEditor(editor, lines, additionalKeyPresses, expectedTypes, expectedValues, alternativeValues)
test.log("Testing hovering properties")
openDocument(focusDocumentPath % "focus\\.qml")
@@ -152,11 +152,12 @@ def testHovering():
'These define the transitions to be applied to the item whenever it changes its state.'
'
 | '}
]
- alternativeValues = [{"text":"boolean"}, {"text":"string"}, {"text":"State"}, {"text":"Transition"}]
+ alternativeValues = [{"text":"boolean
"}, {"text":"string
"},
+ {"text":"State
"}, {"text":"Transition
"}]
if JIRA.isBugStillOpen(20020):
expectedValues[0] = {'text':'Rectangle | '
' |
'}
- alternativeValues[0] = {"text":"Rectangle"}
+ alternativeValues[0] = {"text":"Rectangle
"}
verifyHoveringOnEditor(editor, lines, additionalKeyPresses, expectedTypes, expectedValues, alternativeValues)
test.log("Testing hovering expressions")
openDocument(focusDocumentPath % "focus\\.qml")
@@ -173,5 +174,5 @@ def testHovering():
additionalKeyPresses = ["", "", "", ""]
expectedTypes = ["ColorTip", "TextTip"]
expectedValues = ["#D1DBBD", {"text":'number |  |
'}]
- alternativeValues = ["#D6DBBD", None]
+ alternativeValues = ["#D6DBBD", {"text":"number
"}]
verifyHoveringOnEditor(editor, lines, additionalKeyPresses, expectedTypes, expectedValues, alternativeValues)