aboutsummaryrefslogtreecommitdiffstats
path: root/tests/system/suite_HELP
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2017-10-13 11:34:21 +0200
committerChristian Stenger <christian.stenger@qt.io>2017-10-18 04:56:11 +0000
commitfb4f66927da4ceb2ed93ff29b35cdfd390ead968 (patch)
treeb831e9b46625113ed263bbbe86b45f6bcbbf5fb1 /tests/system/suite_HELP
parentc4ec04d25429d76de834df344eebe59fe2990d12 (diff)
Squish: Adapt tst_HELP05 to changed template
Change-Id: I03973193b2a705af632fd8978b37873bde51006f Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Diffstat (limited to 'tests/system/suite_HELP')
-rwxr-xr-xtests/system/suite_HELP/tst_HELP05/test.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/system/suite_HELP/tst_HELP05/test.py b/tests/system/suite_HELP/tst_HELP05/test.py
index 1acfac0b542..2b84e6d7afc 100755
--- a/tests/system/suite_HELP/tst_HELP05/test.py
+++ b/tests/system/suite_HELP/tst_HELP05/test.py
@@ -37,10 +37,12 @@ def verifyInteractiveQMLHelp(lineText, helpText):
type(editorArea, homeKey)
else:
type(editorArea, homeKey)
+ snooze(1)
# call help
type(editorArea, "<F1>")
- test.verify(helpText in getHelpTitle(),
- "Verifying if help is opened with documentation for '%s'." % helpText)
+ test.verify(waitFor('helpText in getHelpTitle()', 1000),
+ "Verifying if help is opened with documentation for '%s'.\nHelp title: %s"
+ % (helpText, getHelpTitle()))
def main():
startApplication("qtcreator" + SettingsPath)
@@ -52,10 +54,15 @@ def main():
addHelpDocumentation(qchs)
# create qt quick application
createNewQtQuickApplication(tempDir(), "SampleApp")
+ editorArea = waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget")
+ # add basic MouseArea item to check it afterwards
+ codelines = ['MouseArea {', 'anchors.fill: parent', 'onClicked: Qt.quit()']
+ if not addTestableCodeAfterLine(editorArea, 'title: qsTr("Hello World")', codelines):
+ saveAndExit()
+ return
+ invokeMenuItem("File", "Save All")
# verify Rectangle help
verifyInteractiveQMLHelp("Window {", "Window QML Type")
- # go back to edit mode
- switchViewTo(ViewConstants.EDIT)
# verify MouseArea help
verifyInteractiveQMLHelp("MouseArea {", "MouseArea QML Type")
# exit