forked from qt-creator/qt-creator
Squish: Use example from Qt 5 in tst_qml_outline
Task-number: QTCREATORBUG-15469 Change-Id: Ib719e31e53f23a51c4971a53eaa870f4833ef748 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -27,19 +27,20 @@ source("../../shared/qtcreator.py")
|
||||
|
||||
qmlEditor = ":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget"
|
||||
outline = ":Qt Creator_QmlJSEditor::Internal::QmlJSOutlineTreeView"
|
||||
treebase = "keyinteraction.Resources.keyinteraction\\.qrc./keyinteraction.focus."
|
||||
|
||||
def main():
|
||||
sourceExample = os.path.abspath(os.path.join(sdkPath, "Examples", "4.7", "declarative",
|
||||
"keyinteraction", "focus"))
|
||||
proFile = "focus.pro"
|
||||
sourceExample = os.path.join(Qt5Path.examplesPath(Targets.DESKTOP_561_DEFAULT),
|
||||
"quick", "keyinteraction")
|
||||
proFile = "keyinteraction.pro"
|
||||
if not neededFilePresent(os.path.join(sourceExample, proFile)):
|
||||
return
|
||||
templateDir = prepareTemplate(sourceExample)
|
||||
startApplication("qtcreator" + SettingsPath)
|
||||
if not startedWithoutPluginError():
|
||||
return
|
||||
openQmakeProject(os.path.join(templateDir, proFile), Targets.DESKTOP_480_DEFAULT)
|
||||
qmlFiles = ["focus.QML.qml.focus\\.qml", "focus.QML.qml.Core.ListMenu\\.qml"]
|
||||
openQmakeProject(os.path.join(templateDir, proFile), Targets.DESKTOP_531_DEFAULT)
|
||||
qmlFiles = [treebase + "focus\\.qml", treebase + "Core.ListMenu\\.qml"]
|
||||
checkOutlineFor(qmlFiles)
|
||||
testModify()
|
||||
invokeMenuItem("File", "Save All")
|
||||
@@ -73,7 +74,7 @@ def processChildren(model, startIndex, level):
|
||||
|
||||
def testModify():
|
||||
global qmlEditor
|
||||
if not openDocument("focus.QML.qml.focus\\.qml"):
|
||||
if not openDocument(treebase + "focus\\.qml"):
|
||||
test.fatal("Failed to open file focus.qml")
|
||||
return
|
||||
test.log("Testing whether modifications show up inside outline.")
|
||||
|
||||
+42
-9
@@ -2,7 +2,7 @@
|
||||
"Rectangle" "0" ""
|
||||
"id" "1" "window"
|
||||
"width" "1" "800"
|
||||
"height" "1" "480"
|
||||
"height" "1" "640"
|
||||
"color" "1" """#3E606F"""
|
||||
"Text" "1" ""
|
||||
"id" "2" "addedText"
|
||||
@@ -15,17 +15,25 @@
|
||||
"width" "2" "parent.width"
|
||||
"height" "2" "parent.height"
|
||||
"focus" "2" "true"
|
||||
"TabMenu" "2" ""
|
||||
"id" "3" "tabMenu"
|
||||
"y" "3" "160"
|
||||
"width" "3" "parent.width"
|
||||
"height" "3" "160"
|
||||
"focus" "3" "true"
|
||||
"activeFocusOnTab" "3" "true"
|
||||
"GridMenu" "2" ""
|
||||
"id" "3" "gridMenu"
|
||||
"width" "3" "parent.width"
|
||||
"height" "3" "320"
|
||||
"focus" "3" "true"
|
||||
"interactive" "3" "parent.activeFocus"
|
||||
"ListMenu" "2" ""
|
||||
"id" "3" "listMenu"
|
||||
"y" "3" "320"
|
||||
"width" "3" "parent.width"
|
||||
"height" "3" "320"
|
||||
"activeFocusOnTab" "3" "true"
|
||||
"ListMenu" "2" ""
|
||||
"id" "3" "listMenu"
|
||||
"y" "3" "640"
|
||||
"width" "3" "parent.width"
|
||||
"height" "3" "320"
|
||||
"activeFocusOnTab" "3" "true"
|
||||
"Rectangle" "2" ""
|
||||
"id" "3" "shade"
|
||||
"anchors.fill" "3" "parent"
|
||||
@@ -33,13 +41,38 @@
|
||||
"opacity" "3" "0"
|
||||
"states" "2" ""
|
||||
"State" "3" ""
|
||||
"name" "4" """showListViews"""
|
||||
"name" "4" """showTabViews"""
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "tabMenu"
|
||||
"y" "5" "160"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "gridMenu"
|
||||
"y" "5" "-160"
|
||||
"y" "5" "320"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "listMenu"
|
||||
"y" "5" "640"
|
||||
"State" "3" ""
|
||||
"name" "4" """showGridViews"""
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "tabMenu"
|
||||
"y" "5" "0"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "gridMenu"
|
||||
"y" "5" "160"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "listMenu"
|
||||
"y" "5" "480"
|
||||
"State" "3" ""
|
||||
"name" "4" """showListViews"""
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "tabMenu"
|
||||
"y" "5" "-160"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "gridMenu"
|
||||
"y" "5" "0"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "listMenu"
|
||||
"y" "5" "320"
|
||||
"transitions" "2" ""
|
||||
"Transition" "3" ""
|
||||
"NumberAnimation" "4" ""
|
||||
|
||||
|
+42
-9
@@ -2,7 +2,7 @@
|
||||
"Rectangle" "0" ""
|
||||
"id" "1" "window"
|
||||
"width" "1" "800"
|
||||
"height" "1" "480"
|
||||
"height" "1" "640"
|
||||
"color" "1" """white"""
|
||||
"Text" "1" ""
|
||||
"id" "2" "addedText"
|
||||
@@ -15,17 +15,25 @@
|
||||
"width" "2" "parent.width"
|
||||
"height" "2" "parent.height"
|
||||
"focus" "2" "true"
|
||||
"TabMenu" "2" ""
|
||||
"id" "3" "tabMenu"
|
||||
"y" "3" "160"
|
||||
"width" "3" "parent.width"
|
||||
"height" "3" "160"
|
||||
"focus" "3" "true"
|
||||
"activeFocusOnTab" "3" "true"
|
||||
"GridMenu" "2" ""
|
||||
"id" "3" "gridMenu"
|
||||
"width" "3" "parent.width"
|
||||
"height" "3" "320"
|
||||
"focus" "3" "true"
|
||||
"interactive" "3" "parent.activeFocus"
|
||||
"ListMenu" "2" ""
|
||||
"id" "3" "listMenu"
|
||||
"y" "3" "320"
|
||||
"width" "3" "parent.width"
|
||||
"height" "3" "320"
|
||||
"activeFocusOnTab" "3" "true"
|
||||
"ListMenu" "2" ""
|
||||
"id" "3" "listMenu"
|
||||
"y" "3" "640"
|
||||
"width" "3" "parent.width"
|
||||
"height" "3" "320"
|
||||
"activeFocusOnTab" "3" "true"
|
||||
"Rectangle" "2" ""
|
||||
"id" "3" "shade"
|
||||
"anchors.fill" "3" "parent"
|
||||
@@ -33,13 +41,38 @@
|
||||
"opacity" "3" "0"
|
||||
"states" "2" ""
|
||||
"State" "3" ""
|
||||
"name" "4" """showListViews"""
|
||||
"name" "4" """showTabViews"""
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "tabMenu"
|
||||
"y" "5" "160"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "gridMenu"
|
||||
"y" "5" "-160"
|
||||
"y" "5" "320"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "listMenu"
|
||||
"y" "5" "640"
|
||||
"State" "3" ""
|
||||
"name" "4" """showGridViews"""
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "tabMenu"
|
||||
"y" "5" "0"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "gridMenu"
|
||||
"y" "5" "160"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "listMenu"
|
||||
"y" "5" "480"
|
||||
"State" "3" ""
|
||||
"name" "4" """showListViews"""
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "tabMenu"
|
||||
"y" "5" "-160"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "gridMenu"
|
||||
"y" "5" "0"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "listMenu"
|
||||
"y" "5" "320"
|
||||
"transitions" "2" ""
|
||||
"Transition" "3" ""
|
||||
"NumberAnimation" "4" ""
|
||||
|
||||
|
+42
-9
@@ -5,7 +5,7 @@
|
||||
"clicked" "1" ""
|
||||
"clicked()" "1" ""
|
||||
"width" "1" "800"
|
||||
"height" "1" "480"
|
||||
"height" "1" "640"
|
||||
"color" "1" """white"""
|
||||
"Text" "1" ""
|
||||
"id" "2" "addedText"
|
||||
@@ -18,17 +18,25 @@
|
||||
"width" "2" "parent.width"
|
||||
"height" "2" "parent.height"
|
||||
"focus" "2" "true"
|
||||
"TabMenu" "2" ""
|
||||
"id" "3" "tabMenu"
|
||||
"y" "3" "160"
|
||||
"width" "3" "parent.width"
|
||||
"height" "3" "160"
|
||||
"focus" "3" "true"
|
||||
"activeFocusOnTab" "3" "true"
|
||||
"GridMenu" "2" ""
|
||||
"id" "3" "gridMenu"
|
||||
"width" "3" "parent.width"
|
||||
"height" "3" "320"
|
||||
"focus" "3" "true"
|
||||
"interactive" "3" "parent.activeFocus"
|
||||
"ListMenu" "2" ""
|
||||
"id" "3" "listMenu"
|
||||
"y" "3" "320"
|
||||
"width" "3" "parent.width"
|
||||
"height" "3" "320"
|
||||
"activeFocusOnTab" "3" "true"
|
||||
"ListMenu" "2" ""
|
||||
"id" "3" "listMenu"
|
||||
"y" "3" "640"
|
||||
"width" "3" "parent.width"
|
||||
"height" "3" "320"
|
||||
"activeFocusOnTab" "3" "true"
|
||||
"Rectangle" "2" ""
|
||||
"id" "3" "shade"
|
||||
"anchors.fill" "3" "parent"
|
||||
@@ -36,13 +44,38 @@
|
||||
"opacity" "3" "0"
|
||||
"states" "2" ""
|
||||
"State" "3" ""
|
||||
"name" "4" """showListViews"""
|
||||
"name" "4" """showTabViews"""
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "tabMenu"
|
||||
"y" "5" "160"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "gridMenu"
|
||||
"y" "5" "-160"
|
||||
"y" "5" "320"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "listMenu"
|
||||
"y" "5" "640"
|
||||
"State" "3" ""
|
||||
"name" "4" """showGridViews"""
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "tabMenu"
|
||||
"y" "5" "0"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "gridMenu"
|
||||
"y" "5" "160"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "listMenu"
|
||||
"y" "5" "480"
|
||||
"State" "3" ""
|
||||
"name" "4" """showListViews"""
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "tabMenu"
|
||||
"y" "5" "-160"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "gridMenu"
|
||||
"y" "5" "0"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "listMenu"
|
||||
"y" "5" "320"
|
||||
"transitions" "2" ""
|
||||
"Transition" "3" ""
|
||||
"NumberAnimation" "4" ""
|
||||
|
||||
|
@@ -2,24 +2,32 @@
|
||||
"Rectangle" "0" ""
|
||||
"id" "1" "window"
|
||||
"width" "1" "800"
|
||||
"height" "1" "480"
|
||||
"height" "1" "640"
|
||||
"color" "1" """#3E606F"""
|
||||
"FocusScope" "1" ""
|
||||
"id" "2" "mainView"
|
||||
"width" "2" "parent.width"
|
||||
"height" "2" "parent.height"
|
||||
"focus" "2" "true"
|
||||
"TabMenu" "2" ""
|
||||
"id" "3" "tabMenu"
|
||||
"y" "3" "160"
|
||||
"width" "3" "parent.width"
|
||||
"height" "3" "160"
|
||||
"focus" "3" "true"
|
||||
"activeFocusOnTab" "3" "true"
|
||||
"GridMenu" "2" ""
|
||||
"id" "3" "gridMenu"
|
||||
"width" "3" "parent.width"
|
||||
"height" "3" "320"
|
||||
"focus" "3" "true"
|
||||
"interactive" "3" "parent.activeFocus"
|
||||
"ListMenu" "2" ""
|
||||
"id" "3" "listMenu"
|
||||
"y" "3" "320"
|
||||
"width" "3" "parent.width"
|
||||
"height" "3" "320"
|
||||
"activeFocusOnTab" "3" "true"
|
||||
"ListMenu" "2" ""
|
||||
"id" "3" "listMenu"
|
||||
"y" "3" "640"
|
||||
"width" "3" "parent.width"
|
||||
"height" "3" "320"
|
||||
"activeFocusOnTab" "3" "true"
|
||||
"Rectangle" "2" ""
|
||||
"id" "3" "shade"
|
||||
"anchors.fill" "3" "parent"
|
||||
@@ -27,13 +35,38 @@
|
||||
"opacity" "3" "0"
|
||||
"states" "2" ""
|
||||
"State" "3" ""
|
||||
"name" "4" """showListViews"""
|
||||
"name" "4" """showTabViews"""
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "tabMenu"
|
||||
"y" "5" "160"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "gridMenu"
|
||||
"y" "5" "-160"
|
||||
"y" "5" "320"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "listMenu"
|
||||
"y" "5" "640"
|
||||
"State" "3" ""
|
||||
"name" "4" """showGridViews"""
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "tabMenu"
|
||||
"y" "5" "0"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "gridMenu"
|
||||
"y" "5" "160"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "listMenu"
|
||||
"y" "5" "480"
|
||||
"State" "3" ""
|
||||
"name" "4" """showListViews"""
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "tabMenu"
|
||||
"y" "5" "-160"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "gridMenu"
|
||||
"y" "5" "0"
|
||||
"PropertyChanges" "4" ""
|
||||
"target" "5" "listMenu"
|
||||
"y" "5" "320"
|
||||
"transitions" "2" ""
|
||||
"Transition" "3" ""
|
||||
"NumberAnimation" "4" ""
|
||||
|
||||
|
Reference in New Issue
Block a user