Squish: Don't use Qt4 in tst_HELP04 anymore

Change-Id: Idebff8b0bfd75daf573ab870dedd984eac9d09d0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Löhning
2022-03-17 19:42:34 +01:00
parent 10f2fb7be2
commit 59c32bcfbe

View File

@@ -1,6 +1,6 @@
############################################################################ ############################################################################
# #
# Copyright (C) 2016 The Qt Company Ltd. # Copyright (C) 2022 The Qt Company Ltd.
# Contact: https://www.qt.io/licensing/ # Contact: https://www.qt.io/licensing/
# #
# This file is part of Qt Creator. # This file is part of Qt Creator.
@@ -26,9 +26,9 @@
source("../../shared/qtcreator.py") source("../../shared/qtcreator.py")
# test search in help mode and advanced search # test search in help mode and advanced search
searchKeywordDictionary = { "abundance":True, "deplmint":False, "QODBC":True, "bldx":False } searchKeywordDictionary = { "compass":True, "deplmint":False, "QODBC":True, "bldx":False }
urlDictionary = { "abundance":"qthelp://com.trolltech.qt.487/qdoc/gettingstarted-develop.html", urlDictionary = {"compass":"qthelp://org.qt-project.qtdoc.5141/qtdoc/mobiledevelopment.html",
"QODBC":"qthelp://com.trolltech.qt.487/qdoc/sql-driver.html" } "QODBC":"qthelp://org.qt-project.qtsql.5141/qtsql/sql-driver.html" }
def __getSelectedText__(): def __getSelectedText__():
@@ -69,8 +69,9 @@ def main():
startQC() startQC()
if not startedWithoutPluginError(): if not startedWithoutPluginError():
return return
if qt4Available: docFiles = ["qtdoc.qch", "qtsql.qch"]
addHelpDocumentation([os.path.join(qt4Path, "doc", "qch", "qt.qch")]) docFiles = [os.path.join(Qt5Path.docsPath(Targets.DESKTOP_5_14_1_DEFAULT), file) for file in docFiles]
addHelpDocumentation(docFiles)
# switch to help mode # switch to help mode
switchViewTo(ViewConstants.HELP) switchViewTo(ViewConstants.HELP)
# verify that search widget is accessible # verify that search widget is accessible
@@ -87,9 +88,6 @@ def main():
test.verify(waitFor("noMatch in " test.verify(waitFor("noMatch in "
"str(resultWidget.plainText)", 2000), "str(resultWidget.plainText)", 2000),
"Verifying if search did not match anything.") "Verifying if search did not match anything.")
# workaround for "endless waiting cursor"
mouseClick(waitForObject("{column='0' container=':Qt Creator_QHelpContentWidget' "
"text='Qt Reference Documentation' type='QModelIndex'}"))
# try to search keyword from list # try to search keyword from list
searchLineEdit = getChildByClass(waitForObject("{type='QHelpSearchQueryWidget' unnamed='1' visible='1' " searchLineEdit = getChildByClass(waitForObject("{type='QHelpSearchQueryWidget' unnamed='1' visible='1' "
"window=':Qt Creator_Core::Internal::MainWindow'}"), "window=':Qt Creator_Core::Internal::MainWindow'}"),