aboutsummaryrefslogtreecommitdiffstats
path: root/tests/system/suite_editors
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2020-04-16 23:51:26 +0200
committerRobert Loehning <robert.loehning@qt.io>2020-04-21 10:01:01 +0000
commit7c95e17436d68f43e9b9d2e9e5a5bc2bdcb8bfb9 (patch)
tree908d09130061244f3493bb04cf99285536066092 /tests/system/suite_editors
parent8c7a06efd504882cc47f987502070e0a6e93ffbf (diff)
Make WidgetTips Squish-testable
Change-Id: I337fdca3541c5b2fb8f09ab2d7721b8950c0bea9 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests/system/suite_editors')
-rw-r--r--tests/system/suite_editors/tst_qml_editor/test.py25
1 files changed, 8 insertions, 17 deletions
diff --git a/tests/system/suite_editors/tst_qml_editor/test.py b/tests/system/suite_editors/tst_qml_editor/test.py
index ecd9ab008e..c26207ea6e 100644
--- a/tests/system/suite_editors/tst_qml_editor/test.py
+++ b/tests/system/suite_editors/tst_qml_editor/test.py
@@ -122,35 +122,26 @@ def testHovering():
else:
home = "<Home>"
additionalKeyPresses = [home, "<Right>"]
- expectedTypes = ["TextTip", "TextTip"]
+ expectedTypes = ["WidgetTip", "WidgetTip"]
expectedValues = [
- {'text':'<table><tr><td valign=middle><p>FocusScope</p><hr/><p>\n<p>Explicitly '
- 'creates a focus scope </p></p></td><td>&nbsp;&nbsp;<img src=":/utils/tooltip/images/f1.png"></td></tr></table>'},
- {'text':'<table><tr><td valign=middle><p>Rectangle</p><hr/><p>\n<p>Paints a filled rectangle with an '
- 'optional border </p></p></td><td>&nbsp;&nbsp;<img src=":/utils/tooltip/images/f1.png"></td></tr></table>'}
+ {'text':'FocusScope<hr/>\n<p>Explicitly creates a focus scope.</p>'},
+ {'text':'Rectangle<hr/>\n<p>Paints a filled rectangle with an optional border.</p>'}
]
- alternativeValues = [{"text":"<p>FocusScope</p>"}, {"text":"<p>Rectangle</p>"}]
- verifyHoveringOnEditor(editor, lines, additionalKeyPresses, expectedTypes, expectedValues, alternativeValues)
+ verifyHoveringOnEditor(editor, lines, additionalKeyPresses, expectedTypes, expectedValues)
test.log("Testing hovering properties")
openDocument(focusDocumentPath % "focus\\.qml")
editor = waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget")
lines = ['focus:\s*true', 'color:\s*"black"', 'states:\s*State\s*\{', 'transitions:\s*Transition\s*\{']
- expectedTypes = ["TextTip", "TextTip", "TextTip", "TextTip"]
+ expectedTypes = ["TextTip", "WidgetTip", "WidgetTip", "WidgetTip"]
expectedValues = [
{'text':'<table><tr><td valign=middle><p>boolean</p><hr/><p><p>This property indicates whether the item has focus '
'within the enclosing focus scope. If true, this item will gain active focus when the enclosing '
'focus scope gains active focus. In the following example, <tt>input</tt> will be given active focus '
'when <tt>scope</tt> gains active focus.</p></p></td><td>&nbsp;&nbsp;<img src=":/utils/tooltip/images/f1.png"'
'></td></tr></table>'},
- {'text':'<table><tr><td valign=middle><p>string</p><hr/><p><p>This property holds the color used to fill the rectangle.'
- '</p></p></td><td>&nbsp;&nbsp;<img src=":/utils/tooltip/images/f1.png"></td></tr></table>'},
- {'text':'<table><tr><td valign=middle><p>State</p><hr/><p><p>This property holds the list of possible states for this item. '
- 'To change the state of this item, set the state property to one of these states, or set the state property '
- 'to an empty string to revert the item to its default state.'
- '</p></p></td><td>&nbsp;&nbsp;<img src=":/utils/tooltip/images/f1.png"></td></tr></table>'},
- {'text':'<table><tr><td valign=middle><p>Transition</p><hr/><p><p>This property holds the list of transitions for this item. '
- 'These define the transitions to be applied to the item whenever it changes its state.'
- '</p></p></td><td>&nbsp;&nbsp;<img src=":/utils/tooltip/images/f1.png"></td></tr></table>'}
+ {'text':'string'},
+ {'text':'State'},
+ {'text':'Transition'}
]
alternativeValues = [{"text":"<p>boolean</p>"}, {"text":"<p>string</p>"},
{"text":"<p>State</p>"}, {"text":"<p>Transition</p>"}]