summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/auto.pro2
-rw-r--r--tests/auto/declarative/.gitignore3
-rw-r--r--tests/auto/declarative/anchors/anchors.pro5
-rw-r--r--tests/auto/declarative/anchors/data/anchors.qml117
-rw-r--r--tests/auto/declarative/anchors/data/illegal1.qml12
-rw-r--r--tests/auto/declarative/anchors/data/illegal2.qml13
-rw-r--r--tests/auto/declarative/anchors/data/illegal3.qml12
-rw-r--r--tests/auto/declarative/anchors/data/loop1.qml8
-rw-r--r--tests/auto/declarative/anchors/data/loop2.qml20
-rw-r--r--tests/auto/declarative/anchors/tst_anchors.cpp197
-rw-r--r--tests/auto/declarative/animatedimage/animatedimage.pro5
-rw-r--r--tests/auto/declarative/animatedimage/data/stickman.gifbin0 -> 164923 bytes
-rw-r--r--tests/auto/declarative/animatedimage/tst_animatedimage.cpp56
-rw-r--r--tests/auto/declarative/animations/animations.pro5
-rw-r--r--tests/auto/declarative/animations/data/badproperty1.qml24
-rw-r--r--tests/auto/declarative/animations/data/badtype1.qml12
-rw-r--r--tests/auto/declarative/animations/data/badtype2.qml12
-rw-r--r--tests/auto/declarative/animations/data/badtype3.qml12
-rw-r--r--tests/auto/declarative/animations/data/badtype4.qml26
-rw-r--r--tests/auto/declarative/animations/data/dotproperty.qml24
-rw-r--r--tests/auto/declarative/animations/data/mixedtype1.qml24
-rw-r--r--tests/auto/declarative/animations/data/mixedtype2.qml24
-rw-r--r--tests/auto/declarative/animations/tst_animations.cpp200
-rw-r--r--tests/auto/declarative/behaviors/behaviors.pro5
-rw-r--r--tests/auto/declarative/behaviors/data/binding.qml26
-rw-r--r--tests/auto/declarative/behaviors/data/color.qml24
-rw-r--r--tests/auto/declarative/behaviors/data/cpptrigger.qml11
-rw-r--r--tests/auto/declarative/behaviors/data/groupProperty.qml23
-rw-r--r--tests/auto/declarative/behaviors/data/groupProperty2.qml23
-rw-r--r--tests/auto/declarative/behaviors/data/loop.qml19
-rw-r--r--tests/auto/declarative/behaviors/data/scripttrigger.qml16
-rw-r--r--tests/auto/declarative/behaviors/data/simple.qml23
-rw-r--r--tests/auto/declarative/behaviors/tst_behaviors.cpp154
-rw-r--r--tests/auto/declarative/datetimeformatter/datetimeformatter.pro3
-rw-r--r--tests/auto/declarative/datetimeformatter/tst_datetimeformatter.cpp91
-rw-r--r--tests/auto/declarative/declarative.pro30
-rw-r--r--tests/auto/declarative/examples/data/dummytest.qml5
-rw-r--r--tests/auto/declarative/examples/examples.pro4
-rw-r--r--tests/auto/declarative/examples/tst_examples.cpp155
-rw-r--r--tests/auto/declarative/layouts/data/grid-spacing.qml40
-rw-r--r--tests/auto/declarative/layouts/data/grid.qml39
-rw-r--r--tests/auto/declarative/layouts/data/horizontal-spacing.qml27
-rw-r--r--tests/auto/declarative/layouts/data/horizontal.qml26
-rw-r--r--tests/auto/declarative/layouts/data/vertical-spacing.qml27
-rw-r--r--tests/auto/declarative/layouts/data/vertical.qml26
-rw-r--r--tests/auto/declarative/layouts/layouts.pro6
-rw-r--r--tests/auto/declarative/layouts/tst_layouts.cpp200
-rw-r--r--tests/auto/declarative/listview/data/listview.qml45
-rw-r--r--tests/auto/declarative/listview/listview.pro6
-rw-r--r--tests/auto/declarative/listview/tst_listview.cpp524
-rw-r--r--tests/auto/declarative/numberformatter/numberformatter.pro3
-rw-r--r--tests/auto/declarative/numberformatter/tst_numberformatter.cpp179
-rw-r--r--tests/auto/declarative/pathview/data/pathview.qml66
-rw-r--r--tests/auto/declarative/pathview/pathview.pro6
-rw-r--r--tests/auto/declarative/pathview/tst_pathview.cpp261
-rw-r--r--tests/auto/declarative/qfxloader/NoResize.qml7
-rw-r--r--tests/auto/declarative/qfxloader/Rect120x60.qml6
-rw-r--r--tests/auto/declarative/qfxloader/SetSourceComponent.qml6
-rw-r--r--tests/auto/declarative/qfxloader/SizeToItem.qml6
-rw-r--r--tests/auto/declarative/qfxloader/SizeToLoader.qml7
-rw-r--r--tests/auto/declarative/qfxloader/qfxloader.pro5
-rw-r--r--tests/auto/declarative/qfxloader/tst_qfxloader.cpp103
-rw-r--r--tests/auto/declarative/qfxpixmapcache/data/exists.pngbin0 -> 2738 bytes
-rw-r--r--tests/auto/declarative/qfxpixmapcache/data/exists1.pngbin0 -> 2738 bytes
-rw-r--r--tests/auto/declarative/qfxpixmapcache/data/exists2.pngbin0 -> 2738 bytes
-rw-r--r--tests/auto/declarative/qfxpixmapcache/qfxpixmapcache.pro9
-rw-r--r--tests/auto/declarative/qfxpixmapcache/tst_qfxpixmapcache.cpp235
-rw-r--r--tests/auto/declarative/qfxtext/qfxtext.pro3
-rw-r--r--tests/auto/declarative/qfxtext/tst_qfxtext.cpp413
-rw-r--r--tests/auto/declarative/qfxtextedit/data/cursorTest.qml8
-rw-r--r--tests/auto/declarative/qfxtextedit/data/navigation.qml23
-rw-r--r--tests/auto/declarative/qfxtextedit/qfxtextedit.pro6
-rw-r--r--tests/auto/declarative/qfxtextedit/tst_qfxtextedit.cpp513
-rw-r--r--tests/auto/declarative/qfxtextinput/data/navigation.qml23
-rw-r--r--tests/auto/declarative/qfxtextinput/qfxtextinput.pro6
-rw-r--r--tests/auto/declarative/qfxtextinput/tst_qfxtextinput.cpp382
-rw-r--r--tests/auto/declarative/qfxwebview/data/basic.html12
-rw-r--r--tests/auto/declarative/qfxwebview/data/basic.pngbin0 -> 3961 bytes
-rw-r--r--tests/auto/declarative/qfxwebview/data/basic.qml5
-rw-r--r--tests/auto/declarative/qfxwebview/qfxwebview.pro6
-rw-r--r--tests/auto/declarative/qfxwebview/tst_qfxwebview.cpp103
-rw-r--r--tests/auto/declarative/qmldom/data/MyComponent.qml4
-rw-r--r--tests/auto/declarative/qmldom/data/importdir/Bar.qml2
-rw-r--r--tests/auto/declarative/qmldom/data/importlib/sublib/qmldir/Foo.qml2
-rw-r--r--tests/auto/declarative/qmldom/data/top.qml6
-rw-r--r--tests/auto/declarative/qmldom/qmldom.pro5
-rw-r--r--tests/auto/declarative/qmldom/tst_qmldom.cpp201
-rw-r--r--tests/auto/declarative/qmlecmascript/data/ConstantsOverrideBindings.qml6
-rw-r--r--tests/auto/declarative/qmlecmascript/data/ScopeObject.qml14
-rw-r--r--tests/auto/declarative/qmlecmascript/data/TypeForDynamicCreation.qml2
-rw-r--r--tests/auto/declarative/qmlecmascript/data/aliasPropertyAndBinding.qml14
-rw-r--r--tests/auto/declarative/qmlecmascript/data/attachedProperty.qml11
-rw-r--r--tests/auto/declarative/qmlecmascript/data/bindingLoop.qml14
-rw-r--r--tests/auto/declarative/qmlecmascript/data/boolPropertiesEvaluateAsBool.1.qml5
-rw-r--r--tests/auto/declarative/qmlecmascript/data/boolPropertiesEvaluateAsBool.2.qml5
-rw-r--r--tests/auto/declarative/qmlecmascript/data/constantsOverrideBindings.1.qml8
-rw-r--r--tests/auto/declarative/qmlecmascript/data/constantsOverrideBindings.2.qml11
-rw-r--r--tests/auto/declarative/qmlecmascript/data/constantsOverrideBindings.3.qml7
-rw-r--r--tests/auto/declarative/qmlecmascript/data/deferredProperties.qml7
-rw-r--r--tests/auto/declarative/qmlecmascript/data/dynamicCreation.helper.qml5
-rw-r--r--tests/auto/declarative/qmlecmascript/data/dynamicCreation.qml21
-rw-r--r--tests/auto/declarative/qmlecmascript/data/dynamicDeletion.qml20
-rw-r--r--tests/auto/declarative/qmlecmascript/data/enums.1.qml20
-rw-r--r--tests/auto/declarative/qmlecmascript/data/enums.2.qml8
-rw-r--r--tests/auto/declarative/qmlecmascript/data/exceptionClearsOnReeval.qml6
-rw-r--r--tests/auto/declarative/qmlecmascript/data/extendedObjectPropertyLookup.qml8
-rw-r--r--tests/auto/declarative/qmlecmascript/data/extensionObjects.qml10
-rw-r--r--tests/auto/declarative/qmlecmascript/data/idShortcutInvalidates.1.qml13
-rw-r--r--tests/auto/declarative/qmlecmascript/data/idShortcutInvalidates.qml12
-rw-r--r--tests/auto/declarative/qmlecmascript/data/listProperties.qml44
-rw-r--r--tests/auto/declarative/qmlecmascript/data/methods.1.qml6
-rw-r--r--tests/auto/declarative/qmlecmascript/data/methods.2.qml6
-rw-r--r--tests/auto/declarative/qmlecmascript/data/nonExistantAttachedObject.qml5
-rw-r--r--tests/auto/declarative/qmlecmascript/data/objectsCompareAsEqual.qml15
-rw-r--r--tests/auto/declarative/qmlecmascript/data/outerBindingOverridesInnerBinding.qml14
-rw-r--r--tests/auto/declarative/qmlecmascript/data/qmlToString.qml11
-rw-r--r--tests/auto/declarative/qmlecmascript/data/scope.2.qml42
-rw-r--r--tests/auto/declarative/qmlecmascript/data/scope.qml48
-rw-r--r--tests/auto/declarative/qmlecmascript/data/scriptAccess.js7
-rw-r--r--tests/auto/declarative/qmlecmascript/data/scriptAccess.qml17
-rw-r--r--tests/auto/declarative/qmlecmascript/data/scriptErrors.js2
-rw-r--r--tests/auto/declarative/qmlecmascript/data/scriptErrors.qml12
-rw-r--r--tests/auto/declarative/qmlecmascript/data/selfDeletingBinding.2.qml17
-rw-r--r--tests/auto/declarative/qmlecmascript/data/selfDeletingBinding.qml18
-rw-r--r--tests/auto/declarative/qmlecmascript/data/signalAssignment.1.qml5
-rw-r--r--tests/auto/declarative/qmlecmascript/data/signalAssignment.2.qml5
-rw-r--r--tests/auto/declarative/qmlecmascript/data/signalParameterTypes.qml16
-rw-r--r--tests/auto/declarative/qmlecmascript/data/signalTriggeredBindings.qml20
-rw-r--r--tests/auto/declarative/qmlecmascript/data/valueTypeFunctions.qml6
-rw-r--r--tests/auto/declarative/qmlecmascript/qmlecmascript.pro9
-rw-r--r--tests/auto/declarative/qmlecmascript/testtypes.cpp42
-rw-r--r--tests/auto/declarative/qmlecmascript/testtypes.h282
-rw-r--r--tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp845
-rw-r--r--tests/auto/declarative/qmllanguage/data/Alias.qml8
-rw-r--r--tests/auto/declarative/qmllanguage/data/Alias2.qml9
-rw-r--r--tests/auto/declarative/qmllanguage/data/ComponentComposite.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/CompositeType.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/CompositeType2.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/CompositeType3.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/CompositeType4.qml6
-rw-r--r--tests/auto/declarative/qmllanguage/data/I18n.qml6
-rw-r--r--tests/auto/declarative/qmllanguage/data/I18nType30.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/MyComponent.qml6
-rw-r--r--tests/auto/declarative/qmllanguage/data/MyContainerComponent.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/NestedAlias.qml14
-rw-r--r--tests/auto/declarative/qmllanguage/data/OnCompletedType.qml8
-rw-r--r--tests/auto/declarative/qmllanguage/data/alias.1.qml8
-rw-r--r--tests/auto/declarative/qmllanguage/data/alias.2.qml8
-rw-r--r--tests/auto/declarative/qmllanguage/data/alias.3.qml10
-rw-r--r--tests/auto/declarative/qmllanguage/data/alias.4.qml6
-rw-r--r--tests/auto/declarative/qmllanguage/data/alias.5.qml13
-rw-r--r--tests/auto/declarative/qmllanguage/data/alias.6.qml8
-rw-r--r--tests/auto/declarative/qmllanguage/data/assignBasicTypes.qml26
-rw-r--r--tests/auto/declarative/qmllanguage/data/assignCompositeToType.qml18
-rw-r--r--tests/auto/declarative/qmllanguage/data/assignLiteralSignalProperty.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/assignObjectToSignal.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/assignObjectToVariant.qml6
-rw-r--r--tests/auto/declarative/qmllanguage/data/assignQmlComponent.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/assignSignal.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/assignTypeExtremes.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/attachedProperties.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/autoComponentCreation.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/componentCompositeType.qml8
-rw-r--r--tests/auto/declarative/qmllanguage/data/cppnamespace.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/customParserIdNotAllowed.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/customParserIdNotAllowed.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/customParserTypes.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/customVariantTypes.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/duplicateIDs.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/duplicateIDs.qml6
-rw-r--r--tests/auto/declarative/qmllanguage/data/dynamicObject.1.qml8
-rw-r--r--tests/auto/declarative/qmllanguage/data/dynamicObjectProperties.qml13
-rw-r--r--tests/auto/declarative/qmllanguage/data/dynamicProperties.qml13
-rw-r--r--tests/auto/declarative/qmllanguage/data/dynamicSignalsAndSlots.qml7
-rw-r--r--tests/auto/declarative/qmllanguage/data/empty.errors.txt2
-rw-r--r--tests/auto/declarative/qmllanguage/data/empty.qml0
-rw-r--r--tests/auto/declarative/qmllanguage/data/failingComponent.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/failingComponentTest.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/fakeDotProperty.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/fakeDotProperty.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/finalOverride.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/finalOverride.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/i18nDeclaredPropertyNames.qml6
-rw-r--r--tests/auto/declarative/qmllanguage/data/i18nDeclaredPropertyUse.qml3
-rw-r--r--tests/auto/declarative/qmllanguage/data/i18nNameSpace.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/i18nScript.qml12
-rw-r--r--tests/auto/declarative/qmllanguage/data/i18nStrings.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/i18nType.qml1
-rw-r--r--tests/auto/declarative/qmllanguage/data/idProperty.qml8
-rw-r--r--tests/auto/declarative/qmllanguage/data/importNamespaceConflict.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/importNamespaceConflict.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/importVersionMissingBuiltIn.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/importVersionMissingBuiltIn.qml7
-rw-r--r--tests/auto/declarative/qmllanguage/data/importVersionMissingInstalled.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/importVersionMissingInstalled.qml3
-rw-r--r--tests/auto/declarative/qmllanguage/data/inlineQmlComponents.qml10
-rw-r--r--tests/auto/declarative/qmllanguage/data/interfaceProperty.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/interfaceQList.qml7
-rw-r--r--tests/auto/declarative/qmllanguage/data/interfaceQmlList.qml7
-rw-r--r--tests/auto/declarative/qmllanguage/data/invalidID.2.errors.txt2
-rw-r--r--tests/auto/declarative/qmllanguage/data/invalidID.2.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/invalidID.3.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/invalidID.3.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/invalidID.4.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/invalidID.4.qml6
-rw-r--r--tests/auto/declarative/qmllanguage/data/invalidID.5.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/invalidID.5.qml6
-rw-r--r--tests/auto/declarative/qmllanguage/data/invalidID.6.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/invalidID.6.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/invalidID.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/invalidID.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/lib/com/nokia/installedtest/InstalledTest.qml2
-rw-r--r--tests/auto/declarative/qmllanguage/data/lib/com/nokia/installedtest/InstalledTest2.qml2
-rw-r--r--tests/auto/declarative/qmllanguage/data/lib/com/nokia/installedtest/qmldir3
-rw-r--r--tests/auto/declarative/qmllanguage/data/listAssignment.1.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/listAssignment.1.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/listAssignment.2.errors.txt2
-rw-r--r--tests/auto/declarative/qmllanguage/data/listAssignment.2.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/listAssignment.3.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/listAssignment.3.qml6
-rw-r--r--tests/auto/declarative/qmllanguage/data/listItemDeleteSelf.qml38
-rw-r--r--tests/auto/declarative/qmllanguage/data/missingObject.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/missingObject.qml1
-rw-r--r--tests/auto/declarative/qmllanguage/data/missingSignal.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/missingSignal.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/nonexistantProperty.1.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/nonexistantProperty.1.qml2
-rw-r--r--tests/auto/declarative/qmllanguage/data/nonexistantProperty.2.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/nonexistantProperty.2.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/nonexistantProperty.3.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/nonexistantProperty.3.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/nonexistantProperty.4.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/nonexistantProperty.4.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/nonexistantProperty.5.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/nonexistantProperty.5.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/nonexistantProperty.6.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/nonexistantProperty.6.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/nullDotProperty.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/nullDotProperty.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/onCompleted.qml17
-rw-r--r--tests/auto/declarative/qmllanguage/data/propertyValueSource.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/readOnly.1.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/readOnly.1.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/readOnly.2.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/readOnly.2.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/rootAsQmlComponent.qml6
-rw-r--r--tests/auto/declarative/qmllanguage/data/scriptString.qml6
-rw-r--r--tests/auto/declarative/qmllanguage/data/simpleBindings.qml18
-rw-r--r--tests/auto/declarative/qmllanguage/data/simpleContainer.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/simpleObject.qml2
-rw-r--r--tests/auto/declarative/qmllanguage/data/subdir/Test.qml2
-rw-r--r--tests/auto/declarative/qmllanguage/data/unregisteredObject.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/unregisteredObject.qml2
-rw-r--r--tests/auto/declarative/qmllanguage/data/unsupportedProperty.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/unsupportedProperty.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/valueTypes.qml13
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.1.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.1.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.10.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.10.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.11.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.11.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.12.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.12.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.13.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.13.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.14.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.14.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.2.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.2.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.3.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.3.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.4.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.4.qml4
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.5.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.5.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.6.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.6.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.7.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.7.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.8.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.8.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.9.errors.txt1
-rw-r--r--tests/auto/declarative/qmllanguage/data/wrongType.9.qml5
-rw-r--r--tests/auto/declarative/qmllanguage/qmllanguage.pro9
-rw-r--r--tests/auto/declarative/qmllanguage/testtypes.cpp10
-rw-r--r--tests/auto/declarative/qmllanguage/testtypes.h464
-rw-r--r--tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp1019
-rw-r--r--tests/auto/declarative/qmllist/qmllist.pro3
-rw-r--r--tests/auto/declarative/qmllist/tst_qmllist.cpp38
-rw-r--r--tests/auto/declarative/qmllistaccessor/qmllistaccessor.pro3
-rw-r--r--tests/auto/declarative/qmllistaccessor/tst_qmllistaccessor.cpp61
-rw-r--r--tests/auto/declarative/qmlmetaproperty/qmlmetaproperty.pro3
-rw-r--r--tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp104
-rw-r--r--tests/auto/declarative/qmlpropertymap/qmlpropertymap.pro3
-rw-r--r--tests/auto/declarative/qmlpropertymap/tst_qmlpropertymap.cpp110
-rw-r--r--tests/auto/declarative/qmltimer/qmltimer.pro5
-rw-r--r--tests/auto/declarative/qmltimer/tst_qmltimer.cpp141
-rw-r--r--tests/auto/declarative/repeater/data/repeater.qml28
-rw-r--r--tests/auto/declarative/repeater/repeater.pro7
-rw-r--r--tests/auto/declarative/repeater/tst_repeater.cpp115
-rw-r--r--tests/auto/declarative/sql/data/1-creation.js20
-rw-r--r--tests/auto/declarative/sql/data/2-selection.js30
-rw-r--r--tests/auto/declarative/sql/data/3-iteration-item-function.js27
-rw-r--r--tests/auto/declarative/sql/data/5-iteration-iterator.js27
-rw-r--r--tests/auto/declarative/sql/data/6-iteration-efficient.js28
-rw-r--r--tests/auto/declarative/sql/data/README3
-rw-r--r--tests/auto/declarative/sql/sql.pro6
-rw-r--r--tests/auto/declarative/sql/tst_sql.cpp168
-rw-r--r--tests/auto/declarative/states/data/ExtendedRectangle.qml19
-rw-r--r--tests/auto/declarative/states/data/basicBinding.qml12
-rw-r--r--tests/auto/declarative/states/data/basicBinding2.qml12
-rw-r--r--tests/auto/declarative/states/data/basicBinding3.qml13
-rw-r--r--tests/auto/declarative/states/data/basicBinding4.qml17
-rw-r--r--tests/auto/declarative/states/data/basicChanges.qml10
-rw-r--r--tests/auto/declarative/states/data/basicChanges2.qml15
-rw-r--r--tests/auto/declarative/states/data/basicChanges3.qml15
-rw-r--r--tests/auto/declarative/states/data/basicExtension.qml16
-rw-r--r--tests/auto/declarative/states/data/fakeExtension.qml16
-rw-r--r--tests/auto/declarative/states/data/signalOverride.qml18
-rw-r--r--tests/auto/declarative/states/data/signalOverride2.qml9
-rw-r--r--tests/auto/declarative/states/states.pro6
-rw-r--r--tests/auto/declarative/states/tst_states.cpp318
-rw-r--r--tests/auto/declarative/visual/ListView/basic1.qml27
-rw-r--r--tests/auto/declarative/visual/ListView/basic2.qml31
-rw-r--r--tests/auto/declarative/visual/ListView/basic3.qml29
-rw-r--r--tests/auto/declarative/visual/ListView/basic4.qml33
-rw-r--r--tests/auto/declarative/visual/ListView/data-X11/basic1.qml159
-rw-r--r--tests/auto/declarative/visual/ListView/data-X11/basic2.qml187
-rw-r--r--tests/auto/declarative/visual/ListView/data-X11/basic3.qml147
-rw-r--r--tests/auto/declarative/visual/ListView/data-X11/basic4.qml171
-rw-r--r--tests/auto/declarative/visual/ListView/data/basic1.qml159
-rw-r--r--tests/auto/declarative/visual/ListView/data/basic2.qml187
-rw-r--r--tests/auto/declarative/visual/ListView/data/basic3.qml147
-rw-r--r--tests/auto/declarative/visual/ListView/data/basic4.qml171
-rw-r--r--tests/auto/declarative/visual/bindinganimation/bindinganimation.qml40
-rw-r--r--tests/auto/declarative/visual/bindinganimation/data/bindinganimation.0.pngbin0 -> 817 bytes
-rw-r--r--tests/auto/declarative/visual/bindinganimation/data/bindinganimation.1.pngbin0 -> 815 bytes
-rw-r--r--tests/auto/declarative/visual/bindinganimation/data/bindinganimation.qml659
-rw-r--r--tests/auto/declarative/visual/colorAnimation/colorAnimation.qml41
-rw-r--r--tests/auto/declarative/visual/colorAnimation/data/colorAnimation.0.pngbin0 -> 612 bytes
-rw-r--r--tests/auto/declarative/visual/colorAnimation/data/colorAnimation.1.pngbin0 -> 611 bytes
-rw-r--r--tests/auto/declarative/visual/colorAnimation/data/colorAnimation.2.pngbin0 -> 610 bytes
-rw-r--r--tests/auto/declarative/visual/colorAnimation/data/colorAnimation.qml951
-rw-r--r--tests/auto/declarative/visual/easing/data/easing.0.pngbin0 -> 3395 bytes
-rw-r--r--tests/auto/declarative/visual/easing/data/easing.1.pngbin0 -> 3379 bytes
-rw-r--r--tests/auto/declarative/visual/easing/data/easing.2.pngbin0 -> 3101 bytes
-rw-r--r--tests/auto/declarative/visual/easing/data/easing.3.pngbin0 -> 16542 bytes
-rw-r--r--tests/auto/declarative/visual/easing/data/easing.qml779
-rw-r--r--tests/auto/declarative/visual/easing/easing.qml193
-rw-r--r--tests/auto/declarative/visual/easing/pics/qtlogo.pngbin0 -> 2738 bytes
-rw-r--r--tests/auto/declarative/visual/flickable/Day.qml26
-rw-r--r--tests/auto/declarative/visual/flickable/cork.jpgbin0 -> 22211 bytes
-rw-r--r--tests/auto/declarative/visual/flickable/data-X11/flickable.0.pngbin0 -> 115546 bytes
-rw-r--r--tests/auto/declarative/visual/flickable/data-X11/flickable.1.pngbin0 -> 115627 bytes
-rw-r--r--tests/auto/declarative/visual/flickable/data-X11/flickable.2.pngbin0 -> 116034 bytes
-rw-r--r--tests/auto/declarative/visual/flickable/data-X11/flickable.qml791
-rw-r--r--tests/auto/declarative/visual/flickable/data/flickable.0.pngbin0 -> 116681 bytes
-rw-r--r--tests/auto/declarative/visual/flickable/data/flickable.1.pngbin0 -> 116856 bytes
-rw-r--r--tests/auto/declarative/visual/flickable/data/flickable.2.pngbin0 -> 117276 bytes
-rw-r--r--tests/auto/declarative/visual/flickable/data/flickable.qml791
-rw-r--r--tests/auto/declarative/visual/flickable/flickable.qml55
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test.0.pngbin0 -> 11521 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test.1.pngbin0 -> 11521 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test.2.pngbin0 -> 11503 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test.3.pngbin0 -> 11518 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test.4.pngbin0 -> 11518 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test.5.pngbin0 -> 11518 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test.qml1599
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test2.0.pngbin0 -> 4656 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test2.1.pngbin0 -> 4656 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test2.qml607
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test3.0.pngbin0 -> 10098 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test3.1.pngbin0 -> 10056 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test3.2.pngbin0 -> 9817 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test3.3.pngbin0 -> 9631 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test3.4.pngbin0 -> 9464 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test3.5.pngbin0 -> 9638 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test3.6.pngbin0 -> 9817 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test3.7.pngbin0 -> 10056 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test3.8.pngbin0 -> 10095 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test3.9.pngbin0 -> 10077 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data-X11/test3.qml2879
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test.0.pngbin0 -> 14836 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test.1.pngbin0 -> 14836 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test.2.pngbin0 -> 14821 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test.3.pngbin0 -> 14833 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test.4.pngbin0 -> 14833 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test.5.pngbin0 -> 14833 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test.qml1599
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test2.0.pngbin0 -> 5359 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test2.1.pngbin0 -> 5359 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test2.qml607
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test3.0.pngbin0 -> 12616 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test3.1.pngbin0 -> 12538 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test3.2.pngbin0 -> 12257 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test3.3.pngbin0 -> 12035 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test3.4.pngbin0 -> 11877 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test3.5.pngbin0 -> 12046 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test3.6.pngbin0 -> 12257 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test3.7.pngbin0 -> 12538 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test3.8.pngbin0 -> 12616 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test3.9.pngbin0 -> 12581 bytes
-rw-r--r--tests/auto/declarative/visual/focusscope/data/test3.qml2879
-rw-r--r--tests/auto/declarative/visual/focusscope/test.qml76
-rw-r--r--tests/auto/declarative/visual/focusscope/test2.qml40
-rw-r--r--tests/auto/declarative/visual/focusscope/test3.qml52
-rw-r--r--tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.0.pngbin0 -> 3211 bytes
-rw-r--r--tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.1.pngbin0 -> 3214 bytes
-rw-r--r--tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.2.pngbin0 -> 3209 bytes
-rw-r--r--tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.3.pngbin0 -> 3211 bytes
-rw-r--r--tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.4.pngbin0 -> 3214 bytes
-rw-r--r--tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.5.pngbin0 -> 3214 bytes
-rw-r--r--tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.qml1619
-rw-r--r--tests/auto/declarative/visual/pauseAnimation/pauseAnimation.qml30
-rw-r--r--tests/auto/declarative/visual/pauseAnimation/pics/qtlogo.pngbin0 -> 2738 bytes
-rw-r--r--tests/auto/declarative/visual/qfxtext/elide/data-X11/elide.0.pngbin0 -> 1012 bytes
-rw-r--r--tests/auto/declarative/visual/qfxtext/elide/data-X11/elide.qml279
-rw-r--r--tests/auto/declarative/visual/qfxtext/elide/data-X11/multilength.0.pngbin0 -> 596 bytes
-rw-r--r--tests/auto/declarative/visual/qfxtext/elide/data-X11/multilength.qml303
-rw-r--r--tests/auto/declarative/visual/qfxtext/elide/data/elide.0.pngbin0 -> 1604 bytes
-rw-r--r--tests/auto/declarative/visual/qfxtext/elide/data/elide.qml279
-rw-r--r--tests/auto/declarative/visual/qfxtext/elide/elide.qml31
-rw-r--r--tests/auto/declarative/visual/qfxtext/elide/multilength.qml19
-rw-r--r--tests/auto/declarative/visual/qfxwebview/autosize/autosize.qml60
-rw-r--r--tests/auto/declarative/visual/qfxwebview/autosize/data/autosize.0.pngbin0 -> 6886 bytes
-rw-r--r--tests/auto/declarative/visual/qfxwebview/autosize/data/autosize.qml83
-rw-r--r--tests/auto/declarative/visual/repeater/basic1.qml28
-rw-r--r--tests/auto/declarative/visual/repeater/basic2.qml32
-rw-r--r--tests/auto/declarative/visual/repeater/basic3.qml30
-rw-r--r--tests/auto/declarative/visual/repeater/basic4.qml34
-rw-r--r--tests/auto/declarative/visual/repeater/data-X11/basic1.0.pngbin0 -> 1354 bytes
-rw-r--r--tests/auto/declarative/visual/repeater/data-X11/basic1.qml323
-rw-r--r--tests/auto/declarative/visual/repeater/data-X11/basic2.0.pngbin0 -> 1354 bytes
-rw-r--r--tests/auto/declarative/visual/repeater/data-X11/basic2.qml331
-rw-r--r--tests/auto/declarative/visual/repeater/data-X11/basic3.0.pngbin0 -> 1354 bytes
-rw-r--r--tests/auto/declarative/visual/repeater/data-X11/basic3.qml347
-rw-r--r--tests/auto/declarative/visual/repeater/data-X11/basic4.0.pngbin0 -> 1354 bytes
-rw-r--r--tests/auto/declarative/visual/repeater/data-X11/basic4.qml419
-rw-r--r--tests/auto/declarative/visual/repeater/data/basic1.0.pngbin0 -> 1513 bytes
-rw-r--r--tests/auto/declarative/visual/repeater/data/basic1.qml323
-rw-r--r--tests/auto/declarative/visual/repeater/data/basic2.0.pngbin0 -> 1513 bytes
-rw-r--r--tests/auto/declarative/visual/repeater/data/basic2.qml331
-rw-r--r--tests/auto/declarative/visual/repeater/data/basic3.0.pngbin0 -> 1513 bytes
-rw-r--r--tests/auto/declarative/visual/repeater/data/basic3.qml347
-rw-r--r--tests/auto/declarative/visual/repeater/data/basic4.0.pngbin0 -> 1513 bytes
-rw-r--r--tests/auto/declarative/visual/repeater/data/basic4.qml419
-rw-r--r--tests/auto/declarative/visual/tst_visual.cpp280
-rw-r--r--tests/auto/declarative/visual/visual.pro6
-rw-r--r--tests/benchmarks/benchmarks.pro10
-rw-r--r--tests/benchmarks/declarative/binding/binding.pro8
-rw-r--r--tests/benchmarks/declarative/binding/idproperty.txt7
-rw-r--r--tests/benchmarks/declarative/binding/localproperty.txt3
-rw-r--r--tests/benchmarks/declarative/binding/objectproperty.txt5
-rw-r--r--tests/benchmarks/declarative/binding/testtypes.cpp3
-rw-r--r--tests/benchmarks/declarative/binding/testtypes.h41
-rw-r--r--tests/benchmarks/declarative/binding/tst_binding.cpp126
-rw-r--r--tests/benchmarks/declarative/pointers/pointers.pro6
-rw-r--r--tests/benchmarks/declarative/pointers/tst_pointers.cpp43
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/myqmlobject.txt3
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/myqmlobject_binding.txt6
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/object.txt3
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/object_id.txt6
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/qmlcomponent.pro8
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/samegame/BoomBlock.qml54
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/samegame/pics/blueStar.pngbin0 -> 278 bytes
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/samegame/pics/blueStone.pngbin0 -> 2691 bytes
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/samegame/pics/greenStar.pngbin0 -> 273 bytes
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/samegame/pics/greenStone.pngbin0 -> 2662 bytes
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/samegame/pics/redStar.pngbin0 -> 274 bytes
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/samegame/pics/redStone.pngbin0 -> 2604 bytes
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/samegame/pics/yellowStone.pngbin0 -> 2667 bytes
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/synthesized_properties.2.txt15
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/synthesized_properties.txt5
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/testtypes.cpp3
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/testtypes.h41
-rw-r--r--tests/benchmarks/declarative/qmlcomponent/tst_qmlcomponent.cpp84
-rw-r--r--tests/benchmarks/declarative/qmlmetaproperty/object.txt3
-rw-r--r--tests/benchmarks/declarative/qmlmetaproperty/qmlmetaproperty.pro7
-rw-r--r--tests/benchmarks/declarative/qmlmetaproperty/synthesized_object.txt6
-rw-r--r--tests/benchmarks/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp79
-rw-r--r--tests/benchmarks/qmlpainting/qmlpainting.pro5
-rw-r--r--tests/benchmarks/qmlpainting/tst_qmlpainting.cpp696
483 files changed, 33712 insertions, 1 deletions
diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro
index 0f7a7f1..1ec4c16 100644
--- a/tests/auto/auto.pro
+++ b/tests/auto/auto.pro
@@ -501,3 +501,5 @@ contains(QT_CONFIG, webkit): SUBDIRS += \
qwebhistoryinterface \
qwebelement \
qwebhistory
+
+contains(QT_CONFIG, declarative): SUBDIRS += declarative
diff --git a/tests/auto/declarative/.gitignore b/tests/auto/declarative/.gitignore
new file mode 100644
index 0000000..c8bbd2f
--- /dev/null
+++ b/tests/auto/declarative/.gitignore
@@ -0,0 +1,3 @@
+tst_*
+!tst_*.*
+tst_*~
diff --git a/tests/auto/declarative/anchors/anchors.pro b/tests/auto/declarative/anchors/anchors.pro
new file mode 100644
index 0000000..7b22cfb
--- /dev/null
+++ b/tests/auto/declarative/anchors/anchors.pro
@@ -0,0 +1,5 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_anchors.cpp
+
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/anchors/data/anchors.qml b/tests/auto/declarative/anchors/data/anchors.qml
new file mode 100644
index 0000000..377dd2d
--- /dev/null
+++ b/tests/auto/declarative/anchors/data/anchors.qml
@@ -0,0 +1,117 @@
+import Qt 4.6
+
+Rectangle {
+ color: "white"
+ width: 240
+ height: 320
+ Rectangle { id: MasterRect; objectName: "MasterRect"; x: 26; width: 96; height: 20; color: "red" }
+ Rectangle {
+ id: Rect1; objectName: "Rect1"
+ y: 20; width: 10; height: 10
+ anchors.left: MasterRect.left
+ }
+ Rectangle {
+ id: Rect2; objectName: "Rect2"
+ y: 20; width: 10; height: 10
+ anchors.left: MasterRect.right
+ }
+ Rectangle {
+ id: Rect3; objectName: "Rect3"
+ y: 20; width: 10; height: 10
+ anchors.left: MasterRect.horizontalCenter
+ }
+ Rectangle {
+ id: Rect4; objectName: "Rect4"
+ y: 30; width: 10; height: 10
+ anchors.right: MasterRect.left
+ }
+ Rectangle {
+ id: Rect5; objectName: "Rect5"
+ y: 30; width: 10; height: 10
+ anchors.right: MasterRect.right
+ }
+ Rectangle {
+ id: Rect6; objectName: "Rect6"
+ y: 30; width: 10; height: 10
+ anchors.right: MasterRect.horizontalCenter
+ }
+ Rectangle {
+ id: Rect7; objectName: "Rect7"
+ y: 50; width: 10; height: 10
+ anchors.left: parent.left
+ }
+ Rectangle {
+ id: Rect8; objectName: "Rect8"
+ y: 50; width: 10; height: 10
+ anchors.left: parent.right
+ }
+ Rectangle {
+ id: Rect9; objectName: "Rect9"
+ y: 50; width: 10; height: 10
+ anchors.left: parent.horizontalCenter
+ }
+ Rectangle {
+ id: Rect10; objectName: "Rect10"
+ y: 60; width: 10; height: 10
+ anchors.right: parent.left
+ }
+ Rectangle {
+ id: Rect11; objectName: "Rect11"
+ y: 60; width: 10; height: 10
+ anchors.right: parent.right
+ }
+ Rectangle {
+ id: Rect12; objectName: "Rect12"
+ y: 60; width: 10; height: 10
+ anchors.right: parent.horizontalCenter
+ }
+ Rectangle {
+ id: Rect13; objectName: "Rect13"
+ x: 200; width: 10; height: 10
+ anchors.top: MasterRect.bottom
+ }
+ Rectangle {
+ id: Rect14; objectName: "Rect14"
+ width: 10; height: 10; color: "steelblue"
+ anchors.verticalCenter: parent.verticalCenter
+ }
+ Rectangle {
+ id: Rect15; objectName: "Rect15"
+ y: 200; height: 10
+ anchors.left: MasterRect.left
+ anchors.right: MasterRect.right
+ }
+ Rectangle {
+ id: Rect16; objectName: "Rect16"
+ y: 220; height: 10
+ anchors.left: MasterRect.left
+ anchors.horizontalCenter: MasterRect.right
+ }
+ Rectangle {
+ id: Rect17; objectName: "Rect17"
+ y: 240; height: 10
+ anchors.right: MasterRect.right
+ anchors.horizontalCenter: MasterRect.left
+ }
+ Rectangle {
+ id: Rect18; objectName: "Rect18"
+ x: 180; width: 10
+ anchors.top: MasterRect.bottom
+ anchors.bottom: Rect12.top
+ }
+ Rectangle {
+ id: Rect19; objectName: "Rect19"
+ y: 70; width: 10; height: 10
+ anchors.horizontalCenter: parent.horizontalCenter
+ }
+ Rectangle {
+ id: Rect20; objectName: "Rect20"
+ y: 70; width: 10; height: 10
+ anchors.horizontalCenter: parent.right
+ }
+ Rectangle {
+ id: Rect21; objectName: "Rect21"
+ y: 70; width: 10; height: 10
+ anchors.horizontalCenter: parent.left
+ }
+}
diff --git a/tests/auto/declarative/anchors/data/illegal1.qml b/tests/auto/declarative/anchors/data/illegal1.qml
new file mode 100644
index 0000000..0a960d0
--- /dev/null
+++ b/tests/auto/declarative/anchors/data/illegal1.qml
@@ -0,0 +1,12 @@
+import Qt 4.6
+
+Rectangle {
+ id: rect
+ width: 120; height: 200; color: "white"
+ Rectangle { id: TheRect; width: 100; height: 100 }
+ Rectangle {
+ anchors.left: TheRect.left
+ anchors.right: TheRect.right
+ anchors.horizontalCenter: TheRect.horizontalCenter
+ }
+}
diff --git a/tests/auto/declarative/anchors/data/illegal2.qml b/tests/auto/declarative/anchors/data/illegal2.qml
new file mode 100644
index 0000000..2497738
--- /dev/null
+++ b/tests/auto/declarative/anchors/data/illegal2.qml
@@ -0,0 +1,13 @@
+import Qt 4.6
+
+Rectangle {
+ id: rect
+ width: 120; height: 200; color: "white"
+ Text { id: Text1; text: "Hello" }
+ Text {
+ id: Text2;
+ anchors.baseline: Text1.baseline;
+ anchors.top: Text1.top;
+ text: "World"
+ }
+}
diff --git a/tests/auto/declarative/anchors/data/illegal3.qml b/tests/auto/declarative/anchors/data/illegal3.qml
new file mode 100644
index 0000000..27b2e4d
--- /dev/null
+++ b/tests/auto/declarative/anchors/data/illegal3.qml
@@ -0,0 +1,12 @@
+import Qt 4.6
+
+Rectangle {
+ id: rect
+ width: 120; height: 200; color: "white"
+ Item {
+ Rectangle { id: TheRect; width: 100; height: 100 }
+ }
+ Rectangle {
+ anchors.left: TheRect.left
+ }
+}
diff --git a/tests/auto/declarative/anchors/data/loop1.qml b/tests/auto/declarative/anchors/data/loop1.qml
new file mode 100644
index 0000000..ef6b63d
--- /dev/null
+++ b/tests/auto/declarative/anchors/data/loop1.qml
@@ -0,0 +1,8 @@
+import Qt 4.6
+
+Rectangle {
+ id: rect
+ width: 120; height: 200; color: "white"
+ Text { id: Text1; anchors.right: Text2.right; text: "Hello" }
+ Text { id: Text2; anchors.right: Text1.right; anchors.rightMargin: 10; text: "World" }
+}
diff --git a/tests/auto/declarative/anchors/data/loop2.qml b/tests/auto/declarative/anchors/data/loop2.qml
new file mode 100644
index 0000000..2445a15
--- /dev/null
+++ b/tests/auto/declarative/anchors/data/loop2.qml
@@ -0,0 +1,20 @@
+import Qt 4.6
+
+Rectangle {
+ id: container;
+ width: 600;
+ height: 600;
+
+ Image {
+ id: Image1
+ source: "http://labs.trolltech.com/blogs/wp-content/uploads/2009/03/3311388091_ac2a257feb.jpg"
+ anchors.right: Image2.left
+ }
+
+ Image {
+ id: Image2
+ source: "http://labs.trolltech.com/blogs/wp-content/uploads/2009/03/oslo_groupphoto.jpg"
+ anchors.left: Image1.right
+ anchors.leftMargin: 20
+ }
+}
diff --git a/tests/auto/declarative/anchors/tst_anchors.cpp b/tests/auto/declarative/anchors/tst_anchors.cpp
new file mode 100644
index 0000000..ec977da
--- /dev/null
+++ b/tests/auto/declarative/anchors/tst_anchors.cpp
@@ -0,0 +1,197 @@
+#include <qtest.h>
+#include <QtDeclarative/qmlengine.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtDeclarative/qmlview.h>
+#include <QtDeclarative/qfxrect.h>
+#include <QtDeclarative/private/qfxanchors_p.h>
+
+
+class tst_anchors : public QObject
+{
+ Q_OBJECT
+public:
+ tst_anchors() {}
+
+ template<typename T>
+ T *findItem(QFxItem *parent, const QString &id);
+
+private slots:
+ void basicAnchors();
+ void loops();
+ void illegalSets();
+ void reset();
+ void nullItem();
+};
+
+/*
+ Find an item with the specified id.
+*/
+template<typename T>
+T *tst_anchors::findItem(QFxItem *parent, const QString &objectName)
+{
+ const QMetaObject &mo = T::staticMetaObject;
+ QList<QGraphicsItem *> children = parent->childItems();
+ for (int i = 0; i < children.count(); ++i) {
+ QFxItem *item = qobject_cast<QFxItem *>(children.at(i)->toGraphicsObject());
+ if (item) {
+ if (mo.cast(item) && (objectName.isEmpty() || item->objectName() == objectName)) {
+ return static_cast<T*>(item);
+ }
+ item = findItem<T>(item, objectName);
+ if (item)
+ return static_cast<T*>(item);
+ }
+ }
+
+ return 0;
+}
+
+void tst_anchors::basicAnchors()
+{
+ QmlView *view = new QmlView;
+ view->setUrl(QUrl("file://" SRCDIR "/data/anchors.qml"));
+
+ view->execute();
+ qApp->processEvents();
+
+ //sibling horizontal
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect1"))->x(), 26.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect2"))->x(), 122.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect3"))->x(), 74.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect4"))->x(), 16.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect5"))->x(), 112.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect6"))->x(), 64.0);
+
+ //parent horizontal
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect7"))->x(), 0.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect8"))->x(), 240.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect9"))->x(), 120.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect10"))->x(), -10.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect11"))->x(), 230.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect12"))->x(), 110.0);
+
+ //vertical
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect13"))->y(), 20.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect14"))->y(), 155.0);
+
+ //stretch
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect15"))->x(), 26.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect15"))->width(), 96.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect16"))->x(), 26.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect16"))->width(), 192.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect17"))->x(), -70.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect17"))->width(), 192.0);
+
+ //vertical stretch
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect18"))->y(), 20.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect18"))->height(), 40.0);
+
+ //more parent horizontal
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect19"))->x(), 115.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect20"))->x(), 235.0);
+ QCOMPARE(findItem<QFxRect>(view->root(), QLatin1String("Rect21"))->x(), -5.0);
+
+ delete view;
+}
+
+// mostly testing that we don't crash
+void tst_anchors::loops()
+{
+ {
+ QmlView *view = new QmlView;
+
+ view->setUrl(QUrl("file://" SRCDIR "/data/loop1.qml"));
+
+ QString expect = "QML QFxText (" + view->url().toString() + ":7:5" + ") Possible anchor loop detected on horizontal anchor.";
+ QTest::ignoreMessage(QtWarningMsg, expect.toLatin1());
+ QTest::ignoreMessage(QtWarningMsg, expect.toLatin1());
+ QTest::ignoreMessage(QtWarningMsg, expect.toLatin1());
+ view->execute();
+ qApp->processEvents();
+
+ delete view;
+ }
+
+ {
+ QmlView *view = new QmlView;
+
+ view->setUrl(QUrl("file://" SRCDIR "/data/loop2.qml"));
+
+ QString expect = "QML QFxImage (" + view->url().toString() + ":14:3" + ") Possible anchor loop detected on horizontal anchor.";
+ QTest::ignoreMessage(QtWarningMsg, expect.toLatin1());
+ view->execute();
+ qApp->processEvents();
+
+ delete view;
+ }
+}
+
+void tst_anchors::illegalSets()
+{
+ {
+ QmlView *view = new QmlView;
+
+ view->setUrl(QUrl("file://" SRCDIR "/data/illegal1.qml"));
+
+ QString expect = "QML QFxRect (" + view->url().toString() + ":7:5" + ") Can't specify left, right, and hcenter anchors.";
+ QTest::ignoreMessage(QtWarningMsg, expect.toLatin1());
+ view->execute();
+ qApp->processEvents();
+
+ delete view;
+ }
+
+ {
+ QmlView *view = new QmlView;
+
+ view->setUrl(QUrl("file://" SRCDIR "/data/illegal2.qml"));
+
+ QString expect = "QML QFxText (" + view->url().toString() + ":7:5" + ") Baseline anchor can't be used in conjunction with top, bottom, or vcenter anchors.";
+ QTest::ignoreMessage(QtWarningMsg, expect.toLatin1());
+ view->execute();
+ //qApp->processEvents();
+
+ delete view;
+ }
+
+ {
+ QmlView *view = new QmlView;
+
+ view->setUrl(QUrl("file://" SRCDIR "/data/illegal3.qml"));
+
+ QString expect = "QML QFxRect (" + view->url().toString() + ":9:5" + ") Can't anchor to an item that isn't a parent or sibling.";
+ QTest::ignoreMessage(QtWarningMsg, expect.toLatin1());
+ view->execute();
+ //qApp->processEvents();
+
+ delete view;
+ }
+}
+
+void tst_anchors::reset()
+{
+ QFxItem *aItem = new QFxItem;
+ QFxAnchorLine anchor;
+ anchor.item = aItem;
+ anchor.anchorLine = QFxAnchorLine::Top;
+
+ QFxItem *item = new QFxItem;
+ item->anchors()->setBottom(anchor);
+ QCOMPARE(item->anchors()->usedAnchors().testFlag(QFxAnchors::HasBottomAnchor), true);
+
+ item->anchors()->resetBottom();
+ QCOMPARE(item->anchors()->usedAnchors().testFlag(QFxAnchors::HasBottomAnchor), false);
+}
+
+void tst_anchors::nullItem()
+{
+ QFxAnchorLine anchor;
+
+ QTest::ignoreMessage(QtWarningMsg, "QML QFxItem (unknown location) Can't anchor to a null item.");
+ QFxItem *item = new QFxItem;
+ item->anchors()->setBottom(anchor);
+}
+
+QTEST_MAIN(tst_anchors)
+
+#include "tst_anchors.moc"
diff --git a/tests/auto/declarative/animatedimage/animatedimage.pro b/tests/auto/declarative/animatedimage/animatedimage.pro
new file mode 100644
index 0000000..8a92863
--- /dev/null
+++ b/tests/auto/declarative/animatedimage/animatedimage.pro
@@ -0,0 +1,5 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_animatedimage.cpp
+
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/animatedimage/data/stickman.gif b/tests/auto/declarative/animatedimage/data/stickman.gif
new file mode 100644
index 0000000..7c4cd18
--- /dev/null
+++ b/tests/auto/declarative/animatedimage/data/stickman.gif
Binary files differ
diff --git a/tests/auto/declarative/animatedimage/tst_animatedimage.cpp b/tests/auto/declarative/animatedimage/tst_animatedimage.cpp
new file mode 100644
index 0000000..5c71731
--- /dev/null
+++ b/tests/auto/declarative/animatedimage/tst_animatedimage.cpp
@@ -0,0 +1,56 @@
+#include <qtest.h>
+#include <QtDeclarative/qmlengine.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtDeclarative/qmlview.h>
+#include <QtDeclarative/qfxrect.h>
+#include <QtDeclarative/qfximage.h>
+#include "qfxanimatedimageitem.h"
+
+class tst_animatedimage : public QObject
+{
+ Q_OBJECT
+public:
+ tst_animatedimage() {}
+
+private slots:
+ void play();
+ void pause();
+ void setFrame();
+ void frameCount();
+};
+
+void tst_animatedimage::play()
+{
+ QFxAnimatedImageItem anim;
+ anim.setSource(QUrl("file://" SRCDIR "/data/stickman.gif"));
+ QVERIFY(anim.isPlaying());
+}
+
+void tst_animatedimage::pause()
+{
+ QFxAnimatedImageItem anim;
+ anim.setSource(QUrl("file://" SRCDIR "/data/stickman.gif"));
+ anim.setPaused(true);
+ QVERIFY(!anim.isPlaying());
+}
+
+void tst_animatedimage::setFrame()
+{
+ QFxAnimatedImageItem anim;
+ anim.setSource(QUrl("file://" SRCDIR "/data/stickman.gif"));
+ anim.setPaused(true);
+ QVERIFY(!anim.isPlaying());
+ anim.setCurrentFrame(2);
+ QCOMPARE(anim.currentFrame(), 2);
+}
+
+void tst_animatedimage::frameCount()
+{
+ QFxAnimatedImageItem anim;
+ anim.setSource(QUrl("file://" SRCDIR "/data/stickman.gif"));
+ QCOMPARE(anim.frameCount(), 299);
+}
+
+QTEST_MAIN(tst_animatedimage)
+
+#include "tst_animatedimage.moc"
diff --git a/tests/auto/declarative/animations/animations.pro b/tests/auto/declarative/animations/animations.pro
new file mode 100644
index 0000000..419da4e
--- /dev/null
+++ b/tests/auto/declarative/animations/animations.pro
@@ -0,0 +1,5 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_animations.cpp
+
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/animations/data/badproperty1.qml b/tests/auto/declarative/animations/data/badproperty1.qml
new file mode 100644
index 0000000..78da34a
--- /dev/null
+++ b/tests/auto/declarative/animations/data/badproperty1.qml
@@ -0,0 +1,24 @@
+import Qt 4.6
+
+Rectangle {
+ id: Wrapper
+ width: 240
+ height: 320
+ Rectangle {
+ id: MyRect
+ color: "red"
+ width: 50; height: 50
+ x: 100; y: 100
+ MouseRegion {
+ anchors.fill: parent
+ onClicked: if (Wrapper.state == "state1") Wrapper.state = ""; else Wrapper.state = "state1";
+ }
+ }
+ states: State {
+ name: "state1"
+ PropertyChanges { target: MyRect; border.color: "blue" }
+ }
+ transitions: Transition {
+ ColorAnimation { target: MyRect; to: "red"; properties: "pen.colr"; duration: 1000 }
+ }
+}
diff --git a/tests/auto/declarative/animations/data/badtype1.qml b/tests/auto/declarative/animations/data/badtype1.qml
new file mode 100644
index 0000000..1e689d5
--- /dev/null
+++ b/tests/auto/declarative/animations/data/badtype1.qml
@@ -0,0 +1,12 @@
+import Qt 4.6
+
+Rectangle {
+ width: 240
+ height: 320
+ Rectangle {
+ color: "red"
+ width: 50; height: 50
+ x: 100; y: 100
+ x: PropertyAnimation { from: "blue"; to: "green"; running: true; }
+ }
+}
diff --git a/tests/auto/declarative/animations/data/badtype2.qml b/tests/auto/declarative/animations/data/badtype2.qml
new file mode 100644
index 0000000..e97194d
--- /dev/null
+++ b/tests/auto/declarative/animations/data/badtype2.qml
@@ -0,0 +1,12 @@
+import Qt 4.6
+
+Rectangle {
+ width: 240
+ height: 320
+ Rectangle {
+ color: "red"
+ width: 50; height: 50
+ x: 100; y: 100
+ x: NumberAnimation { from: "blue"; to: "green"; running: true; }
+ }
+}
diff --git a/tests/auto/declarative/animations/data/badtype3.qml b/tests/auto/declarative/animations/data/badtype3.qml
new file mode 100644
index 0000000..b2d738f
--- /dev/null
+++ b/tests/auto/declarative/animations/data/badtype3.qml
@@ -0,0 +1,12 @@
+import Qt 4.6
+
+Rectangle {
+ width: 240
+ height: 320
+ Rectangle {
+ color: "red"
+ color: ColorAnimation { from: 10; to: 15; running: true; }
+ width: 50; height: 50
+ x: 100; y: 100
+ }
+}
diff --git a/tests/auto/declarative/animations/data/badtype4.qml b/tests/auto/declarative/animations/data/badtype4.qml
new file mode 100644
index 0000000..0c0a636
--- /dev/null
+++ b/tests/auto/declarative/animations/data/badtype4.qml
@@ -0,0 +1,26 @@
+import Qt 4.6
+
+Rectangle {
+ id: Wrapper
+ width: 240
+ height: 320
+ Rectangle {
+ id: MyRect
+ color: "red"
+ width: 50; height: 50
+ x: 100; y: 100
+ MouseRegion {
+ anchors.fill: parent
+ onClicked: if (Wrapper.state == "state1") Wrapper.state = ""; else Wrapper.state = "state1";
+ }
+ }
+ states: State {
+ name: "state1"
+ PropertyChanges { target: MyRect; x: 200; color: "blue" }
+ }
+ transitions: Transition {
+ //comment out each in turn to make sure each only animates the relevant property
+ ColorAnimation { properties: "x,color"; duration: 1000 } //x is real, color is color
+ NumberAnimation { properties: "x,color"; duration: 1000 } //x is real, color is color
+ }
+}
diff --git a/tests/auto/declarative/animations/data/dotproperty.qml b/tests/auto/declarative/animations/data/dotproperty.qml
new file mode 100644
index 0000000..ee076c2
--- /dev/null
+++ b/tests/auto/declarative/animations/data/dotproperty.qml
@@ -0,0 +1,24 @@
+import Qt 4.6
+
+Rectangle {
+ id: Wrapper
+ width: 240
+ height: 320
+ Rectangle {
+ id: MyRect
+ color: "red"
+ width: 50; height: 50
+ x: 100; y: 100
+ MouseRegion {
+ anchors.fill: parent
+ onClicked: if (Wrapper.state == "state1") Wrapper.state = ""; else Wrapper.state = "state1";
+ }
+ }
+ states: State {
+ name: "state1"
+ PropertyChanges { target: MyRect; pen.color: "blue" }
+ }
+ transitions: Transition {
+ ColorAnimation { properties: "pen.color"; duration: 1000 }
+ }
+}
diff --git a/tests/auto/declarative/animations/data/mixedtype1.qml b/tests/auto/declarative/animations/data/mixedtype1.qml
new file mode 100644
index 0000000..ed50582
--- /dev/null
+++ b/tests/auto/declarative/animations/data/mixedtype1.qml
@@ -0,0 +1,24 @@
+import Qt 4.6
+
+Rectangle {
+ id: Wrapper
+ width: 240
+ height: 320
+ Rectangle {
+ id: MyRect
+ color: "red"
+ width: 50; height: 50
+ x: 100; y: 100
+ MouseRegion {
+ anchors.fill: parent
+ onClicked: if (Wrapper.state == "state1") Wrapper.state = ""; else Wrapper.state = "state1";
+ }
+ }
+ states: State {
+ name: "state1"
+ PropertyChanges { target: MyRect; x: 200; border.width: 10 }
+ }
+ transitions: Transition {
+ PropertyAnimation { properties: "x,border.width"; duration: 1000 } //x is real, border.width is int
+ }
+}
diff --git a/tests/auto/declarative/animations/data/mixedtype2.qml b/tests/auto/declarative/animations/data/mixedtype2.qml
new file mode 100644
index 0000000..4854c2e
--- /dev/null
+++ b/tests/auto/declarative/animations/data/mixedtype2.qml
@@ -0,0 +1,24 @@
+import Qt 4.6
+
+Rectangle {
+ id: Wrapper
+ width: 240
+ height: 320
+ Rectangle {
+ id: MyRect
+ color: "red"
+ width: 50; height: 50
+ x: 100; y: 100
+ MouseRegion {
+ anchors.fill: parent
+ onClicked: if (Wrapper.state == "state1") Wrapper.state = ""; else Wrapper.state = "state1";
+ }
+ }
+ states: State {
+ name: "state1"
+ PropertyChanges { target: MyRect; x: 200; color: "blue" }
+ }
+ transitions: Transition {
+ PropertyAnimation { properties: "x,color"; duration: 1000 } //x is real, color is color
+ }
+}
diff --git a/tests/auto/declarative/animations/tst_animations.cpp b/tests/auto/declarative/animations/tst_animations.cpp
new file mode 100644
index 0000000..336f0d3
--- /dev/null
+++ b/tests/auto/declarative/animations/tst_animations.cpp
@@ -0,0 +1,200 @@
+#include <qtest.h>
+#include <QtDeclarative/qmlengine.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtDeclarative/qmlview.h>
+#include <QtDeclarative/qfxrect.h>
+#include <QtDeclarative/QmlNumberAnimation>
+
+class tst_animations : public QObject
+{
+ Q_OBJECT
+public:
+ tst_animations() {}
+
+private slots:
+ void simpleNumber();
+ void simpleColor();
+ void alwaysRunToEnd();
+ void dotProperty();
+ void badTypes();
+ void badProperties();
+ void mixedTypes();
+};
+
+void tst_animations::simpleNumber()
+{
+ QFxRect rect;
+ QmlNumberAnimation animation;
+ animation.setTarget(&rect);
+ animation.setProperty("x");
+ animation.setTo(200);
+ animation.start();
+ QTest::qWait(animation.duration() + 50);
+ QCOMPARE(rect.x(), qreal(200));
+
+ rect.setX(0);
+ animation.start();
+ animation.pause();
+ animation.setCurrentTime(125);
+ QCOMPARE(rect.x(), qreal(100));
+}
+
+void tst_animations::simpleColor()
+{
+ QFxRect rect;
+ QmlColorAnimation animation;
+ animation.setTarget(&rect);
+ animation.setProperty("color");
+ animation.setTo(QColor("red"));
+ animation.start();
+ QTest::qWait(animation.duration() + 50);
+ QCOMPARE(rect.color(), QColor("red"));
+
+ rect.setColor(QColor("blue"));
+ animation.start();
+ animation.pause();
+ animation.setCurrentTime(125);
+ QCOMPARE(rect.color(), QColor::fromRgbF(0.498039, 0, 0.498039, 1));
+}
+
+void tst_animations::alwaysRunToEnd()
+{
+ QFxRect rect;
+ QmlPropertyAnimation animation;
+ animation.setTarget(&rect);
+ animation.setProperty("x");
+ animation.setTo(200);
+ animation.setDuration(1000);
+ animation.setRepeat(true);
+ animation.setAlwaysRunToEnd(true);
+ animation.start();
+ QTest::qWait(1500);
+ animation.stop();
+ QVERIFY(rect.x() != qreal(200));
+ QTest::qWait(500 + 50);
+ QCOMPARE(rect.x(), qreal(200));
+}
+
+void tst_animations::dotProperty()
+{
+ QFxRect rect;
+ QmlNumberAnimation animation;
+ animation.setTarget(&rect);
+ animation.setProperty("border.width");
+ animation.setTo(10);
+ animation.start();
+ QTest::qWait(animation.duration() + 50);
+ QCOMPARE(rect.border()->width(), 10);
+
+ rect.border()->setWidth(0);
+ animation.start();
+ animation.pause();
+ animation.setCurrentTime(125);
+ QCOMPARE(rect.border()->width(), 5);
+}
+
+void tst_animations::badTypes()
+{
+ //don't crash
+ {
+ QmlView *view = new QmlView;
+ view->setUrl(QUrl("file://" SRCDIR "/data/badtype1.qml"));
+
+ view->execute();
+ qApp->processEvents();
+
+ delete view;
+ }
+
+ //make sure we get a compiler error
+ {
+ QmlEngine engine;
+ QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/badtype2.qml"));
+ QTest::ignoreMessage(QtWarningMsg, "QmlComponent: Component is not ready");
+ c.create();
+
+ QVERIFY(c.errors().count() == 1);
+ QCOMPARE(c.errors().at(0).description(), QLatin1String("Invalid property assignment: double expected"));
+ }
+
+ //make sure we get a compiler error
+ {
+ QmlEngine engine;
+ QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/badtype3.qml"));
+ QTest::ignoreMessage(QtWarningMsg, "QmlComponent: Component is not ready");
+ c.create();
+
+ QVERIFY(c.errors().count() == 1);
+ QCOMPARE(c.errors().at(0).description(), QLatin1String("Invalid property assignment: color expected"));
+ }
+
+ //don't crash
+ {
+ QmlEngine engine;
+ QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/badtype4.qml"));
+ QFxRect *rect = qobject_cast<QFxRect*>(c.create());
+ QVERIFY(rect);
+
+ rect->setState("state1");
+ QTest::qWait(1000 + 50);
+ QFxRect *myRect = qobject_cast<QFxRect*>(rect->QGraphicsObject::children().at(3)); //### not robust
+ QVERIFY(myRect);
+ QCOMPARE(myRect->x(),qreal(200));
+ }
+}
+
+void tst_animations::badProperties()
+{
+ //make sure we get a runtime error
+ {
+ QmlEngine engine;
+ QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/badproperty1.qml"));
+ QFxRect *rect = qobject_cast<QFxRect*>(c.create());
+ QVERIFY(rect);
+
+ QTest::ignoreMessage(QtWarningMsg, "QML QmlColorAnimation (file://" SRCDIR "/data/badproperty1.qml:22:9) Cannot animate non-existant property \"pen.colr\"");
+ rect->setState("state1");
+ }
+}
+
+//test animating mixed types with property animation in a transition
+//for example, int + real; color + real; etc
+void tst_animations::mixedTypes()
+{
+ //assumes border.width stats a real -- not real robust
+ {
+ QmlEngine engine;
+ QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/mixedtype1.qml"));
+ QFxRect *rect = qobject_cast<QFxRect*>(c.create());
+ QVERIFY(rect);
+
+ rect->setState("state1");
+ QTest::qWait(500);
+ QFxRect *myRect = qobject_cast<QFxRect*>(rect->QGraphicsObject::children().at(3)); //### not robust
+ QVERIFY(myRect);
+
+ //rather inexact -- is there a better way?
+ QVERIFY(myRect->x() > 100 && myRect->x() < 200);
+ QVERIFY(myRect->border()->width() > 1 && myRect->border()->width() < 10);
+ }
+
+ {
+ QmlEngine engine;
+ QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/mixedtype2.qml"));
+ QFxRect *rect = qobject_cast<QFxRect*>(c.create());
+ QVERIFY(rect);
+
+ rect->setState("state1");
+ QTest::qWait(500);
+ QFxRect *myRect = qobject_cast<QFxRect*>(rect->QGraphicsObject::children().at(3)); //### not robust
+ QVERIFY(myRect);
+
+ //rather inexact -- is there a better way?
+ QVERIFY(myRect->x() > 100 && myRect->x() < 200);
+ QVERIFY(myRect->color() != QColor("red") && myRect->color() != QColor("blue"));
+ }
+}
+
+QTEST_MAIN(tst_animations)
+
+#include "tst_animations.moc"
diff --git a/tests/auto/declarative/behaviors/behaviors.pro b/tests/auto/declarative/behaviors/behaviors.pro
new file mode 100644
index 0000000..c96d2c0
--- /dev/null
+++ b/tests/auto/declarative/behaviors/behaviors.pro
@@ -0,0 +1,5 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_behaviors.cpp
+
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/behaviors/data/binding.qml b/tests/auto/declarative/behaviors/data/binding.qml
new file mode 100644
index 0000000..e0c3321
--- /dev/null
+++ b/tests/auto/declarative/behaviors/data/binding.qml
@@ -0,0 +1,26 @@
+import Qt 4.6
+Rectangle {
+ width: 400
+ height: 400
+ property real basex : 0
+ property real movedx: 200
+ Rectangle {
+ id: rect
+ objectName: "MyRect"
+ width: 100; height: 100; color: "green"
+ x: basex
+ x: Behavior { NumberAnimation { duration: 200; } }
+ }
+ MouseRegion {
+ id: clicker
+ anchors.fill: parent
+ }
+ states: State {
+ name: "moved"
+ when: clicker.pressed
+ PropertyChanges {
+ target: rect
+ x: movedx
+ }
+ }
+}
diff --git a/tests/auto/declarative/behaviors/data/color.qml b/tests/auto/declarative/behaviors/data/color.qml
new file mode 100644
index 0000000..6598703
--- /dev/null
+++ b/tests/auto/declarative/behaviors/data/color.qml
@@ -0,0 +1,24 @@
+import Qt 4.6
+Rectangle {
+ width: 400
+ height: 400
+ Rectangle {
+ id: rect
+ objectName: "MyRect"
+ width: 100; height: 100;
+ color: "green"
+ color: Behavior { ColorAnimation { duration: 200; } }
+ }
+ MouseRegion {
+ id: clicker
+ anchors.fill: parent
+ }
+ states: State {
+ name: "red"
+ when: clicker.pressed
+ PropertyChanges {
+ target: rect
+ color: "red"
+ }
+ }
+}
diff --git a/tests/auto/declarative/behaviors/data/cpptrigger.qml b/tests/auto/declarative/behaviors/data/cpptrigger.qml
new file mode 100644
index 0000000..ba507c4
--- /dev/null
+++ b/tests/auto/declarative/behaviors/data/cpptrigger.qml
@@ -0,0 +1,11 @@
+import Qt 4.6
+Rectangle {
+ width: 400
+ height: 400
+ Rectangle {
+ id: rect
+ objectName: "MyRect"
+ width: 100; height: 100; color: "green"
+ x: Behavior { NumberAnimation { duration: 200; } }
+ }
+}
diff --git a/tests/auto/declarative/behaviors/data/groupProperty.qml b/tests/auto/declarative/behaviors/data/groupProperty.qml
new file mode 100644
index 0000000..4f127c1
--- /dev/null
+++ b/tests/auto/declarative/behaviors/data/groupProperty.qml
@@ -0,0 +1,23 @@
+import Qt 4.6
+Rectangle {
+ width: 400
+ height: 400
+ Rectangle {
+ id: rect
+ objectName: "MyRect"
+ width: 100; height: 100; color: "green"
+ pos: Behavior { PropertyAnimation { duration: 200; } }
+ }
+ MouseRegion {
+ id: clicker
+ anchors.fill: parent
+ }
+ states: State {
+ name: "moved"
+ when: clicker.pressed
+ PropertyChanges {
+ target: rect
+ pos: Qt.point(200,0);
+ }
+ }
+}
diff --git a/tests/auto/declarative/behaviors/data/groupProperty2.qml b/tests/auto/declarative/behaviors/data/groupProperty2.qml
new file mode 100644
index 0000000..19d70b6
--- /dev/null
+++ b/tests/auto/declarative/behaviors/data/groupProperty2.qml
@@ -0,0 +1,23 @@
+import Qt 4.6
+Rectangle {
+ width: 400
+ height: 400
+ Rectangle {
+ id: rect
+ objectName: "MyRect"
+ width: 100; height: 100; color: "green"
+ pos.x: Behavior { NumberAnimation { duration: 200; } }
+ }
+ MouseRegion {
+ id: clicker
+ anchors.fill: parent
+ }
+ states: State {
+ name: "moved"
+ when: clicker.pressed
+ PropertyChanges {
+ target: rect
+ pos.x: 200;
+ }
+ }
+}
diff --git a/tests/auto/declarative/behaviors/data/loop.qml b/tests/auto/declarative/behaviors/data/loop.qml
new file mode 100644
index 0000000..5f2c057
--- /dev/null
+++ b/tests/auto/declarative/behaviors/data/loop.qml
@@ -0,0 +1,19 @@
+import Qt 4.6
+Rectangle {
+ width: 400
+ height: 400
+ Rectangle {
+ id: rect
+ objectName: "MyRect"
+ width: 100; height: 100; color: "green"
+ x: Behavior { NumberAnimation { duration: 200; } }
+ onXChanged: x = 100;
+ }
+ states: State {
+ name: "moved"
+ PropertyChanges {
+ target: rect
+ x: 200
+ }
+ }
+}
diff --git a/tests/auto/declarative/behaviors/data/scripttrigger.qml b/tests/auto/declarative/behaviors/data/scripttrigger.qml
new file mode 100644
index 0000000..4383a0b
--- /dev/null
+++ b/tests/auto/declarative/behaviors/data/scripttrigger.qml
@@ -0,0 +1,16 @@
+import Qt 4.6
+Rectangle {
+ width: 400
+ height: 400
+
+ onColorChanged: {
+ rect.x = 200
+ }
+
+ Rectangle {
+ id: rect
+ objectName: "MyRect"
+ width: 100; height: 100; color: "green"
+ x: Behavior { NumberAnimation { duration: 200; } }
+ }
+}
diff --git a/tests/auto/declarative/behaviors/data/simple.qml b/tests/auto/declarative/behaviors/data/simple.qml
new file mode 100644
index 0000000..a715f7b
--- /dev/null
+++ b/tests/auto/declarative/behaviors/data/simple.qml
@@ -0,0 +1,23 @@
+import Qt 4.6
+Rectangle {
+ width: 400
+ height: 400
+ Rectangle {
+ id: rect
+ objectName: "MyRect"
+ width: 100; height: 100; color: "green"
+ x: Behavior { NumberAnimation { duration: 200; } }
+ }
+ MouseRegion {
+ id: clicker
+ anchors.fill: parent
+ }
+ states: State {
+ name: "moved"
+ when: clicker.pressed
+ PropertyChanges {
+ target: rect
+ x: 200
+ }
+ }
+}
diff --git a/tests/auto/declarative/behaviors/tst_behaviors.cpp b/tests/auto/declarative/behaviors/tst_behaviors.cpp
new file mode 100644
index 0000000..7bfadf6
--- /dev/null
+++ b/tests/auto/declarative/behaviors/tst_behaviors.cpp
@@ -0,0 +1,154 @@
+#include <qtest.h>
+#include <QtDeclarative/qmlengine.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtDeclarative/qmlview.h>
+#include <QtDeclarative/qfxrect.h>
+#include <QtDeclarative/QmlNumberAnimation>
+
+class tst_behaviors : public QObject
+{
+ Q_OBJECT
+public:
+ tst_behaviors() {}
+
+private slots:
+ void simpleBehavior();
+ void scriptTriggered();
+ void cppTriggered();
+ void loop();
+ void colorBehavior();
+ void replaceBinding();
+ //void transitionOverrides();
+ void group();
+};
+
+void tst_behaviors::simpleBehavior()
+{
+ QmlEngine engine;
+ QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/simple.qml"));
+ QFxRect *rect = qobject_cast<QFxRect*>(c.create());
+ QVERIFY(rect);
+
+ rect->setState("moved");
+ QTest::qWait(100);
+ qreal x = qobject_cast<QFxRect*>(rect->findChild<QFxRect*>("MyRect"))->x();
+ QVERIFY(x > 0 && x < 200); //i.e. the behavior has been triggered
+}
+
+void tst_behaviors::scriptTriggered()
+{
+ QmlEngine engine;
+ QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/scripttrigger.qml"));
+ QFxRect *rect = qobject_cast<QFxRect*>(c.create());
+ QVERIFY(rect);
+
+ rect->setColor(QColor("red"));
+ QTest::qWait(100);
+ qreal x = qobject_cast<QFxRect*>(rect->findChild<QFxRect*>("MyRect"))->x();
+ QVERIFY(x > 0 && x < 200); //i.e. the behavior has been triggered
+}
+
+void tst_behaviors::cppTriggered()
+{
+ QmlEngine engine;
+ QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/cpptrigger.qml"));
+ QFxRect *rect = qobject_cast<QFxRect*>(c.create());
+ QVERIFY(rect);
+
+ QFxRect *innerRect = qobject_cast<QFxRect*>(rect->findChild<QFxRect*>("MyRect"));
+ QVERIFY(innerRect);
+
+ innerRect->setProperty("x", 200);
+ QTest::qWait(100);
+ qreal x = innerRect->x();
+ QVERIFY(x > 0 && x < 200); //i.e. the behavior has been triggered
+}
+
+void tst_behaviors::loop()
+{
+ QmlEngine engine;
+ QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/loop.qml"));
+ QFxRect *rect = qobject_cast<QFxRect*>(c.create());
+ QVERIFY(rect);
+
+ //don't crash
+ rect->setState("moved");
+}
+
+void tst_behaviors::colorBehavior()
+{
+ QmlEngine engine;
+ QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/color.qml"));
+ QFxRect *rect = qobject_cast<QFxRect*>(c.create());
+ QVERIFY(rect);
+
+ rect->setState("red");
+ QTest::qWait(100);
+ QColor color = qobject_cast<QFxRect*>(rect->findChild<QFxRect*>("MyRect"))->color();
+ QVERIFY(color != QColor("red") && color != QColor("green")); //i.e. the behavior has been triggered
+}
+
+void tst_behaviors::replaceBinding()
+{
+ QmlEngine engine;
+ QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/binding.qml"));
+ QFxRect *rect = qobject_cast<QFxRect*>(c.create());
+ QVERIFY(rect);
+
+ rect->setState("moved");
+ QTest::qWait(100);
+ QFxRect *innerRect = qobject_cast<QFxRect*>(rect->findChild<QFxRect*>("MyRect"));
+ QVERIFY(innerRect);
+ qreal x = innerRect->x();
+ QVERIFY(x > 0 && x < 200); //i.e. the behavior has been triggered
+ QTest::qWait(300);
+ QCOMPARE(innerRect->x(), (qreal)200);
+ rect->setProperty("basex", 10);
+ QCOMPARE(innerRect->x(), (qreal)200);
+ rect->setProperty("movedx", 210);
+ QTest::qWait(300);
+ QCOMPARE(innerRect->x(), (qreal)210);
+
+ rect->setState("");
+ QTest::qWait(100);
+ x = innerRect->x();
+ QVERIFY(x > 10 && x < 210); //i.e. the behavior has been triggered
+ QTest::qWait(300);
+ QCOMPARE(innerRect->x(), (qreal)10);
+ rect->setProperty("movedx", 200);
+ QCOMPARE(innerRect->x(), (qreal)10);
+ rect->setProperty("basex", 20);
+ QTest::qWait(300);
+ QCOMPARE(innerRect->x(), (qreal)20);
+}
+
+void tst_behaviors::group()
+{
+ {
+ QmlEngine engine;
+ QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/groupProperty.qml"));
+ QFxRect *rect = qobject_cast<QFxRect*>(c.create());
+ QVERIFY(rect);
+
+ rect->setState("moved");
+ QTest::qWait(100);
+ qreal x = qobject_cast<QFxRect*>(rect->findChild<QFxRect*>("MyRect"))->x();
+ QVERIFY(x > 0 && x < 200); //i.e. the behavior has been triggered
+ }
+
+ {
+ QmlEngine engine;
+ QmlComponent c(&engine, QUrl("file://" SRCDIR "/data/groupProperty2.qml"));
+ QFxRect *rect = qobject_cast<QFxRect*>(c.create());
+ QVERIFY(rect);
+
+ rect->setState("moved");
+ QTest::qWait(100);
+ qreal x = qobject_cast<QFxRect*>(rect->findChild<QFxRect*>("MyRect"))->x();
+ QVERIFY(x > 0 && x < 200); //i.e. the behavior has been triggered
+ }
+}
+
+QTEST_MAIN(tst_behaviors)
+
+#include "tst_behaviors.moc"
diff --git a/tests/auto/declarative/datetimeformatter/datetimeformatter.pro b/tests/auto/declarative/datetimeformatter/datetimeformatter.pro
new file mode 100644
index 0000000..e3d6cd0
--- /dev/null
+++ b/tests/auto/declarative/datetimeformatter/datetimeformatter.pro
@@ -0,0 +1,3 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_datetimeformatter.cpp
diff --git a/tests/auto/declarative/datetimeformatter/tst_datetimeformatter.cpp b/tests/auto/declarative/datetimeformatter/tst_datetimeformatter.cpp
new file mode 100644
index 0000000..556912e
--- /dev/null
+++ b/tests/auto/declarative/datetimeformatter/tst_datetimeformatter.cpp
@@ -0,0 +1,91 @@
+#include <qtest.h>
+#include <QtDeclarative/qmlengine.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtDeclarative/qmldatetimeformatter.h>
+#include <QDebug>
+
+class tst_datetimeformatter : public QObject
+{
+ Q_OBJECT
+public:
+ tst_datetimeformatter() {}
+
+private slots:
+ void date();
+ void time();
+ void dateTime();
+};
+
+void tst_datetimeformatter::date()
+{
+ QmlEngine engine;
+ QmlComponent formatterComponent(&engine, QByteArray("import Qt 4.6\n DateTimeFormatter { date: \"2008-12-24\" }"),
+ QUrl("file://"));
+ QmlDateTimeFormatter *formatter = qobject_cast<QmlDateTimeFormatter*>(formatterComponent.create());
+ if(formatterComponent.isError())
+ qDebug() << formatterComponent.errors();
+ QVERIFY(formatter != 0);
+
+ QDate date(2008,12,24);
+ QCOMPARE(formatter->dateText(),date.toString(Qt::SystemLocaleShortDate));
+
+ formatter->setLongStyle(true);
+ QCOMPARE(formatter->dateText(),date.toString(Qt::SystemLocaleLongDate));
+
+ formatter->setDateFormat("ddd MMMM d yy");
+ QCOMPARE(formatter->dateText(),date.toString("ddd MMMM d yy"));
+
+ QVERIFY(formatter->timeText().isEmpty());
+ QVERIFY(formatter->dateTimeText().isEmpty());
+}
+
+void tst_datetimeformatter::time()
+{
+ QmlEngine engine;
+ QmlComponent formatterComponent(&engine, "import Qt 4.6\n DateTimeFormatter { time: \"14:15:38.200\" }", QUrl("file://"));
+ QmlDateTimeFormatter *formatter = qobject_cast<QmlDateTimeFormatter*>(formatterComponent.create());
+ if(formatterComponent.isError())
+ qDebug() << formatterComponent.errors();
+ QVERIFY(formatter != 0);
+
+ QTime time(14,15,38,200);
+
+ QCOMPARE(formatter->time(),time);
+
+ QCOMPARE(formatter->timeText(),time.toString(Qt::SystemLocaleShortDate));
+
+ formatter->setLongStyle(true);
+ QCOMPARE(formatter->timeText(),time.toString(Qt::SystemLocaleLongDate));
+
+ formatter->setTimeFormat("H:m:s a");
+ QCOMPARE(formatter->timeText(),time.toString("H:m:s a"));
+
+ formatter->setTimeFormat("hh:mm:ss.zzz");
+ QCOMPARE(formatter->timeText(),time.toString("hh:mm:ss.zzz"));
+
+ QVERIFY(formatter->dateText().isEmpty());
+ QVERIFY(formatter->dateTimeText().isEmpty());
+}
+
+void tst_datetimeformatter::dateTime()
+{
+ QmlEngine engine;
+ QmlComponent formatterComponent(&engine, "import Qt 4.6\n DateTimeFormatter { dateTime: \"1978-03-04T09:13:54\" }", QUrl("file://"));
+ QmlDateTimeFormatter *formatter = qobject_cast<QmlDateTimeFormatter*>(formatterComponent.create());
+ if(formatterComponent.isError())
+ qDebug() << formatterComponent.errors();
+ QVERIFY(formatter != 0);
+
+ QDateTime dateTime(QDate(1978,03,04),QTime(9,13,54));
+ QCOMPARE(formatter->dateTimeText(),dateTime.toString(Qt::SystemLocaleShortDate));
+
+ formatter->setLongStyle(true);
+ QCOMPARE(formatter->dateTimeText(),dateTime.toString(Qt::SystemLocaleLongDate));
+
+ formatter->setDateTimeFormat("M/d/yy H:m:s a");
+ QCOMPARE(formatter->dateTimeText(),dateTime.toString("M/d/yy H:m:s a"));
+}
+
+QTEST_MAIN(tst_datetimeformatter)
+
+#include "tst_datetimeformatter.moc"
diff --git a/tests/auto/declarative/declarative.pro b/tests/auto/declarative/declarative.pro
new file mode 100644
index 0000000..b51e285
--- /dev/null
+++ b/tests/auto/declarative/declarative.pro
@@ -0,0 +1,30 @@
+TEMPLATE = subdirs
+SUBDIRS += anchors \
+ animations \
+ datetimeformatter \
+ layouts \
+ listview \
+ numberformatter \
+ pathview \
+ qbindablemap \
+ qfxloader \
+ qfxpixmapcache \
+ qfxtext \
+ qfxtextedit \
+ qfxtextinput \
+ qfxwebview \
+ qmldom \
+ qmlecmascript \
+ qmllanguage \
+ qmllist \
+ qmllistaccessor \
+ qmlmetaproperty \
+ qmltimer \
+ repeater \
+ sql \
+ states \
+ visual
+
+# Tests which should run in Pulse
+PULSE_TESTS = $$SUBDIRS
+
diff --git a/tests/auto/declarative/examples/data/dummytest.qml b/tests/auto/declarative/examples/data/dummytest.qml
new file mode 100644
index 0000000..cd9d8fb
--- /dev/null
+++ b/tests/auto/declarative/examples/data/dummytest.qml
@@ -0,0 +1,5 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame { msec: 0 }
+}
diff --git a/tests/auto/declarative/examples/examples.pro b/tests/auto/declarative/examples/examples.pro
new file mode 100644
index 0000000..c50018e
--- /dev/null
+++ b/tests/auto/declarative/examples/examples.pro
@@ -0,0 +1,4 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_examples.cpp
+macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/examples/tst_examples.cpp b/tests/auto/declarative/examples/tst_examples.cpp
new file mode 100644
index 0000000..51f6e5f
--- /dev/null
+++ b/tests/auto/declarative/examples/tst_examples.cpp
@@ -0,0 +1,155 @@
+#include <qtest.h>
+#include <QLibraryInfo>
+#include <QDir>
+#include <QProcess>
+
+class tst_examples : public QObject
+{
+ Q_OBJECT
+public:
+ tst_examples();
+
+private slots:
+ void examples_data();
+ void examples();
+
+ void namingConvention();
+private:
+ QString qmlviewer;
+ QStringList excludedDirs;
+
+ void namingConvention(const QDir &);
+ QStringList findQmlFiles(const QDir &);
+};
+
+tst_examples::tst_examples()
+{
+ QString binaries = QLibraryInfo::location(QLibraryInfo::BinariesPath);
+
+#if defined(Q_WS_MAC)
+ qmlviewer = QDir(binaries).absoluteFilePath("qmlviewer.app/Contents/MacOS/qmlviewer");
+#elif defined(Q_WS_WIN)
+ qmlviewer = QDir(binaries).absoluteFilePath("qmlviewer.exe");
+#else
+ qmlviewer = QDir(binaries).absoluteFilePath("qmlviewer");
+#endif
+
+
+ // Add directories you want excluded here
+ excludedDirs << "examples/declarative/extending";
+}
+
+/*
+This tests that the demos and examples follow the naming convention required
+to have them tested by the examples() test.
+*/
+void tst_examples::namingConvention(const QDir &d)
+{
+ for (int ii = 0; ii < excludedDirs.count(); ++ii) {
+ QString s = QDir::toNativeSeparators(excludedDirs.at(ii));
+ if (d.absolutePath().endsWith(s))
+ return;
+ }
+
+ QStringList files = d.entryList(QStringList() << QLatin1String("*.qml"),
+ QDir::Files);
+
+ bool seenQml = !files.isEmpty();
+ bool seenLowercase = false;
+
+ foreach (const QString &file, files) {
+ if (file.at(0).isLower())
+ seenLowercase = true;
+ }
+
+ if (!seenQml) {
+ QStringList dirs = d.entryList(QDir::Dirs | QDir::NoDotAndDotDot |
+ QDir::NoSymLinks);
+ foreach (const QString &dir, dirs) {
+ QDir sub = d;
+ sub.cd(dir);
+ namingConvention(sub);
+ }
+ } else if(!seenLowercase) {
+ QTest::qFail(QString("Directory " + d.absolutePath() + " violates naming convention").toLatin1().constData(), __FILE__, __LINE__);
+ }
+}
+
+void tst_examples::namingConvention()
+{
+ QString examples = QLibraryInfo::location(QLibraryInfo::ExamplesPath);
+ QString demos = QLibraryInfo::location(QLibraryInfo::DemosPath);
+
+ namingConvention(QDir(examples));
+ namingConvention(QDir(demos));
+}
+
+QStringList tst_examples::findQmlFiles(const QDir &d)
+{
+ for (int ii = 0; ii < excludedDirs.count(); ++ii) {
+ QString s = QDir::toNativeSeparators(excludedDirs.at(ii));
+ if (d.absolutePath().endsWith(s))
+ return QStringList();
+ }
+
+ QStringList rv;
+
+ QStringList files = d.entryList(QStringList() << QLatin1String("*.qml"),
+ QDir::Files);
+ foreach (const QString &file, files) {
+ if (file.at(0).isLower()) {
+ rv << d.absoluteFilePath(file);
+ }
+ }
+
+ QStringList dirs = d.entryList(QDir::Dirs | QDir::NoDotAndDotDot |
+ QDir::NoSymLinks);
+ foreach (const QString &dir, dirs) {
+ QDir sub = d;
+ sub.cd(dir);
+ rv << findQmlFiles(sub);
+ }
+
+ return rv;
+}
+
+/*
+This test runs all the examples in the declarative UI source tree and ensures
+that they start and exit cleanly.
+
+Examples are any .qml files under the examples/ or demos/ directory that start
+with a lower case letter.
+*/
+void tst_examples::examples_data()
+{
+ QTest::addColumn<QString>("file");
+
+ QString examples = QLibraryInfo::location(QLibraryInfo::ExamplesPath);
+ QString demos = QLibraryInfo::location(QLibraryInfo::DemosPath);
+
+ QStringList files;
+ files << findQmlFiles(QDir(examples));
+ files << findQmlFiles(QDir(demos));
+
+ foreach (const QString &file, files)
+ QTest::newRow(file.toLatin1().constData()) << file;
+}
+
+void tst_examples::examples()
+{
+ QFETCH(QString, file);
+
+ QStringList arguments;
+ arguments << "-script" << "data/dummytest"
+ << "-scriptopts" << "play,exitoncomplete,exitonfailure"
+ << file;
+ QProcess p;
+ p.start(qmlviewer, arguments);
+ QVERIFY(p.waitForFinished());
+ QCOMPARE(p.exitStatus(), QProcess::NormalExit);
+ QCOMPARE(p.exitCode(), 0);
+}
+
+QTEST_MAIN(tst_examples)
+
+#include "tst_examples.moc"
diff --git a/tests/auto/declarative/layouts/data/grid-spacing.qml b/tests/auto/declarative/layouts/data/grid-spacing.qml
new file mode 100644
index 0000000..5b4a30d
--- /dev/null
+++ b/tests/auto/declarative/layouts/data/grid-spacing.qml
@@ -0,0 +1,40 @@
+import Qt 4.6
+
+Item {
+ width: 640
+ height: 480
+ Grid {
+ columns: 3
+ spacing: 4
+ Rectangle {
+ objectName: "one"
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rectangle {
+ objectName: "two"
+ color: "green"
+ width: 20
+ height: 50
+ }
+ Rectangle {
+ objectName: "three"
+ color: "blue"
+ width: 50
+ height: 20
+ }
+ Rectangle {
+ objectName: "four"
+ color: "cyan"
+ width: 50
+ height: 50
+ }
+ Rectangle {
+ objectName: "five"
+ color: "magenta"
+ width: 10
+ height: 10
+ }
+ }
+}
diff --git a/tests/auto/declarative/layouts/data/grid.qml b/tests/auto/declarative/layouts/data/grid.qml
new file mode 100644
index 0000000..830df6a
--- /dev/null
+++ b/tests/auto/declarative/layouts/data/grid.qml
@@ -0,0 +1,39 @@
+import Qt 4.6
+
+Item {
+ width: 640
+ height: 480
+ Grid {
+ columns: 3
+ Rectangle {
+ objectName: "one"
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rectangle {
+ objectName: "two"
+ color: "green"
+ width: 20
+ height: 50
+ }
+ Rectangle {
+ objectName: "three"
+ color: "blue"
+ width: 50
+ height: 20
+ }
+ Rectangle {
+ objectName: "four"
+ color: "cyan"
+ width: 50
+ height: 50
+ }
+ Rectangle {
+ objectName: "five"
+ color: "magenta"
+ width: 10
+ height: 10
+ }
+ }
+}
diff --git a/tests/auto/declarative/layouts/data/horizontal-spacing.qml b/tests/auto/declarative/layouts/data/horizontal-spacing.qml
new file mode 100644
index 0000000..32bf775
--- /dev/null
+++ b/tests/auto/declarative/layouts/data/horizontal-spacing.qml
@@ -0,0 +1,27 @@
+import Qt 4.6
+
+Item {
+ width: 640
+ height: 480
+ Row {
+ spacing: 10
+ Rectangle {
+ objectName: "one"
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rectangle {
+ objectName: "two"
+ color: "red"
+ width: 20
+ height: 10
+ }
+ Rectangle {
+ objectName: "three"
+ color: "red"
+ width: 40
+ height: 20
+ }
+ }
+}
diff --git a/tests/auto/declarative/layouts/data/horizontal.qml b/tests/auto/declarative/layouts/data/horizontal.qml
new file mode 100644
index 0000000..06ae151
--- /dev/null
+++ b/tests/auto/declarative/layouts/data/horizontal.qml
@@ -0,0 +1,26 @@
+import Qt 4.6
+
+Item {
+ width: 640
+ height: 480
+ Row {
+ Rectangle {
+ objectName: "one"
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rectangle {
+ objectName: "two"
+ color: "red"
+ width: 20
+ height: 10
+ }
+ Rectangle {
+ objectName: "three"
+ color: "red"
+ width: 40
+ height: 20
+ }
+ }
+}
diff --git a/tests/auto/declarative/layouts/data/vertical-spacing.qml b/tests/auto/declarative/layouts/data/vertical-spacing.qml
new file mode 100644
index 0000000..69a8256
--- /dev/null
+++ b/tests/auto/declarative/layouts/data/vertical-spacing.qml
@@ -0,0 +1,27 @@
+import Qt 4.6
+
+Item {
+ width: 640
+ height: 480
+ Column {
+ spacing: 10
+ Rectangle {
+ objectName: "one"
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rectangle {
+ objectName: "two"
+ color: "red"
+ width: 20
+ height: 10
+ }
+ Rectangle {
+ objectName: "three"
+ color: "red"
+ width: 40
+ height: 20
+ }
+ }
+}
diff --git a/tests/auto/declarative/layouts/data/vertical.qml b/tests/auto/declarative/layouts/data/vertical.qml
new file mode 100644
index 0000000..856c180
--- /dev/null
+++ b/tests/auto/declarative/layouts/data/vertical.qml
@@ -0,0 +1,26 @@
+import Qt 4.6
+
+Item {
+ width: 640
+ height: 480
+ Column {
+ Rectangle {
+ objectName: "one"
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rectangle {
+ objectName: "two"
+ color: "red"
+ width: 20
+ height: 10
+ }
+ Rectangle {
+ objectName: "three"
+ color: "red"
+ width: 40
+ height: 20
+ }
+ }
+}
diff --git a/tests/auto/declarative/layouts/layouts.pro b/tests/auto/declarative/layouts/layouts.pro
new file mode 100644
index 0000000..f7e7622
--- /dev/null
+++ b/tests/auto/declarative/layouts/layouts.pro
@@ -0,0 +1,6 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_layouts.cpp
+
+# Define SRCDIR equal to test's source directory
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/layouts/tst_layouts.cpp b/tests/auto/declarative/layouts/tst_layouts.cpp
new file mode 100644
index 0000000..d1e6aab
--- /dev/null
+++ b/tests/auto/declarative/layouts/tst_layouts.cpp
@@ -0,0 +1,200 @@
+#include <QtTest/QtTest>
+#include <qlistmodelinterface.h>
+#include <qmlview.h>
+#include <qfxrect.h>
+#include <qmlexpression.h>
+
+class tst_QFxLayouts : public QObject
+{
+ Q_OBJECT
+public:
+ tst_QFxLayouts();
+
+private slots:
+ void test_horizontal();
+ void test_horizontal_spacing();
+ void test_vertical();
+ void test_vertical_spacing();
+ void test_grid();
+ void test_grid_spacing();
+
+private:
+ QmlView *createView(const QString &filename);
+};
+
+tst_QFxLayouts::tst_QFxLayouts()
+{
+}
+
+void tst_QFxLayouts::test_horizontal()
+{
+ QmlView *canvas = createView(SRCDIR "/data/horizontal.qml");
+
+ canvas->execute();
+ qApp->processEvents();
+
+ QFxRect *one = canvas->root()->findChild<QFxRect*>("one");
+ QVERIFY(one != 0);
+
+ QFxRect *two = canvas->root()->findChild<QFxRect*>("two");
+ QVERIFY(two != 0);
+
+ QFxRect *three = canvas->root()->findChild<QFxRect*>("three");
+ QVERIFY(three != 0);
+
+ QCOMPARE(one->x(), 0.0);
+ QCOMPARE(one->y(), 0.0);
+ QCOMPARE(two->x(), 50.0);
+ QCOMPARE(two->y(), 0.0);
+ QCOMPARE(three->x(), 70.0);
+ QCOMPARE(three->y(), 0.0);
+}
+
+void tst_QFxLayouts::test_horizontal_spacing()
+{
+ QmlView *canvas = createView(SRCDIR "/data/horizontal-spacing.qml");
+
+ canvas->execute();
+ qApp->processEvents();
+
+ QFxRect *one = canvas->root()->findChild<QFxRect*>("one");
+ QVERIFY(one != 0);
+
+ QFxRect *two = canvas->root()->findChild<QFxRect*>("two");
+ QVERIFY(two != 0);
+
+ QFxRect *three = canvas->root()->findChild<QFxRect*>("three");
+ QVERIFY(three != 0);
+
+ QCOMPARE(one->x(), 0.0);
+ QCOMPARE(one->y(), 0.0);
+ QCOMPARE(two->x(), 60.0);
+ QCOMPARE(two->y(), 0.0);
+ QCOMPARE(three->x(), 90.0);
+ QCOMPARE(three->y(), 0.0);
+}
+
+void tst_QFxLayouts::test_vertical()
+{
+ QmlView *canvas = createView(SRCDIR "/data/vertical.qml");
+
+ canvas->execute();
+ qApp->processEvents();
+
+ QFxRect *one = canvas->root()->findChild<QFxRect*>("one");
+ QVERIFY(one != 0);
+
+ QFxRect *two = canvas->root()->findChild<QFxRect*>("two");
+ QVERIFY(two != 0);
+
+ QFxRect *three = canvas->root()->findChild<QFxRect*>("three");
+ QVERIFY(three != 0);
+
+ QCOMPARE(one->x(), 0.0);
+ QCOMPARE(one->y(), 0.0);
+ QCOMPARE(two->x(), 0.0);
+ QCOMPARE(two->y(), 50.0);
+ QCOMPARE(three->x(), 0.0);
+ QCOMPARE(three->y(), 60.0);
+}
+
+void tst_QFxLayouts::test_vertical_spacing()
+{
+ QmlView *canvas = createView(SRCDIR "/data/vertical-spacing.qml");
+
+ canvas->execute();
+ qApp->processEvents();
+
+ QFxRect *one = canvas->root()->findChild<QFxRect*>("one");
+ QVERIFY(one != 0);
+
+ QFxRect *two = canvas->root()->findChild<QFxRect*>("two");
+ QVERIFY(two != 0);
+
+ QFxRect *three = canvas->root()->findChild<QFxRect*>("three");
+ QVERIFY(three != 0);
+
+ QCOMPARE(one->x(), 0.0);
+ QCOMPARE(one->y(), 0.0);
+ QCOMPARE(two->x(), 0.0);
+ QCOMPARE(two->y(), 60.0);
+ QCOMPARE(three->x(), 0.0);
+ QCOMPARE(three->y(), 80.0);
+}
+
+void tst_QFxLayouts::test_grid()
+{
+ QmlView *canvas = createView("data/grid.qml");
+
+ canvas->execute();
+ qApp->processEvents();
+
+ QFxRect *one = canvas->root()->findChild<QFxRect*>("one");
+ QVERIFY(one != 0);
+ QFxRect *two = canvas->root()->findChild<QFxRect*>("two");
+ QVERIFY(two != 0);
+ QFxRect *three = canvas->root()->findChild<QFxRect*>("three");
+ QVERIFY(three != 0);
+ QFxRect *four = canvas->root()->findChild<QFxRect*>("four");
+ QVERIFY(four != 0);
+ QFxRect *five = canvas->root()->findChild<QFxRect*>("five");
+ QVERIFY(five != 0);
+
+ QCOMPARE(one->x(), 0.0);
+ QCOMPARE(one->y(), 0.0);
+ QCOMPARE(two->x(), 50.0);
+ QCOMPARE(two->y(), 0.0);
+ QCOMPARE(three->x(), 70.0);
+ QCOMPARE(three->y(), 0.0);
+ QCOMPARE(four->x(), 0.0);
+ QCOMPARE(four->y(), 50.0);
+ QCOMPARE(five->x(), 50.0);
+ QCOMPARE(five->y(), 50.0);
+}
+
+void tst_QFxLayouts::test_grid_spacing()
+{
+ QmlView *canvas = createView("data/grid-spacing.qml");
+
+ canvas->execute();
+ qApp->processEvents();
+
+ QFxRect *one = canvas->root()->findChild<QFxRect*>("one");
+ QVERIFY(one != 0);
+ QFxRect *two = canvas->root()->findChild<QFxRect*>("two");
+ QVERIFY(two != 0);
+ QFxRect *three = canvas->root()->findChild<QFxRect*>("three");
+ QVERIFY(three != 0);
+ QFxRect *four = canvas->root()->findChild<QFxRect*>("four");
+ QVERIFY(four != 0);
+ QFxRect *five = canvas->root()->findChild<QFxRect*>("five");
+ QVERIFY(five != 0);
+
+ QCOMPARE(one->x(), 0.0);
+ QCOMPARE(one->y(), 0.0);
+ QCOMPARE(two->x(), 54.0);
+ QCOMPARE(two->y(), 0.0);
+ QCOMPARE(three->x(), 78.0);
+ QCOMPARE(three->y(), 0.0);
+ QCOMPARE(four->x(), 0.0);
+ QCOMPARE(four->y(), 54.0);
+ QCOMPARE(five->x(), 54.0);
+ QCOMPARE(five->y(), 54.0);
+}
+
+QmlView *tst_QFxLayouts::createView(const QString &filename)
+{
+ QmlView *canvas = new QmlView(0);
+
+ QFile file(filename);
+ file.open(QFile::ReadOnly);
+ QString xml = file.readAll();
+ canvas->setQml(xml, filename);
+
+ return canvas;
+}
+
+
+QTEST_MAIN(tst_QFxLayouts)
+
+#include "tst_layouts.moc"
diff --git a/tests/auto/declarative/listview/data/listview.qml b/tests/auto/declarative/listview/data/listview.qml
new file mode 100644
index 0000000..5083329
--- /dev/null
+++ b/tests/auto/declarative/listview/data/listview.qml
@@ -0,0 +1,45 @@
+import Qt 4.6
+
+Rectangle {
+ width: 240
+ height: 320
+ color: "#ffffff"
+ resources: [
+ Component {
+ id: Delegate
+ Rectangle {
+ id: wrapper
+ objectName: "wrapper"
+ height: 20
+ width: 240
+ Text {
+ text: index
+ }
+ Text {
+ x: 30
+ id: textName
+ objectName: "textName"
+ text: name
+ }
+ Text {
+ x: 120
+ id: textNumber
+ objectName: "textNumber"
+ text: number
+ }
+ Text {
+ x: 200
+ text: wrapper.y
+ }
+ }
+ }
+ ]
+ ListView {
+ id: list
+ objectName: "list"
+ width: 240
+ height: 320
+ model: testModel
+ delegate: Delegate
+ }
+}
diff --git a/tests/auto/declarative/listview/listview.pro b/tests/auto/declarative/listview/listview.pro
new file mode 100644
index 0000000..bf68268
--- /dev/null
+++ b/tests/auto/declarative/listview/listview.pro
@@ -0,0 +1,6 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_listview.cpp
+
+# Define SRCDIR equal to test's source directory
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/listview/tst_listview.cpp b/tests/auto/declarative/listview/tst_listview.cpp
new file mode 100644
index 0000000..1875836
--- /dev/null
+++ b/tests/auto/declarative/listview/tst_listview.cpp
@@ -0,0 +1,524 @@
+#include <QtTest/QtTest>
+#include <qlistmodelinterface.h>
+#include <qmlview.h>
+#include <qfxlistview.h>
+#include <qfxtext.h>
+#include <qmlcontext.h>
+#include <qmlexpression.h>
+
+class tst_QFxListView : public QObject
+{
+ Q_OBJECT
+public:
+ tst_QFxListView();
+
+private slots:
+ // Test both QListModelInterface and QAbstractItemModel model types
+ void qListModelInterface_items();
+ void qAbstractItemModel_items();
+
+ void qListModelInterface_changed();
+ void qAbstractItemModel_changed();
+
+ void qListModelInterface_inserted();
+ void qAbstractItemModel_inserted();
+
+ void qListModelInterface_removed();
+ void qAbstractItemModel_removed();
+
+private:
+ template <class T> void items();
+ template <class T> void changed();
+ template <class T> void inserted();
+ template <class T> void removed();
+ QmlView *createView(const QString &filename);
+ template<typename T>
+ T *findItem(QFxItem *parent, const QString &id, int index=-1);
+ template<typename T>
+ QList<T*> findItems(QFxItem *parent, const QString &objectName);
+};
+
+class TestModel : public QListModelInterface
+{
+ Q_OBJECT
+public:
+ TestModel(QObject *parent = 0) : QListModelInterface(parent) {}
+ ~TestModel() {}
+
+ enum Roles { Name, Number };
+
+ QString name(int index) const { return list.at(index).first; }
+ QString number(int index) const { return list.at(index).second; }
+
+ int count() const { return list.count(); }
+
+ QList<int> roles() const { return QList<int>() << Name << Number; }
+ QString toString(int role) const {
+ switch(role) {
+ case Name:
+ return "name";
+ case Number:
+ return "number";
+ default:
+ return "";
+ }
+ }
+
+ QHash<int, QVariant> data(int index, const QList<int> &roles) const {
+ QHash<int,QVariant> returnHash;
+
+ for (int i = 0; i < roles.size(); ++i) {
+ int role = roles.at(i);
+ QVariant info;
+ switch(role) {
+ case Name:
+ info = list.at(index).first;
+ break;
+ case Number:
+ info = list.at(index).second;
+ break;
+ default:
+ break;
+ }
+ returnHash.insert(role, info);
+ }
+ return returnHash;
+ }
+
+ void addItem(const QString &name, const QString &number) {
+ list.append(QPair<QString,QString>(name, number));
+ emit itemsInserted(list.count()-1, 1);
+ }
+
+ void insertItem(int index, const QString &name, const QString &number) {
+ list.insert(index, QPair<QString,QString>(name, number));
+ emit itemsInserted(index, 1);
+ }
+
+ void removeItem(int index) {
+ list.removeAt(index);
+ emit itemsRemoved(index, 1);
+ }
+
+ void modifyItem(int index, const QString &name, const QString &number) {
+ list[index] = QPair<QString,QString>(name, number);
+ emit itemsChanged(index, 1, roles());
+ }
+
+private:
+ QList<QPair<QString,QString> > list;
+};
+
+
+class TestModel2 : public QAbstractListModel
+{
+public:
+ enum Roles { Name = Qt::UserRole+1, Number = Qt::UserRole+2 };
+
+ TestModel2(QObject *parent=0) : QAbstractListModel(parent) {
+ QHash<int, QByteArray> roles;
+ roles[Name] = "name";
+ roles[Number] = "number";
+ setRoleNames(roles);
+ }
+
+ int rowCount(const QModelIndex &parent=QModelIndex()) const { return list.count(); }
+ QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const {
+ QVariant rv;
+ if (role == Name)
+ rv = list.at(index.row()).first;
+ else if (role == Number)
+ rv = list.at(index.row()).second;
+
+ return rv;
+ }
+
+ int count() const { return rowCount(); }
+ QString name(int index) const { return list.at(index).first; }
+ QString number(int index) const { return list.at(index).second; }
+
+ void addItem(const QString &name, const QString &number) {
+ emit beginInsertRows(QModelIndex(), list.count(), list.count());
+ list.append(QPair<QString,QString>(name, number));
+ emit endInsertRows();
+ }
+
+ void insertItem(int index, const QString &name, const QString &number) {
+ emit beginInsertRows(QModelIndex(), index, index);
+ list.insert(index, QPair<QString,QString>(name, number));
+ emit endInsertRows();
+ }
+
+ void removeItem(int index) {
+ emit beginRemoveRows(QModelIndex(), index, index);
+ list.removeAt(index);
+ emit endRemoveRows();
+ }
+
+ void modifyItem(int idx, const QString &name, const QString &number) {
+ list[idx] = QPair<QString,QString>(name, number);
+ emit dataChanged(index(idx,0), index(idx,0));
+ }
+
+private:
+ QList<QPair<QString,QString> > list;
+};
+
+tst_QFxListView::tst_QFxListView()
+{
+}
+
+template <class T>
+void tst_QFxListView::items()
+{
+ QmlView *canvas = createView(SRCDIR "/data/listview.qml");
+
+ T model;
+ model.addItem("Fred", "12345");
+ model.addItem("John", "2345");
+ model.addItem("Bob", "54321");
+
+ QmlContext *ctxt = canvas->rootContext();
+ ctxt->setContextProperty("testModel", &model);
+
+ canvas->execute();
+ qApp->processEvents();
+
+ QFxFlickable *listview = findItem<QFxFlickable>(canvas->root(), "list");
+ QVERIFY(listview != 0);
+
+ QFxItem *viewport = listview->viewport();
+ QVERIFY(viewport != 0);
+
+ QCOMPARE(viewport->childItems().count(), model.count()+1); // assumes all are visible, +1 for the (default) highlight item
+
+ for (int i = 0; i < model.count(); ++i) {
+ QFxText *name = findItem<QFxText>(viewport, "textName", i);
+ QVERIFY(name != 0);
+ QCOMPARE(name->text(), model.name(i));
+ QFxText *number = findItem<QFxText>(viewport, "textNumber", i);
+ QVERIFY(number != 0);
+ QCOMPARE(number->text(), model.number(i));
+ }
+
+ delete canvas;
+}
+
+template <class T>
+void tst_QFxListView::changed()
+{
+ QmlView *canvas = createView(SRCDIR "/data/listview.qml");
+
+ T model;
+ model.addItem("Fred", "12345");
+ model.addItem("John", "2345");
+ model.addItem("Bob", "54321");
+
+ QmlContext *ctxt = canvas->rootContext();
+ ctxt->setContextProperty("testModel", &model);
+
+ canvas->execute();
+ qApp->processEvents();
+
+ QFxFlickable *listview = findItem<QFxFlickable>(canvas->root(), "list");
+ QVERIFY(listview != 0);
+
+ QFxItem *viewport = listview->viewport();
+ QVERIFY(viewport != 0);
+
+ model.modifyItem(1, "Will", "9876");
+ QFxText *name = findItem<QFxText>(viewport, "textName", 1);
+ QVERIFY(name != 0);
+ QCOMPARE(name->text(), model.name(1));
+ QFxText *number = findItem<QFxText>(viewport, "textNumber", 1);
+ QVERIFY(number != 0);
+ QCOMPARE(number->text(), model.number(1));
+
+ delete canvas;
+}
+
+template <class T>
+void tst_QFxListView::inserted()
+{
+ QmlView *canvas = createView(SRCDIR "/data/listview.qml");
+
+ T model;
+ model.addItem("Fred", "12345");
+ model.addItem("John", "2345");
+ model.addItem("Bob", "54321");
+
+ QmlContext *ctxt = canvas->rootContext();
+ ctxt->setContextProperty("testModel", &model);
+
+ canvas->execute();
+ qApp->processEvents();
+
+ QFxListView *listview = findItem<QFxListView>(canvas->root(), "list");
+ QVERIFY(listview != 0);
+
+ QFxItem *viewport = listview->viewport();
+ QVERIFY(viewport != 0);
+
+ model.insertItem(1, "Will", "9876");
+
+ // let transitions settle.
+ QTest::qWait(1000);
+
+ QCOMPARE(viewport->childItems().count(), model.count()+1); // assumes all are visible, +1 for the (default) highlight item
+
+ QFxText *name = findItem<QFxText>(viewport, "textName", 1);
+ QVERIFY(name != 0);
+ QCOMPARE(name->text(), model.name(1));
+ QFxText *number = findItem<QFxText>(viewport, "textNumber", 1);
+ QVERIFY(number != 0);
+ QCOMPARE(number->text(), model.number(1));
+
+ // Confirm items positioned correctly
+ for (int i = 0; i < model.count(); ++i) {
+ QFxItem *item = findItem<QFxItem>(viewport, "wrapper", i);
+ QVERIFY(item->y() == i*20);
+ }
+
+ model.insertItem(0, "Foo", "1111"); // zero index, and current item
+
+ // let transitions settle.
+ QTest::qWait(1000);
+
+ QCOMPARE(viewport->childItems().count(), model.count()+1); // assumes all are visible, +1 for the (default) highlight item
+
+ name = findItem<QFxText>(viewport, "textName", 0);
+ QVERIFY(name != 0);
+ QCOMPARE(name->text(), model.name(0));
+ number = findItem<QFxText>(viewport, "textNumber", 0);
+ QVERIFY(number != 0);
+ QCOMPARE(number->text(), model.number(0));
+
+ QCOMPARE(listview->currentIndex(), 1);
+
+ // Confirm items positioned correctly
+ for (int i = 0; i < model.count(); ++i) {
+ QFxItem *item = findItem<QFxItem>(viewport, "wrapper", i);
+ QVERIFY(item->y() == i*20);
+ }
+
+ delete canvas;
+}
+
+template <class T>
+void tst_QFxListView::removed()
+{
+ QmlView *canvas = createView(SRCDIR "/data/listview.qml");
+
+ T model;
+ for (int i = 0; i < 30; i++)
+ model.addItem("Item" + QString::number(i), "");
+
+ QmlContext *ctxt = canvas->rootContext();
+ ctxt->setContextProperty("testModel", &model);
+
+ canvas->execute();
+ qApp->processEvents();
+
+ QFxListView *listview = findItem<QFxListView>(canvas->root(), "list");
+ QVERIFY(listview != 0);
+
+ QFxItem *viewport = listview->viewport();
+ QVERIFY(viewport != 0);
+
+ model.removeItem(1);
+
+ // let transitions settle.
+ QTest::qWait(1000);
+
+ QFxText *name = findItem<QFxText>(viewport, "textName", 1);
+ QVERIFY(name != 0);
+ QCOMPARE(name->text(), model.name(1));
+ QFxText *number = findItem<QFxText>(viewport, "textNumber", 1);
+ QVERIFY(number != 0);
+ QCOMPARE(number->text(), model.number(1));
+
+ // Confirm items positioned correctly
+ int itemCount = findItems<QFxItem>(viewport, "wrapper").count();
+ for (int i = 0; i < model.count() && i < itemCount; ++i) {
+ QFxItem *item = findItem<QFxItem>(viewport, "wrapper", i);
+ if (!item) qWarning() << "Item" << i << "not found";
+ QVERIFY(item);
+ QVERIFY(item->y() == i*20);
+ }
+
+ // Remove first item (which is the current item);
+ model.removeItem(0); // post: top item starts at 20
+
+ // let transitions settle.
+ QTest::qWait(1000);
+
+ name = findItem<QFxText>(viewport, "textName", 0);
+ QVERIFY(name != 0);
+ QCOMPARE(name->text(), model.name(0));
+ number = findItem<QFxText>(viewport, "textNumber", 0);
+ QVERIFY(number != 0);
+ QCOMPARE(number->text(), model.number(0));
+
+ // Confirm items positioned correctly
+ itemCount = findItems<QFxItem>(viewport, "wrapper").count();
+ for (int i = 0; i < model.count() && i < itemCount; ++i) {
+ QFxItem *item = findItem<QFxItem>(viewport, "wrapper", i);
+ if (!item) qWarning() << "Item" << i << "not found";
+ QVERIFY(item);
+ QCOMPARE(item->y(),i*20.0 + 20.0);
+ }
+
+ // Remove items not visible
+ model.removeItem(18);
+ // let transitions settle.
+ QTest::qWait(1000);
+
+ // Confirm items positioned correctly
+ itemCount = findItems<QFxItem>(viewport, "wrapper").count();
+ for (int i = 0; i < model.count() && i < itemCount; ++i) {
+ QFxItem *item = findItem<QFxItem>(viewport, "wrapper", i);
+ if (!item) qWarning() << "Item" << i << "not found";
+ QVERIFY(item);
+ QCOMPARE(item->y(),i*20.0+20.0);
+ }
+
+ // Remove items before visible
+ listview->setViewportY(80);
+ listview->setCurrentIndex(10);
+
+ model.removeItem(1); // post: top item will be at 40
+ // let transitions settle.
+ QTest::qWait(1000);
+
+ // Confirm items positioned correctly
+ for (int i = 2; i < 18; ++i) {
+ QFxItem *item = findItem<QFxItem>(viewport, "wrapper", i);
+ if (!item) qWarning() << "Item" << i << "not found";
+ QVERIFY(item);
+ QCOMPARE(item->y(),40+i*20.0);
+ }
+
+ listview->setViewportY(40); // That's the top now
+ // let transitions settle.
+ QTest::qWait(1000);
+
+ // Confirm items positioned correctly
+ itemCount = findItems<QFxItem>(viewport, "wrapper").count();
+ for (int i = 0; i < model.count() && i < itemCount; ++i) {
+ QFxItem *item = findItem<QFxItem>(viewport, "wrapper", i);
+ if (!item) qWarning() << "Item" << i << "not found";
+ QVERIFY(item);
+ QCOMPARE(item->y(),40+i*20.0);
+ }
+
+ delete canvas;
+}
+
+void tst_QFxListView::qListModelInterface_items()
+{
+ items<TestModel>();
+}
+
+void tst_QFxListView::qAbstractItemModel_items()
+{
+ items<TestModel2>();
+}
+
+void tst_QFxListView::qListModelInterface_changed()
+{
+ changed<TestModel>();
+}
+
+void tst_QFxListView::qAbstractItemModel_changed()
+{
+ changed<TestModel2>();
+}
+
+void tst_QFxListView::qListModelInterface_inserted()
+{
+ inserted<TestModel>();
+}
+
+void tst_QFxListView::qAbstractItemModel_inserted()
+{
+ inserted<TestModel2>();
+}
+
+void tst_QFxListView::qListModelInterface_removed()
+{
+ removed<TestModel>();
+}
+
+void tst_QFxListView::qAbstractItemModel_removed()
+{
+ removed<TestModel2>();
+}
+
+QmlView *tst_QFxListView::createView(const QString &filename)
+{
+ QmlView *canvas = new QmlView(0);
+ canvas->setFixedSize(240,320);
+
+ QFile file(filename);
+ file.open(QFile::ReadOnly);
+ QString qml = file.readAll();
+ canvas->setQml(qml, filename);
+
+ return canvas;
+}
+
+/*
+ Find an item with the specified objectName. If index is supplied then the
+ item must also evaluate the {index} expression equal to index
+*/
+template<typename T>
+T *tst_QFxListView::findItem(QFxItem *parent, const QString &objectName, int index)
+{
+ const QMetaObject &mo = T::staticMetaObject;
+ //qDebug() << parent->QGraphicsObject::children().count() << "children";
+ for (int i = 0; i < parent->QGraphicsObject::children().count(); ++i) {
+ QFxItem *item = qobject_cast<QFxItem*>(parent->QGraphicsObject::children().at(i));
+ if(!item)
+ continue;
+ //qDebug() << "try" << item;
+ if (mo.cast(item) && (objectName.isEmpty() || item->objectName() == objectName)) {
+ if (index != -1) {
+ QmlExpression e(qmlContext(item), "index", item);
+ e.setTrackChange(false);
+ if (e.value().toInt() == index)
+ return static_cast<T*>(item);
+ } else {
+ return static_cast<T*>(item);
+ }
+ }
+ item = findItem<T>(item, objectName, index);
+ if (item)
+ return static_cast<T*>(item);
+ }
+
+ return 0;
+}
+
+template<typename T>
+QList<T*> tst_QFxListView::findItems(QFxItem *parent, const QString &objectName)
+{
+ QList<T*> items;
+ const QMetaObject &mo = T::staticMetaObject;
+ //qDebug() << parent->QGraphicsObject::children().count() << "children";
+ for (int i = 0; i < parent->QGraphicsObject::children().count(); ++i) {
+ QFxItem *item = qobject_cast<QFxItem*>(parent->QGraphicsObject::children().at(i));
+ if(!item)
+ continue;
+ //qDebug() << "try" << item;
+ if (mo.cast(item) && (objectName.isEmpty() || item->objectName() == objectName))
+ items.append(static_cast<T*>(item));
+ items += findItems<T>(item, objectName);
+ }
+
+ return items;
+}
+
+
+QTEST_MAIN(tst_QFxListView)
+
+#include "tst_listview.moc"
diff --git a/tests/auto/declarative/numberformatter/numberformatter.pro b/tests/auto/declarative/numberformatter/numberformatter.pro
new file mode 100644
index 0000000..ba391ed
--- /dev/null
+++ b/tests/auto/declarative/numberformatter/numberformatter.pro
@@ -0,0 +1,3 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_numberformatter.cpp
diff --git a/tests/auto/declarative/numberformatter/tst_numberformatter.cpp b/tests/auto/declarative/numberformatter/tst_numberformatter.cpp
new file mode 100644
index 0000000..412557f
--- /dev/null
+++ b/tests/auto/declarative/numberformatter/tst_numberformatter.cpp
@@ -0,0 +1,179 @@
+#include <qtest.h>
+#include <QDebug>
+#include <QtDeclarative/qmlengine.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtDeclarative/qnumberformat.h>
+#include <QtDeclarative/qmlnumberformatter.h>
+
+class tst_numberformat : public QObject
+{
+ Q_OBJECT
+public:
+ tst_numberformat();
+
+ void init() {}
+ void initTestCase() {}
+
+ void cleanup() {}
+ void cleanupTestCase() {}
+
+private slots:
+ void text_data();
+ void text();
+
+private:
+ QStringList strings;
+ QStringList formats;
+ QStringList texts;
+};
+
+tst_numberformat::tst_numberformat()
+{
+ strings << "100.0"
+ << "12345"
+ << "1234567"
+ << "0.123"
+ << "0.9999"
+ << "0.989"
+ << "1"
+ << "1.0"
+ << "1.01";
+
+ formats << ""
+ << "0000"
+ << "0000.00"
+ << "##"
+ << "##.##"
+ << "#0.00#"
+ << "##,##0.##"
+ << "(000) 000 - 000"
+ << "00000,000.0000";
+
+ //US locale only.
+ texts << "100.000000"
+ << "12345.000000"
+ << "1234567.000000"
+ << "0.123000"
+ << "0.999900"
+ << "0.989000"
+ << "1.000000"
+ << "1.000000"
+ << "1.010000" //end ""
+ << "0100"
+ << "12345"
+ << "1234567"
+ << "0000"
+ << "0001"
+ << "0001"
+ << "0001"
+ << "0001"
+ << "0001" // end "0000"
+ << "0100.00"
+ << "12345.00"
+ << "1234567.00"
+ << "0000.12"
+ << "0001.00"
+ << "0000.99"
+ << "0001.00"
+ << "0001.00"
+ << "0001.01" // end "0000.00"
+ << "100"
+ << "12345"
+ << "1234567"
+ << "0"
+ << "1"
+ << "1"
+ << "1"
+ << "1"
+ << "1" // end "##"
+ << "100"//start "##.##"
+ << "12345"
+ << "1234567"
+ << "0.12"
+ << "1"
+ << "0.99"
+ << "1"
+ << "1"
+ << "1.01" // end "##.##" -- ### EXPECT FAIL ### QNumberFormat::formatDecimal() bug
+ << "100.00" //start "#0.00#"
+ << "12345.00"
+ << "1234567.00"
+ << "0.123"
+ << "1.00"
+ << "0.989"
+ << "1.00"
+ << "1.00"
+ << "1.01" //end "#0.00#"
+ << "100" //start "##,##0.##"
+ << "12,345"
+ << "1,234,567"
+ << "0.12"
+ << "1"
+ << "0.99"
+ << "1"
+ << "1"
+ << "1.01" //end "##,##0.##" -- ### EXPECT FAIL ### QNumberFormat::formatDecimal() bug
+ << "(000) 000 - 100" //start "(000) 000 - 000"
+ << "(000) 012 - 345"
+ << "(001) 234 - 567"
+ << "(000) 000 - 000"
+ << "(000) 000 - 001"
+ << "(000) 000 - 001"
+ << "(000) 000 - 001"
+ << "(000) 000 - 001"
+ << "(000) 000 - 001" // end "(000) 000 - 000"
+ << "00,000,100.0000" // start "00000,000.0000"
+ << "00,012,345.0000"
+ << "01,234,567.0000"
+ << "00,000,000.1230"
+ << "00,000,000.9999"
+ << "00,000,000.9890"
+ << "00,000,001.0000"
+ << "00,000,001.0000"
+ << "00,000,001.0100"; // end
+
+ qDebug() << "strings.size()" << strings.size()
+ << "\nformats.size()" << formats.size()
+ << "texts.size()" << texts.size();
+}
+
+void tst_numberformat::text_data()
+{
+ QTest::addColumn<QString>("string");
+ QTest::addColumn<QString>("format");
+ QTest::addColumn<QString>("text");
+
+ for (int j=0; j < formats.size(); j++)
+ {
+ for (int i=0; i < strings.size(); i++)
+ {
+ QTest::newRow(QString("%1, %2").arg(strings.at(i)).arg(formats.at(j)).toAscii())
+ << strings.at(i) << formats.at(j) << texts.at(j*formats.size()+i);
+ }
+ }
+
+}
+
+void tst_numberformat::text()
+{
+ QFETCH(QString, string);
+ QFETCH(QString, format);
+ QFETCH(QString, text);
+
+ QString componentStr = QString("import Qt 4.6\nNumberFormatter { number: ") + string + QString("; format: \"") + format + QString("\" }");
+
+ QmlEngine engine;
+ QmlComponent formatterComponent(&engine, componentStr.toAscii(), QUrl("file:///"));
+ if(formatterComponent.isError())
+ qDebug() << formatterComponent.errors();
+ QVERIFY(formatterComponent.isReady());
+ QmlNumberFormatter *formatter = qobject_cast<QmlNumberFormatter*>(formatterComponent.create());
+ QVERIFY(formatter != 0);
+
+ QCOMPARE(formatter->format(), format);
+ QCOMPARE(formatter->text(), text);
+}
+
+QTEST_MAIN(tst_numberformat)
+
+#include "tst_numberformatter.moc"
diff --git a/tests/auto/declarative/pathview/data/pathview.qml b/tests/auto/declarative/pathview/data/pathview.qml
new file mode 100644
index 0000000..be5673c
--- /dev/null
+++ b/tests/auto/declarative/pathview/data/pathview.qml
@@ -0,0 +1,66 @@
+import Qt 4.6
+
+Rectangle {
+ width: 240
+ height: 320
+ color: "#ffffff"
+ resources: [
+ Component {
+ id: Delegate
+ Rectangle {
+ id: wrapper
+ objectName: "wrapper"
+ height: 20
+ width: 60
+ color: "white"
+ border.color: "black"
+ Text {
+ text: index
+ }
+ Text {
+ x: 20
+ id: textName
+ objectName: "textName"
+ text: name
+ }
+ Text {
+ x: 40
+ id: textNumber
+ objectName: "textNumber"
+ text: number
+ }
+ }
+ }
+ ]
+ PathView {
+ id: view
+ objectName: "view"
+ width: 240
+ height: 320
+ model: testModel
+ delegate: Delegate
+ snapPosition: 0.01
+ path: Path {
+ startY: 120
+ startX: 160
+ PathQuad {
+ y: 120
+ x: 80
+ controlY: 330
+ controlX: 100
+ }
+ PathLine {
+ y: 160
+ x: 20
+ }
+ PathCubic {
+ y: 120
+ x: 160
+ control1Y: 0
+ control1X: 100
+ control2Y: 000
+ control2X: 200
+ }
+ }
+ }
+}
diff --git a/tests/auto/declarative/pathview/pathview.pro b/tests/auto/declarative/pathview/pathview.pro
new file mode 100644
index 0000000..28bbe49
--- /dev/null
+++ b/tests/auto/declarative/pathview/pathview.pro
@@ -0,0 +1,6 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_pathview.cpp
+
+# Define SRCDIR equal to test's source directory
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/pathview/tst_pathview.cpp b/tests/auto/declarative/pathview/tst_pathview.cpp
new file mode 100644
index 0000000..6e670bf
--- /dev/null
+++ b/tests/auto/declarative/pathview/tst_pathview.cpp
@@ -0,0 +1,261 @@
+#include <QtTest/QtTest>
+#include <qlistmodelinterface.h>
+#include <qmlview.h>
+#include <qfxpathview.h>
+#include <qfxtext.h>
+#include <qfxrect.h>
+#include <qmlcontext.h>
+#include <qmlexpression.h>
+
+class tst_QFxPathView : public QObject
+{
+ Q_OBJECT
+public:
+ tst_QFxPathView();
+
+private slots:
+ void items();
+ void pathMoved();
+ void limitedItems();
+
+private:
+ QmlView *createView(const QString &filename);
+ template<typename T>
+ T *findItem(QFxItem *parent, const QString &id, int index=-1);
+};
+
+class TestModel : public QListModelInterface
+{
+ Q_OBJECT
+public:
+ TestModel(QObject *parent = 0) : QListModelInterface(parent) {}
+ ~TestModel() {}
+
+ enum Roles { Name, Number };
+
+ QString name(int index) const { return list.at(index).first; }
+ QString number(int index) const { return list.at(index).second; }
+
+ int count() const { return list.count(); }
+
+ QList<int> roles() const { return QList<int>() << Name << Number; }
+ QString toString(int role) const {
+ switch(role) {
+ case Name:
+ return "name";
+ case Number:
+ return "number";
+ default:
+ return "";
+ }
+ }
+
+ QHash<int, QVariant> data(int index, const QList<int> &roles) const {
+ QHash<int,QVariant> returnHash;
+
+ for (int i = 0; i < roles.size(); ++i) {
+ int role = roles.at(i);
+ QVariant info;
+ switch(role) {
+ case Name:
+ info = list.at(index).first;
+ break;
+ case Number:
+ info = list.at(index).second;
+ break;
+ default:
+ break;
+ }
+ returnHash.insert(role, info);
+ }
+ return returnHash;
+ }
+
+ void addItem(const QString &name, const QString &number) {
+ list.append(QPair<QString,QString>(name, number));
+ emit itemsInserted(list.count()-1, 1);
+ }
+
+ void insertItem(int index, const QString &name, const QString &number) {
+ list.insert(index, QPair<QString,QString>(name, number));
+ emit itemsInserted(index, 1);
+ }
+
+ void removeItem(int index) {
+ list.removeAt(index);
+ emit itemsRemoved(index, 1);
+ }
+
+ void modifyItem(int index, const QString &name, const QString &number) {
+ list[index] = QPair<QString,QString>(name, number);
+ emit itemsChanged(index, 1, roles());
+ }
+
+private:
+ QList<QPair<QString,QString> > list;
+};
+
+tst_QFxPathView::tst_QFxPathView()
+{
+}
+
+void tst_QFxPathView::items()
+{
+ QmlView *canvas = createView(SRCDIR "/data/pathview.qml");
+
+ TestModel model;
+ model.addItem("Fred", "12345");
+ model.addItem("John", "2345");
+ model.addItem("Bob", "54321");
+
+ QmlContext *ctxt = canvas->rootContext();
+ ctxt->setContextProperty("testModel", &model);
+
+ canvas->execute();
+ qApp->processEvents();
+
+ QFxPathView *pathview = findItem<QFxPathView>(canvas->root(), "view");
+ QVERIFY(pathview != 0);
+
+ QCOMPARE(pathview->childItems().count(), model.count()); // assumes all are visible
+
+ for (int i = 0; i < model.count(); ++i) {
+ QFxText *name = findItem<QFxText>(pathview, "textName", i);
+ QVERIFY(name != 0);
+ QCOMPARE(name->text(), model.name(i));
+ QFxText *number = findItem<QFxText>(pathview, "textNumber", i);
+ QVERIFY(number != 0);
+ QCOMPARE(number->text(), model.number(i));
+ }
+
+ delete canvas;
+}
+
+void tst_QFxPathView::pathMoved()
+{
+ QmlView *canvas = createView(SRCDIR "/data/pathview.qml");
+
+ TestModel model;
+ model.addItem("Ben", "12345");
+ model.addItem("Bohn", "2345");
+ model.addItem("Bob", "54321");
+ model.addItem("Bill", "4321");
+
+ QmlContext *ctxt = canvas->rootContext();
+ ctxt->setContextProperty("testModel", &model);
+
+ canvas->execute();
+ qApp->processEvents();
+
+ QFxPathView *pathview = findItem<QFxPathView>(canvas->root(), "view");
+ QVERIFY(pathview != 0);
+
+ QFxRect *firstItem = findItem<QFxRect>(pathview, "wrapper", 0);
+ QVERIFY(firstItem);
+ QFxPath *path = qobject_cast<QFxPath*>(pathview->path());
+ QVERIFY(path);
+ QPointF start = path->pointAt(0.0);
+ QPointF offset;//Center of item is at point, but pos is from corner
+ offset.setX(firstItem->width()/2);
+ offset.setY(firstItem->height()/2);
+ QCOMPARE(firstItem->pos() + offset, start);
+ pathview->setOffset(10);
+ QTest::qWait(1000);//Moving is animated?
+
+ for(int i=0; i<model.count(); i++){
+ QFxRect *curItem = findItem<QFxRect>(pathview, "wrapper", i);
+ QCOMPARE(curItem->pos() + offset, path->pointAt(0.1 + i*0.25));
+ }
+
+ pathview->setOffset(100);
+ QTest::qWait(1000);//Moving is animated?
+ QCOMPARE(firstItem->pos() + offset, start);
+
+ delete canvas;
+}
+
+void tst_QFxPathView::limitedItems()
+{
+ QmlView *canvas = createView(SRCDIR "/data/pathview.qml");
+
+ TestModel model;
+ for(int i=0; i<100; i++)
+ model.addItem("Bob", QString::number(i));
+
+ QmlContext *ctxt = canvas->rootContext();
+ ctxt->setContextProperty("testModel", &model);
+
+ canvas->execute();
+ qApp->processEvents();
+
+ QFxPathView *pathview = findItem<QFxPathView>(canvas->root(), "view");
+ QVERIFY(pathview != 0);
+
+ pathview->setPathItemCount(10);
+ QCOMPARE(pathview->pathItemCount(), 10);
+
+ QFxRect *testItem = findItem<QFxRect>(pathview, "wrapper", 0);
+ QVERIFY(testItem != 0);
+ testItem = findItem<QFxRect>(pathview, "wrapper", 9);
+ QVERIFY(testItem != 0);
+ testItem = findItem<QFxRect>(pathview, "wrapper", 10);
+ QVERIFY(testItem == 0);
+
+ pathview->setCurrentIndex(50);
+ QTest::qWait(5100);//Moving is animated and it's travelling far - should be reconsidered.
+ testItem = findItem<QFxRect>(pathview, "wrapper", 0);
+ QVERIFY(testItem == 0);
+ testItem = findItem<QFxRect>(pathview, "wrapper", 1);
+ QVERIFY(testItem == 0);
+ testItem = findItem<QFxRect>(pathview, "wrapper", 9);
+ QVERIFY(testItem == 0);
+ testItem = findItem<QFxRect>(pathview, "wrapper", 50);
+ QVERIFY(testItem != 0);
+}
+
+QmlView *tst_QFxPathView::createView(const QString &filename)
+{
+ QmlView *canvas = new QmlView(0);
+ canvas->setFixedSize(240,320);
+
+ QFile file(filename);
+ file.open(QFile::ReadOnly);
+ QString qml = file.readAll();
+ canvas->setQml(qml, filename);
+
+ return canvas;
+}
+
+/*
+ Find an item with the specified objectName. If index is supplied then the
+ item must also evaluate the {index} expression equal to index
+*/
+template<typename T>
+T *tst_QFxPathView::findItem(QFxItem *parent, const QString &objectName, int index)
+{
+ const QMetaObject &mo = T::staticMetaObject;
+ for (int i = 0; i < parent->children().count(); ++i) {
+ QFxItem *item = qobject_cast<QFxItem*>(parent->children().at(i));
+ if(!item)
+ continue;
+ if (mo.cast(item) && (objectName.isEmpty() || item->objectName() == objectName)) {
+ if (index != -1) {
+ QmlExpression e(qmlContext(item), "index", item);
+ e.setTrackChange(false);
+ if (e.value().toInt() == index)
+ return static_cast<T*>(item);
+ } else {
+ return static_cast<T*>(item);
+ }
+ }
+ item = findItem<T>(item, objectName, index);
+ if (item)
+ return static_cast<T*>(item);
+ }
+
+ return 0;
+}
+
+QTEST_MAIN(tst_QFxPathView)
+
+#include "tst_pathview.moc"
diff --git a/tests/auto/declarative/qfxloader/NoResize.qml b/tests/auto/declarative/qfxloader/NoResize.qml
new file mode 100644
index 0000000..cfbb55a
--- /dev/null
+++ b/tests/auto/declarative/qfxloader/NoResize.qml
@@ -0,0 +1,7 @@
+import Qt 4.6
+
+Loader {
+ resizeMode: "NoResize"
+ width: 200; height: 80
+ source: "Rect120x60.qml"
+}
diff --git a/tests/auto/declarative/qfxloader/Rect120x60.qml b/tests/auto/declarative/qfxloader/Rect120x60.qml
new file mode 100644
index 0000000..aa4b0c2
--- /dev/null
+++ b/tests/auto/declarative/qfxloader/Rect120x60.qml
@@ -0,0 +1,6 @@
+import Qt 4.6
+
+Rectangle {
+ width: 120
+ height:60
+}
diff --git a/tests/auto/declarative/qfxloader/SetSourceComponent.qml b/tests/auto/declarative/qfxloader/SetSourceComponent.qml
new file mode 100644
index 0000000..c5dd7ff
--- /dev/null
+++ b/tests/auto/declarative/qfxloader/SetSourceComponent.qml
@@ -0,0 +1,6 @@
+import Qt 4.6
+
+Item {
+ Component { id: Comp; Rectangle { width: 120; height: 60 } }
+ Loader { sourceComponent: Comp }
+}
diff --git a/tests/auto/declarative/qfxloader/SizeToItem.qml b/tests/auto/declarative/qfxloader/SizeToItem.qml
new file mode 100644
index 0000000..b52fa03
--- /dev/null
+++ b/tests/auto/declarative/qfxloader/SizeToItem.qml
@@ -0,0 +1,6 @@
+import Qt 4.6
+
+Loader {
+ resizeMode: "SizeLoaderToItem"
+ source: "Rect120x60.qml"
+}
diff --git a/tests/auto/declarative/qfxloader/SizeToLoader.qml b/tests/auto/declarative/qfxloader/SizeToLoader.qml
new file mode 100644
index 0000000..1a107e1
--- /dev/null
+++ b/tests/auto/declarative/qfxloader/SizeToLoader.qml
@@ -0,0 +1,7 @@
+import Qt 4.6
+
+Loader {
+ resizeMode: "SizeItemToLoader"
+ width: 200; height: 80
+ source: "Rect120x60.qml"
+}
diff --git a/tests/auto/declarative/qfxloader/qfxloader.pro b/tests/auto/declarative/qfxloader/qfxloader.pro
new file mode 100644
index 0000000..643c18c
--- /dev/null
+++ b/tests/auto/declarative/qfxloader/qfxloader.pro
@@ -0,0 +1,5 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative gui
+SOURCES += tst_qfxloader.cpp
+
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/qfxloader/tst_qfxloader.cpp b/tests/auto/declarative/qfxloader/tst_qfxloader.cpp
new file mode 100644
index 0000000..2109898
--- /dev/null
+++ b/tests/auto/declarative/qfxloader/tst_qfxloader.cpp
@@ -0,0 +1,103 @@
+#include <qtest.h>
+#include <QtDeclarative/qmlengine.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtDeclarative/qfxloader.h>
+
+class tst_qfxloader : public QObject
+
+{
+ Q_OBJECT
+public:
+ tst_qfxloader();
+
+private slots:
+ void url();
+ void component();
+ void sizeLoaderToItem();
+ void sizeItemToLoader();
+ void noResize();
+
+private:
+ QmlEngine engine;
+};
+
+/*
+inline QUrl TEST_FILE(const QString &filename)
+{
+ QFileInfo fileInfo(__FILE__);
+ return QUrl::fromLocalFile(fileInfo.absoluteDir().filePath(filename));
+}
+
+inline QUrl TEST_FILE(const char *filename)
+{
+ return TEST_FILE(QLatin1String(filename));
+}
+*/
+
+tst_qfxloader::tst_qfxloader()
+{
+}
+
+void tst_qfxloader::url()
+{
+ QmlComponent component(&engine, QByteArray("import Qt 4.6\nLoader { source: \"Rect120x60.qml\" }"), QUrl("file://" SRCDIR "/"));
+ QFxLoader *loader = qobject_cast<QFxLoader*>(component.create());
+ QVERIFY(loader != 0);
+ QVERIFY(loader->item());
+ QCOMPARE(loader->progress(), 1.0);
+ QCOMPARE(static_cast<QGraphicsItem*>(loader)->children().count(), 1);
+}
+
+void tst_qfxloader::component()
+{
+ QmlComponent component(&engine, QUrl("file://" SRCDIR "/SetSourceComponent.qml"));
+ QFxItem *item = qobject_cast<QFxItem*>(component.create());
+ QVERIFY(item);
+
+ QFxLoader *loader = qobject_cast<QFxLoader*>(item->QGraphicsObject::children().at(1));
+ QVERIFY(loader);
+ QVERIFY(loader->item());
+ QCOMPARE(loader->progress(), 1.0);
+ QCOMPARE(static_cast<QGraphicsItem*>(loader)->children().count(), 1);
+}
+
+void tst_qfxloader::sizeLoaderToItem()
+{
+ QmlComponent component(&engine, QUrl("file://" SRCDIR "/SizeToItem.qml"));
+ QFxLoader *loader = qobject_cast<QFxLoader*>(component.create());
+ QVERIFY(loader != 0);
+ QCOMPARE(loader->width(), 120.0);
+ QCOMPARE(loader->height(), 60.0);
+}
+
+void tst_qfxloader::sizeItemToLoader()
+{
+ QmlComponent component(&engine, QUrl("file://" SRCDIR "/SizeToLoader.qml"));
+ QFxLoader *loader = qobject_cast<QFxLoader*>(component.create());
+ QVERIFY(loader != 0);
+ QCOMPARE(loader->width(), 200.0);
+ QCOMPARE(loader->height(), 80.0);
+
+ QFxItem *rect = loader->item();
+ QVERIFY(rect);
+ QCOMPARE(rect->width(), 200.0);
+ QCOMPARE(rect->height(), 80.0);
+}
+
+void tst_qfxloader::noResize()
+{
+ QmlComponent component(&engine, QUrl("file://" SRCDIR "/NoResize.qml"));
+ QFxLoader *loader = qobject_cast<QFxLoader*>(component.create());
+ QVERIFY(loader != 0);
+ QCOMPARE(loader->width(), 200.0);
+ QCOMPARE(loader->height(), 80.0);
+
+ QFxItem *rect = loader->item();
+ QVERIFY(rect);
+ QCOMPARE(rect->width(), 120.0);
+ QCOMPARE(rect->height(), 60.0);
+}
+
+QTEST_MAIN(tst_qfxloader)
+
+#include "tst_qfxloader.moc"
diff --git a/tests/auto/declarative/qfxpixmapcache/data/exists.png b/tests/auto/declarative/qfxpixmapcache/data/exists.png
new file mode 100644
index 0000000..399bd0b
--- /dev/null
+++ b/tests/auto/declarative/qfxpixmapcache/data/exists.png
Binary files differ
diff --git a/tests/auto/declarative/qfxpixmapcache/data/exists1.png b/tests/auto/declarative/qfxpixmapcache/data/exists1.png
new file mode 100644
index 0000000..399bd0b
--- /dev/null
+++ b/tests/auto/declarative/qfxpixmapcache/data/exists1.png
Binary files differ
diff --git a/tests/auto/declarative/qfxpixmapcache/data/exists2.png b/tests/auto/declarative/qfxpixmapcache/data/exists2.png
new file mode 100644
index 0000000..399bd0b
--- /dev/null
+++ b/tests/auto/declarative/qfxpixmapcache/data/exists2.png
Binary files differ
diff --git a/tests/auto/declarative/qfxpixmapcache/qfxpixmapcache.pro b/tests/auto/declarative/qfxpixmapcache/qfxpixmapcache.pro
new file mode 100644
index 0000000..e9b0417
--- /dev/null
+++ b/tests/auto/declarative/qfxpixmapcache/qfxpixmapcache.pro
@@ -0,0 +1,9 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+QT += network
+SOURCES += tst_qfxpixmapcache.cpp
+HEADERS =
+macx:CONFIG -= app_bundle
+
+# QMAKE_CXXFLAGS = -fprofile-arcs -ftest-coverage
+# LIBS += -lgcov
diff --git a/tests/auto/declarative/qfxpixmapcache/tst_qfxpixmapcache.cpp b/tests/auto/declarative/qfxpixmapcache/tst_qfxpixmapcache.cpp
new file mode 100644
index 0000000..5e24831
--- /dev/null
+++ b/tests/auto/declarative/qfxpixmapcache/tst_qfxpixmapcache.cpp
@@ -0,0 +1,235 @@
+#include <qtest.h>
+#include <QtTest/QtTest>
+#include <QtDeclarative/qfxpixmapcache.h>
+#include <QtDeclarative/qmlengine.h>
+#include <QNetworkReply>
+
+// These don't let normal people run tests!
+//#include "../network-settings.h"
+
+class tst_qfxpixmapcache : public QObject
+{
+ Q_OBJECT
+public:
+ tst_qfxpixmapcache() :
+ thisfile("file://" __FILE__)
+ {
+ }
+
+private slots:
+ void single();
+ void single_data();
+ void parallel();
+ void parallel_data();
+
+private:
+ QmlEngine engine;
+ QUrl thisfile;
+};
+
+
+static int slotters=0;
+
+class Slotter : public QObject
+{
+ Q_OBJECT
+public:
+ Slotter()
+ {
+ gotslot = false;
+ slotters++;
+ }
+ bool gotslot;
+
+public slots:
+ void got()
+ {
+ gotslot = true;
+ --slotters;
+ if (slotters==0)
+ QTestEventLoop::instance().exitLoop();
+ }
+};
+
+#ifndef QT_NO_LOCALFILE_OPTIMIZED_QML
+static const bool localfile_optimized = true;
+#else
+static const bool localfile_optimized = false;
+#endif
+
+void tst_qfxpixmapcache::single_data()
+{
+ // Note, since QFxPixmapCache is shared, tests affect each other!
+ // so use different files fore all test functions.
+
+ QTest::addColumn<QUrl>("target");
+ QTest::addColumn<bool>("incache");
+ QTest::addColumn<bool>("exists");
+ QTest::addColumn<bool>("neterror");
+
+ // File URLs are optimized
+ QTest::newRow("local") << thisfile.resolved(QUrl("data/exists.png")) << localfile_optimized << true << false;
+ QTest::newRow("local") << thisfile.resolved(QUrl("data/notexists.png")) << localfile_optimized << false << false;
+ QTest::newRow("remote") << QUrl("http://qt.nokia.com/logo.png") << false << true << false;
+ QTest::newRow("remote") << QUrl("http://qt.nokia.com/thereisnologo.png") << false << false << true;
+}
+
+void tst_qfxpixmapcache::single()
+{
+ QFETCH(QUrl, target);
+ QFETCH(bool, incache);
+ QFETCH(bool, exists);
+ QFETCH(bool, neterror);
+
+ if (neterror) {
+ QString expected = "Network error loading QUrl( \""
+ +target.toString()+"\" ) \"Error downloading "
+ +target.toString()+" - server replied: Not Found\" ";
+ QTest::ignoreMessage(QtWarningMsg, expected.toLatin1());
+ }
+
+ QPixmap pixmap;
+ QVERIFY(pixmap.width() <= 0); // Check Qt assumption
+ QNetworkReply *reply= QFxPixmapCache::get(&engine, target, &pixmap);
+
+ if (incache) {
+ QVERIFY(!reply);
+ if (exists)
+ QVERIFY(pixmap.width() > 0);
+ else
+ QVERIFY(pixmap.width() <= 0);
+ } else {
+ QVERIFY(reply);
+ QVERIFY(pixmap.width() <= 0);
+
+ Slotter getter;
+ connect(reply, SIGNAL(finished()), &getter, SLOT(got()));
+ QTestEventLoop::instance().enterLoop(10);
+ QVERIFY(!QTestEventLoop::instance().timeout());
+ QVERIFY(getter.gotslot);
+ if (exists) {
+ QVERIFY(QFxPixmapCache::find(target, &pixmap));
+ QVERIFY(pixmap.width() > 0);
+ } else {
+ QVERIFY(!QFxPixmapCache::find(target, &pixmap));
+ QVERIFY(pixmap.width() <= 0);
+ }
+ }
+
+ QCOMPARE(QFxPixmapCache::pendingRequests(), 0);
+}
+
+void tst_qfxpixmapcache::parallel_data()
+{
+ // Note, since QFxPixmapCache is shared, tests affect each other!
+ // so use different files fore all test functions.
+
+ QTest::addColumn<QUrl>("target1");
+ QTest::addColumn<QUrl>("target2");
+ QTest::addColumn<int>("incache");
+ QTest::addColumn<int>("cancel"); // which one to cancel
+ QTest::addColumn<int>("requests");
+
+ QTest::newRow("local")
+ << thisfile.resolved(QUrl("data/exists1.png"))
+ << thisfile.resolved(QUrl("data/exists2.png"))
+ << (localfile_optimized ? 2 : 0)
+ << -1
+ << (localfile_optimized ? 0 : 2)
+ ;
+
+ QTest::newRow("remote")
+ << QUrl("http://qt.nokia.com/images/template/checkbox-on.png")
+ << QUrl("http://qt.nokia.com/images/products/qt-logo/image_tile")
+ << 0
+ << -1
+ << 2
+ ;
+
+ QTest::newRow("remoteagain")
+ << QUrl("http://qt.nokia.com/images/template/checkbox-on.png")
+ << QUrl("http://qt.nokia.com/images/products/qt-logo/image_tile")
+ << 2
+ << -1
+ << 0
+ ;
+
+ QTest::newRow("remotecopy")
+ << QUrl("http://qt.nokia.com/images/template/checkbox-off.png")
+ << QUrl("http://qt.nokia.com/images/template/checkbox-off.png")
+ << 0
+ << -1
+ << 1
+ ;
+
+ QTest::newRow("remotecopycancel")
+ << QUrl("http://qt.nokia.com/rounded_block_bg.png")
+ << QUrl("http://qt.nokia.com/rounded_block_bg.png")
+ << 0
+ << 0
+ << 1
+ ;
+}
+
+void tst_qfxpixmapcache::parallel()
+{
+ QFETCH(QUrl, target1);
+ QFETCH(QUrl, target2);
+ QFETCH(int, incache);
+ QFETCH(int, cancel);
+ QFETCH(int, requests);
+
+ QList<QUrl> targets;
+ targets << target1 << target2;
+
+ QList<QNetworkReply*> replies;
+ QList<Slotter*> getters;
+ for (int i=0; i<targets.count(); ++i) {
+ QUrl target = targets.at(i);
+ QPixmap pixmap;
+ QNetworkReply *reply = QFxPixmapCache::get(&engine, target, &pixmap);
+ replies.append(reply);
+ if (!reply) {
+ QVERIFY(pixmap.width() > 0);
+ getters.append(0);
+ } else {
+ QVERIFY(pixmap.width() <= 0);
+ getters.append(new Slotter);
+ connect(reply, SIGNAL(finished()), getters[i], SLOT(got()));
+ }
+ }
+
+ QCOMPARE(incache+slotters, targets.count());
+ QCOMPARE(QFxPixmapCache::pendingRequests(), requests);
+
+ if (cancel >= 0) {
+ QFxPixmapCache::cancelGet(targets.at(cancel), getters[cancel]);
+ slotters--;
+ }
+
+ if (slotters) {
+ QTestEventLoop::instance().enterLoop(10);
+ QVERIFY(!QTestEventLoop::instance().timeout());
+ }
+
+ for (int i=0; i<targets.count(); ++i) {
+ QNetworkReply *reply = replies[i];
+ if (reply) {
+ if (i == cancel) {
+ QVERIFY(!getters[i]->gotslot);
+ } else {
+ QVERIFY(getters[i]->gotslot);
+ QPixmap pixmap;
+ QVERIFY(QFxPixmapCache::find(targets[i], &pixmap));
+ QVERIFY(pixmap.width() > 0);
+ }
+ delete getters[i];
+ }
+ }
+
+ QCOMPARE(QFxPixmapCache::pendingRequests(), 0);
+}
+
+QTEST_MAIN(tst_qfxpixmapcache)
+
+#include "tst_qfxpixmapcache.moc"
diff --git a/tests/auto/declarative/qfxtext/qfxtext.pro b/tests/auto/declarative/qfxtext/qfxtext.pro
new file mode 100644
index 0000000..f705334
--- /dev/null
+++ b/tests/auto/declarative/qfxtext/qfxtext.pro
@@ -0,0 +1,3 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative gui
+SOURCES += tst_qfxtext.cpp
diff --git a/tests/auto/declarative/qfxtext/tst_qfxtext.cpp b/tests/auto/declarative/qfxtext/tst_qfxtext.cpp
new file mode 100644
index 0000000..cae85a4
--- /dev/null
+++ b/tests/auto/declarative/qfxtext/tst_qfxtext.cpp
@@ -0,0 +1,413 @@
+#include <qtest.h>
+#include <QTextDocument>
+#include <QtDeclarative/qmlengine.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtDeclarative/qfxtext.h>
+#include <QFontMetrics>
+
+class tst_qfxtext : public QObject
+
+{
+ Q_OBJECT
+public:
+ tst_qfxtext();
+
+private slots:
+ void text();
+ void width();
+ void wrap();
+ void elide();
+
+ // ### these tests may be trivial
+ void horizontalAlignment();
+ void verticalAlignment();
+ void font();
+ void style();
+ void color();
+
+private:
+ QStringList standard;
+ QStringList richText;
+
+ QStringList horizontalAlignmentmentStrings;
+ QStringList verticalAlignmentmentStrings;
+
+ QList<Qt::Alignment> verticalAlignmentments;
+ QList<Qt::Alignment> horizontalAlignmentments;
+
+ QStringList styleStrings;
+ QList<QFxText::TextStyle> styles;
+
+ QStringList colorStrings;
+
+ QmlEngine engine;
+};
+
+tst_qfxtext::tst_qfxtext()
+{
+ standard << "the quick brown fox jumped over the lazy dog"
+ << "the quick brown fox\n jumped over the lazy dog";
+
+ richText << "<i>the <b>quick</b> brown <a href=\\\"http://www.google.com\\\">fox</a> jumped over the <b>lazy</b> dog</i>"
+ << "<i>the <b>quick</b> brown <a href=\\\"http://www.google.com\\\">fox</a><br>jumped over the <b>lazy</b> dog</i>";
+
+ horizontalAlignmentmentStrings << "AlignLeft"
+ << "AlignRight"
+ << "AlignHCenter";
+
+ verticalAlignmentmentStrings << "AlignTop"
+ << "AlignBottom"
+ << "AlignVCenter";
+
+ horizontalAlignmentments << Qt::AlignLeft
+ << Qt::AlignRight
+ << Qt::AlignHCenter;
+
+ verticalAlignmentments << Qt::AlignTop
+ << Qt::AlignBottom
+ << Qt::AlignVCenter;
+
+ styleStrings << "Normal"
+ << "Outline"
+ << "Raised"
+ << "Sunken";
+
+ styles << QFxText::Normal
+ << QFxText::Outline
+ << QFxText::Raised
+ << QFxText::Sunken;
+
+ colorStrings << "aliceblue"
+ << "antiquewhite"
+ << "aqua"
+ << "darkkhaki"
+ << "darkolivegreen"
+ << "dimgray"
+ << "palevioletred"
+ << "lightsteelblue"
+ << "#000000"
+ << "#AAAAAA"
+ << "#FFFFFF"
+ << "#2AC05F";
+ //
+ // need a different test to do alpha channel test
+ // << "#AA0011DD"
+ // << "#00F16B11";
+ //
+}
+
+void tst_qfxtext::text()
+{
+ {
+ QmlComponent textComponent(&engine, "import Qt 4.6\nText { text: \"\" }", QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QVERIFY(textObject != 0);
+ QCOMPARE(textObject->text(), QString(""));
+ }
+
+ for (int i = 0; i < standard.size(); i++)
+ {
+ QString componentStr = "import Qt 4.6\nText { text: \"" + standard.at(i) + "\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QVERIFY(textObject != 0);
+ QCOMPARE(textObject->text(), standard.at(i));
+ }
+
+ for (int i = 0; i < richText.size(); i++)
+ {
+ QString componentStr = "import Qt 4.6\nText { text: \"" + richText.at(i) + "\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QVERIFY(textObject != 0);
+ QString expected = richText.at(i);
+ QCOMPARE(textObject->text(), expected.replace("\\\"", "\""));
+ }
+}
+
+void tst_qfxtext::width()
+{
+ // uses Font metrics to find the width for standard and document to find the width for rich
+ {
+ QmlComponent textComponent(&engine, "import Qt 4.6\nText { text: \"\" }", QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE(textObject->width(), 0.);
+ }
+
+ for (int i = 0; i < standard.size(); i++)
+ {
+ QFont f;
+ QFontMetrics fm(f);
+ int metricWidth = fm.size(Qt::TextExpandTabs && Qt::TextShowMnemonic, standard.at(i)).width();
+
+ QString componentStr = "import Qt 4.6\nText { text: \"" + standard.at(i) + "\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE(textObject->width(), qreal(metricWidth));
+ }
+
+ for (int i = 0; i < richText.size(); i++)
+ {
+ QTextDocument document;
+ document.setHtml(richText.at(i));
+ document.setDocumentMargin(0);
+
+ int documentWidth = document.idealWidth();
+
+ QString componentStr = "import Qt 4.6\nText { text: \"" + richText.at(i) + "\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE(textObject->width(), qreal(documentWidth));
+ }
+}
+
+void tst_qfxtext::wrap()
+{
+ // XXX Poor coverage - should at least be testing an expected height.
+
+ // for specified width and wrap set true
+ {
+ QmlComponent textComponent(&engine, "import Qt 4.6\nText { text: \"\"; wrap: true; width: 300 }", QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE(textObject->width(), 300.);
+ }
+
+ for (int i = 0; i < standard.size(); i++)
+ {
+ QString componentStr = "import Qt 4.6\nText { wrap: true; width: 300; text: \"" + standard.at(i) + "\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE(textObject->width(), 300.);
+ }
+
+ for (int i = 0; i < richText.size(); i++)
+ {
+ QString componentStr = "import Qt 4.6\nText { wrap: true; width: 300; text: \"" + richText.at(i) + "\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE(textObject->width(), 300.);
+ }
+
+}
+
+void tst_qfxtext::elide()
+{
+ for (Qt::TextElideMode m = Qt::ElideLeft; m<=Qt::ElideNone; m=Qt::TextElideMode(int(m)+1)) {
+ const char* elidename[]={"ElideLeft", "ElideRight", "ElideMiddle", "ElideNone"};
+ QString elide = "elide: \""+QString(elidename[int(m)])+"\";";
+
+ // XXX Poor coverage.
+
+ {
+ QmlComponent textComponent(&engine, ("import Qt 4.6\nText { text: \"\"; "+elide+" width: 300 }").toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE(textObject->width(), 300.);
+ }
+
+ for (int i = 0; i < standard.size(); i++)
+ {
+ QString componentStr = "import Qt 4.6\nText { "+elide+" width: 300; text: \"" + standard.at(i) + "\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE(textObject->width(), 300.);
+ }
+
+ // richtext - does nothing
+ for (int i = 0; i < richText.size(); i++)
+ {
+ QString componentStr = "import Qt 4.6\nText { "+elide+" width: 300; text: \"" + richText.at(i) + "\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE(textObject->width(), 300.);
+ }
+ }
+}
+
+//the alignment tests may be trivial o.oa
+void tst_qfxtext::horizontalAlignment()
+{
+ //test one align each, and then test if two align fails.
+
+ for (int i = 0; i < standard.size(); i++)
+ {
+ for (int j=0; j < horizontalAlignmentmentStrings.size(); j++)
+ {
+ QString componentStr = "import Qt 4.6\nText { horizontalAlignment: \"" + horizontalAlignmentmentStrings.at(j) + "\"; text: \"" + standard.at(i) + "\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE((int)textObject->hAlign(), (int)horizontalAlignmentments.at(j));
+ }
+ }
+
+ for (int i = 0; i < richText.size(); i++)
+ {
+ for (int j=0; j < horizontalAlignmentmentStrings.size(); j++)
+ {
+ QString componentStr = "import Qt 4.6\nText { horizontalAlignment: \"" + horizontalAlignmentmentStrings.at(j) + "\"; text: \"" + richText.at(i) + "\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE((int)textObject->hAlign(), (int)horizontalAlignmentments.at(j));
+ }
+ }
+
+}
+
+void tst_qfxtext::verticalAlignment()
+{
+ //test one align each, and then test if two align fails.
+
+ for (int i = 0; i < standard.size(); i++)
+ {
+ for (int j=0; j < verticalAlignmentmentStrings.size(); j++)
+ {
+ QString componentStr = "import Qt 4.6\nText { verticalAlignment: \"" + verticalAlignmentmentStrings.at(j) + "\"; text: \"" + standard.at(i) + "\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE((int)textObject->vAlign(), (int)verticalAlignmentments.at(j));
+ }
+ }
+
+ for (int i = 0; i < richText.size(); i++)
+ {
+ for (int j=0; j < verticalAlignmentmentStrings.size(); j++)
+ {
+ QString componentStr = "import Qt 4.6\nText { verticalAlignment: \"" + verticalAlignmentmentStrings.at(j) + "\"; text: \"" + richText.at(i) + "\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE((int)textObject->vAlign(), (int)verticalAlignmentments.at(j));
+ }
+ }
+
+}
+
+void tst_qfxtext::font()
+{
+ //test size, then bold, then italic, then family
+ {
+ QString componentStr = "import Qt 4.6\nText { font.pointSize: 40; text: \"Hello World\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE(textObject->font().pointSize(), 40);
+ QCOMPARE(textObject->font().bold(), false);
+ QCOMPARE(textObject->font().italic(), false);
+ }
+
+ {
+ QString componentStr = "import Qt 4.6\nText { font.bold: true; text: \"Hello World\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE(textObject->font().bold(), true);
+ QCOMPARE(textObject->font().italic(), false);
+ }
+
+ {
+ QString componentStr = "import Qt 4.6\nText { font.italic: true; text: \"Hello World\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE(textObject->font().italic(), true);
+ QCOMPARE(textObject->font().bold(), false);
+ }
+
+ {
+ QString componentStr = "import Qt 4.6\nText { font.family: \"Helvetica\"; text: \"Hello World\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE(textObject->font().family(), QString("Helvetica"));
+ QCOMPARE(textObject->font().bold(), false);
+ QCOMPARE(textObject->font().italic(), false);
+ }
+
+ {
+ QString componentStr = "import Qt 4.6\nText { font.family: \"\"; text: \"Hello World\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE(textObject->font().family(), QString(""));
+ }
+}
+
+void tst_qfxtext::style()
+{
+ //test style
+ for (int i = 0; i < styles.size(); i++)
+ {
+ QString componentStr = "import Qt 4.6\nText { style: \"" + styleStrings.at(i) + "\"; text: \"Hello World\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE((int)textObject->style(), (int)styles.at(i));
+ QCOMPARE(textObject->styleColor(), QColor());
+ }
+}
+
+void tst_qfxtext::color()
+{
+ //test style
+ for (int i = 0; i < colorStrings.size(); i++)
+ {
+ QString componentStr = "import Qt 4.6\nText { color: \"" + colorStrings.at(i) + "\"; text: \"Hello World\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE(textObject->color(), QColor(colorStrings.at(i)));
+ QCOMPARE(textObject->styleColor(), QColor());
+ }
+
+ for (int i = 0; i < colorStrings.size(); i++)
+ {
+ QString componentStr = "import Qt 4.6\nText { styleColor: \"" + colorStrings.at(i) + "\"; text: \"Hello World\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE(textObject->styleColor(), QColor(colorStrings.at(i)));
+ // default color to black?
+ QCOMPARE(textObject->color(), QColor("black"));
+ }
+
+ for (int i = 0; i < colorStrings.size(); i++)
+ {
+ for (int j = 0; j < colorStrings.size(); j++)
+ {
+ QString componentStr = "import Qt 4.6\nText { color: \"" + colorStrings.at(i) + "\"; styleColor: \"" + colorStrings.at(j) + "\"; text: \"Hello World\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE(textObject->color(), QColor(colorStrings.at(i)));
+ QCOMPARE(textObject->styleColor(), QColor(colorStrings.at(j)));
+ }
+ }
+ {
+ QString colorStr = "#AA001234";
+ QColor testColor("#001234");
+ testColor.setAlpha(170);
+
+ QString componentStr = "import Qt 4.6\nText { color: \"" + colorStr + "\"; text: \"Hello World\" }";
+ QmlComponent textComponent(&engine, componentStr.toLatin1(), QUrl("file://"));
+ QFxText *textObject = qobject_cast<QFxText*>(textComponent.create());
+
+ QCOMPARE(textObject->color(), testColor);
+ }
+}
+QTEST_MAIN(tst_qfxtext)
+
+#include "tst_qfxtext.moc"
diff --git a/tests/auto/declarative/qfxtextedit/data/cursorTest.qml b/tests/auto/declarative/qfxtextedit/data/cursorTest.qml
new file mode 100644
index 0000000..e5df8f1
--- /dev/null
+++ b/tests/auto/declarative/qfxtextedit/data/cursorTest.qml
@@ -0,0 +1,8 @@
+import Qt 4.6
+
+Rectangle { width: 300; height: 300; color: "white"
+ TextEdit { text: "Hello world!"; id: textEditObject; objectName: "textEditObject"
+ resources: [ Component { id:cursor; Item { id:cursorInstance; objectName: "cursorInstance" } } ]
+ cursorDelegate: cursor
+ }
+}
diff --git a/tests/auto/declarative/qfxtextedit/data/navigation.qml b/tests/auto/declarative/qfxtextedit/data/navigation.qml
new file mode 100644
index 0000000..5b8613f
--- /dev/null
+++ b/tests/auto/declarative/qfxtextedit/data/navigation.qml
@@ -0,0 +1,23 @@
+import Qt 4.6
+
+Rectangle {
+ property var myInput: Input
+
+ width: 800; height: 600; color: "blue"
+
+ Item {
+ id: FirstItem;
+ KeyNavigation.right: Input
+ }
+
+ TextEdit { id: Input; focus: true
+ KeyNavigation.left: FirstItem
+ KeyNavigation.right: LastItem
+ KeyNavigation.up: FirstItem
+ KeyNavigation.down: LastItem
+ }
+ Item {
+ id: LastItem
+ KeyNavigation.left: Input
+ }
+}
diff --git a/tests/auto/declarative/qfxtextedit/qfxtextedit.pro b/tests/auto/declarative/qfxtextedit/qfxtextedit.pro
new file mode 100644
index 0000000..90546a4
--- /dev/null
+++ b/tests/auto/declarative/qfxtextedit/qfxtextedit.pro
@@ -0,0 +1,6 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative gui
+SOURCES += tst_qfxtextedit.cpp
+
+# Define SRCDIR equal to test's source directory
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/qfxtextedit/tst_qfxtextedit.cpp b/tests/auto/declarative/qfxtextedit/tst_qfxtextedit.cpp
new file mode 100644
index 0000000..f78e564
--- /dev/null
+++ b/tests/auto/declarative/qfxtextedit/tst_qfxtextedit.cpp
@@ -0,0 +1,513 @@
+#include <qtest.h>
+#include "../../../shared/util.h"
+#include <QFile>
+#include <QTextDocument>
+#include <QtDeclarative/qmlengine.h>
+#include <QtDeclarative/qmlcontext.h>
+#include <QtDeclarative/qmlexpression.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtDeclarative/qfxtextedit.h>
+#include <QFontMetrics>
+#include <QmlView>
+
+class tst_qfxtextedit : public QObject
+
+{
+ Q_OBJECT
+public:
+ tst_qfxtextedit();
+
+private slots:
+ void text();
+ void width();
+ void wrap();
+
+ // ### these tests may be trivial
+ void hAlign();
+ void vAlign();
+ void font();
+ void color();
+ void selection();
+
+ void cursorDelegate();
+ void navigation();
+
+private:
+ void simulateKey(QmlView *, int key);
+ QmlView *createView(const QString &filename);
+
+ QStringList standard;
+ QStringList richText;
+
+ QStringList hAlignmentStrings;
+ QStringList vAlignmentStrings;
+
+ QList<Qt::Alignment> vAlignments;
+ QList<Qt::Alignment> hAlignments;
+
+ QStringList colorStrings;
+
+ QmlEngine engine;
+};
+
+tst_qfxtextedit::tst_qfxtextedit()
+{
+ standard << "the quick brown fox jumped over the lazy dog"
+ << "the quick brown fox\n jumped over the lazy dog";
+
+ richText << "<i>the <b>quick</b> brown <a href=\\\"http://www.google.com\\\">fox</a> jumped over the <b>lazy</b> dog</i>"
+ << "<i>the <b>quick</b> brown <a href=\\\"http://www.google.com\\\">fox</a><br>jumped over the <b>lazy</b> dog</i>";
+
+ hAlignmentStrings << "AlignLeft"
+ << "AlignRight"
+ << "AlignHCenter";
+
+ vAlignmentStrings << "AlignTop"
+ << "AlignBottom"
+ << "AlignVCenter";
+
+ hAlignments << Qt::AlignLeft
+ << Qt::AlignRight
+ << Qt::AlignHCenter;
+
+ vAlignments << Qt::AlignTop
+ << Qt::AlignBottom
+ << Qt::AlignVCenter;
+
+ colorStrings << "aliceblue"
+ << "antiquewhite"
+ << "aqua"
+ << "darkkhaki"
+ << "darkolivegreen"
+ << "dimgray"
+ << "palevioletred"
+ << "lightsteelblue"
+ << "#000000"
+ << "#AAAAAA"
+ << "#FFFFFF"
+ << "#2AC05F";
+ //
+ // need a different test to do alpha channel test
+ // << "#AA0011DD"
+ // << "#00F16B11";
+ //
+}
+
+void tst_qfxtextedit::text()
+{
+ {
+ QmlComponent texteditComponent(&engine, "import Qt 4.6\nTextEdit { text: \"\" }", QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QCOMPARE(textEditObject->text(), QString(""));
+ }
+
+ for (int i = 0; i < standard.size(); i++)
+ {
+ QString componentStr = "import Qt 4.6\nTextEdit { text: \"" + standard.at(i) + "\" }";
+ QmlComponent texteditComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QCOMPARE(textEditObject->text(), standard.at(i));
+ }
+
+ for (int i = 0; i < richText.size(); i++)
+ {
+ QString componentStr = "import Qt 4.6\nTextEdit { text: \"" + richText.at(i) + "\" }";
+ QmlComponent texteditComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QString actual = textEditObject->text();
+ QString expected = richText.at(i);
+ actual.replace(QRegExp(".*<body[^>]*>"),"");
+ actual.replace(QRegExp("(<[^>]*>)+"),"<>");
+ expected.replace(QRegExp("(<[^>]*>)+"),"<>");
+ QCOMPARE(actual.simplified(),expected.simplified());
+ }
+}
+
+void tst_qfxtextedit::width()
+{
+ // uses Font metrics to find the width for standard and document to find the width for rich
+ {
+ QmlComponent texteditComponent(&engine, "import Qt 4.6\nTextEdit { text: \"\" }", QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QCOMPARE(textEditObject->width(), 1.);//+1 for cursor
+ }
+
+ for (int i = 0; i < standard.size(); i++)
+ {
+ QFont f;
+ QFontMetrics fm(f);
+ int metricWidth = fm.size(Qt::TextExpandTabs && Qt::TextShowMnemonic, standard.at(i)).width();
+
+ QString componentStr = "import Qt 4.6\nTextEdit { text: \"" + standard.at(i) + "\" }";
+ QmlComponent texteditComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QCOMPARE(textEditObject->width(), qreal(metricWidth + 1 + 3));//+3 is the current way of accounting for space between cursor and last character.
+ }
+
+ for (int i = 0; i < richText.size(); i++)
+ {
+ QTextDocument document;
+ document.setHtml(richText.at(i));
+ document.setDocumentMargin(0);
+
+ int documentWidth = document.idealWidth();
+
+ QString componentStr = "import Qt 4.6\nTextEdit { text: \"" + richText.at(i) + "\" }";
+ QmlComponent texteditComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QCOMPARE(textEditObject->width(), qreal(documentWidth + 1 + 3));
+ }
+}
+
+void tst_qfxtextedit::wrap()
+{
+ // for specified width and wrap set true
+ {
+ QmlComponent texteditComponent(&engine, "import Qt 4.6\nTextEdit { text: \"\"; wrap: true; width: 300 }", QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QCOMPARE(textEditObject->width(), 300.);
+ }
+
+ for (int i = 0; i < standard.size(); i++)
+ {
+ QString componentStr = "import Qt 4.6\nTextEdit { wrap: true; width: 300; text: \"" + standard.at(i) + "\" }";
+ QmlComponent texteditComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QCOMPARE(textEditObject->width(), 300.);
+ }
+
+ for (int i = 0; i < richText.size(); i++)
+ {
+ QString componentStr = "import Qt 4.6\nTextEdit { wrap: true; width: 300; text: \"" + richText.at(i) + "\" }";
+ QmlComponent texteditComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QCOMPARE(textEditObject->width(), 300.);
+ }
+
+}
+
+//the alignment tests may be trivial o.oa
+void tst_qfxtextedit::hAlign()
+{
+ //test one align each, and then test if two align fails.
+
+ for (int i = 0; i < standard.size(); i++)
+ {
+ for (int j=0; j < hAlignmentStrings.size(); j++)
+ {
+ QString componentStr = "import Qt 4.6\nTextEdit { horizontalAlignment: \"" + hAlignmentStrings.at(j) + "\"; text: \"" + standard.at(i) + "\" }";
+ QmlComponent texteditComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QCOMPARE((int)textEditObject->hAlign(), (int)hAlignments.at(j));
+ }
+ }
+
+ for (int i = 0; i < richText.size(); i++)
+ {
+ for (int j=0; j < hAlignmentStrings.size(); j++)
+ {
+ QString componentStr = "import Qt 4.6\nTextEdit { horizontalAlignment: \"" + hAlignmentStrings.at(j) + "\"; text: \"" + richText.at(i) + "\" }";
+ QmlComponent texteditComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QCOMPARE((int)textEditObject->hAlign(), (int)hAlignments.at(j));
+ }
+ }
+
+}
+
+void tst_qfxtextedit::vAlign()
+{
+ //test one align each, and then test if two align fails.
+
+ for (int i = 0; i < standard.size(); i++)
+ {
+ for (int j=0; j < vAlignmentStrings.size(); j++)
+ {
+ QString componentStr = "import Qt 4.6\nTextEdit { verticalAlignment: \"" + vAlignmentStrings.at(j) + "\"; text: \"" + standard.at(i) + "\" }";
+ QmlComponent texteditComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QCOMPARE((int)textEditObject->vAlign(), (int)vAlignments.at(j));
+ }
+ }
+
+ for (int i = 0; i < richText.size(); i++)
+ {
+ for (int j=0; j < vAlignmentStrings.size(); j++)
+ {
+ QString componentStr = "import Qt 4.6\nTextEdit { verticalAlignment: \"" + vAlignmentStrings.at(j) + "\"; text: \"" + richText.at(i) + "\" }";
+ QmlComponent texteditComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QCOMPARE((int)textEditObject->vAlign(), (int)vAlignments.at(j));
+ }
+ }
+
+}
+
+void tst_qfxtextedit::font()
+{
+ //test size, then bold, then italic, then family
+ {
+ QString componentStr = "import Qt 4.6\nTextEdit { font.pointSize: 40; text: \"Hello World\" }";
+ QmlComponent texteditComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QCOMPARE(textEditObject->font().pointSize(), 40);
+ QCOMPARE(textEditObject->font().bold(), false);
+ QCOMPARE(textEditObject->font().italic(), false);
+ }
+
+ {
+ QString componentStr = "import Qt 4.6\nTextEdit { font.bold: true; text: \"Hello World\" }";
+ QmlComponent texteditComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QCOMPARE(textEditObject->font().bold(), true);
+ QCOMPARE(textEditObject->font().italic(), false);
+ }
+
+ {
+ QString componentStr = "import Qt 4.6\nTextEdit { font.italic: true; text: \"Hello World\" }";
+ QmlComponent texteditComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QCOMPARE(textEditObject->font().italic(), true);
+ QCOMPARE(textEditObject->font().bold(), false);
+ }
+
+ {
+ QString componentStr = "import Qt 4.6\nTextEdit { font.family: \"Helvetica\"; text: \"Hello World\" }";
+ QmlComponent texteditComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QCOMPARE(textEditObject->font().family(), QString("Helvetica"));
+ QCOMPARE(textEditObject->font().bold(), false);
+ QCOMPARE(textEditObject->font().italic(), false);
+ }
+
+ {
+ QString componentStr = "import Qt 4.6\nTextEdit { font.family: \"\"; text: \"Hello World\" }";
+ QmlComponent texteditComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QCOMPARE(textEditObject->font().family(), QString(""));
+ }
+}
+
+void tst_qfxtextedit::color()
+{
+ //test style
+ for (int i = 0; i < colorStrings.size(); i++)
+ {
+ QString componentStr = "import Qt 4.6\nTextEdit { color: \"" + colorStrings.at(i) + "\"; text: \"Hello World\" }";
+ QmlComponent texteditComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+ //qDebug() << "textEditObject: " << textEditObject->color() << "vs. " << QColor(colorStrings.at(i));
+ QVERIFY(textEditObject != 0);
+ QCOMPARE(textEditObject->color(), QColor(colorStrings.at(i)));
+ }
+
+ {
+ QString colorStr = "#AA001234";
+ QColor testColor("#001234");
+ testColor.setAlpha(170);
+
+ QString componentStr = "import Qt 4.6\nTextEdit { color: \"" + colorStr + "\"; text: \"Hello World\" }";
+ QmlComponent texteditComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+
+ QVERIFY(textEditObject != 0);
+ QCOMPARE(textEditObject->color(), testColor);
+ }
+}
+
+void tst_qfxtextedit::selection()
+{
+ QString testStr = standard[0];//TODO: What should happen for multiline/rich text?
+ QString componentStr = "import Qt 4.6\nTextEdit { text: \""+ testStr +"\"; }";
+ QmlComponent texteditComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextEdit *textEditObject = qobject_cast<QFxTextEdit*>(texteditComponent.create());
+ QVERIFY(textEditObject != 0);
+
+
+ //Test selection follows cursor
+ for(int i=0; i<= testStr.size(); i++) {
+ textEditObject->setCursorPosition(i);
+ QCOMPARE(textEditObject->cursorPosition(), i);
+ QCOMPARE(textEditObject->selectionStart(), i);
+ QCOMPARE(textEditObject->selectionEnd(), i);
+ QVERIFY(textEditObject->selectedText().isNull());
+ }
+
+ textEditObject->setCursorPosition(0);
+ QVERIFY(textEditObject->cursorPosition() == 0);
+ QVERIFY(textEditObject->selectionStart() == 0);
+ QVERIFY(textEditObject->selectionEnd() == 0);
+ QVERIFY(textEditObject->selectedText().isNull());
+
+ //Test selection
+ for(int i=0; i<= testStr.size(); i++) {
+ textEditObject->setSelectionEnd(i);
+ QCOMPARE(testStr.mid(0,i), textEditObject->selectedText());
+ }
+ for(int i=0; i<= testStr.size(); i++) {
+ textEditObject->setSelectionStart(i);
+ QCOMPARE(testStr.mid(i,testStr.size()-i), textEditObject->selectedText());
+ }
+
+ textEditObject->setCursorPosition(0);
+ QVERIFY(textEditObject->cursorPosition() == 0);
+ QVERIFY(textEditObject->selectionStart() == 0);
+ QVERIFY(textEditObject->selectionEnd() == 0);
+ QVERIFY(textEditObject->selectedText().isNull());
+
+ for(int i=0; i< testStr.size(); i++) {
+ textEditObject->setSelectionStart(i);
+ QCOMPARE(textEditObject->selectionEnd(), i);
+ QCOMPARE(testStr.mid(i,0), textEditObject->selectedText());
+ textEditObject->setSelectionEnd(i+1);
+ QCOMPARE(textEditObject->selectionStart(), i);
+ QCOMPARE(testStr.mid(i,1), textEditObject->selectedText());
+ }
+
+ for(int i= testStr.size() - 1; i>0; i--) {
+ textEditObject->setSelectionEnd(i);
+ QCOMPARE(testStr.mid(i,0), textEditObject->selectedText());
+ textEditObject->setSelectionStart(i-1);
+ QCOMPARE(testStr.mid(i-1,1), textEditObject->selectedText());
+ }
+
+ //Test Error Ignoring behaviour
+ textEditObject->setCursorPosition(0);
+ QVERIFY(textEditObject->selectedText().isNull());
+ textEditObject->setSelectionStart(-10);
+ QVERIFY(textEditObject->selectedText().isNull());
+ textEditObject->setSelectionStart(100);
+ QVERIFY(textEditObject->selectedText().isNull());
+ textEditObject->setSelectionEnd(-10);
+ QVERIFY(textEditObject->selectedText().isNull());
+ textEditObject->setSelectionEnd(100);
+ QVERIFY(textEditObject->selectedText().isNull());
+ textEditObject->setSelectionStart(0);
+ textEditObject->setSelectionEnd(10);
+ QVERIFY(textEditObject->selectedText().size() == 10);
+ textEditObject->setSelectionStart(-10);
+ QVERIFY(textEditObject->selectedText().size() == 10);
+ textEditObject->setSelectionStart(100);
+ QVERIFY(textEditObject->selectedText().size() == 10);
+ textEditObject->setSelectionEnd(-10);
+ QVERIFY(textEditObject->selectedText().size() == 10);
+ textEditObject->setSelectionEnd(100);
+ QVERIFY(textEditObject->selectedText().size() == 10);
+}
+
+void tst_qfxtextedit::cursorDelegate()
+{
+ QmlView* view = createView(SRCDIR "/data/cursorTest.qml");
+ view->execute();
+ view->show();
+ view->setFocus();
+ QFxTextEdit *textEditObject = view->root()->findChild<QFxTextEdit*>("textEditObject");
+ QVERIFY(textEditObject != 0);
+ QVERIFY(textEditObject->findChild<QFxItem*>("cursorInstance"));
+ //Test Delegate gets created
+ textEditObject->setFocus(true);
+ QFxItem* delegateObject = textEditObject->findChild<QFxItem*>("cursorInstance");
+ QVERIFY(delegateObject);
+ //Test Delegate gets moved
+ for(int i=0; i<= textEditObject->text().length(); i++){
+ textEditObject->setCursorPosition(i);
+ QCOMPARE(textEditObject->cursorRect().x(), qRound(delegateObject->x()));
+ QCOMPARE(textEditObject->cursorRect().y(), qRound(delegateObject->y()));
+ }
+ textEditObject->setCursorPosition(0);
+ QCOMPARE(textEditObject->cursorRect().x(), qRound(delegateObject->x()));
+ QCOMPARE(textEditObject->cursorRect().y(), qRound(delegateObject->y()));
+ //Test Delegate gets deleted
+ textEditObject->setCursorDelegate(0);
+ QVERIFY(!textEditObject->findChild<QFxItem*>("cursorInstance"));
+}
+
+/*
+TextEdit element should only handle left/right keys until the cursor reaches
+the extent of the text, then they should ignore the keys.
+*/
+void tst_qfxtextedit::navigation()
+{
+ QmlView *canvas = createView(SRCDIR "/data/navigation.qml");
+ canvas->execute();
+ canvas->show();
+ canvas->setFocus();
+
+ QVERIFY(canvas->root() != 0);
+
+ QFxItem *input = qobject_cast<QFxItem *>(qvariant_cast<QObject *>(canvas->root()->property("myInput")));
+
+ QVERIFY(input != 0);
+ QTRY_VERIFY(input->hasFocus() == true);
+ QEXPECT_FAIL("", "Depends on QT-2236", Abort);
+ simulateKey(canvas, Qt::Key_Left);
+ QVERIFY(input->hasFocus() == false);
+ simulateKey(canvas, Qt::Key_Right);
+ QVERIFY(input->hasFocus() == true);
+ simulateKey(canvas, Qt::Key_Right);
+ QVERIFY(input->hasFocus() == false);
+ simulateKey(canvas, Qt::Key_Left);
+ QVERIFY(input->hasFocus() == true);
+}
+
+void tst_qfxtextedit::simulateKey(QmlView *view, int key)
+{
+ QKeyEvent press(QKeyEvent::KeyPress, key, 0);
+ QKeyEvent release(QKeyEvent::KeyRelease, key, 0);
+
+ QApplication::sendEvent(view, &press);
+ QApplication::sendEvent(view, &release);
+}
+
+QmlView *tst_qfxtextedit::createView(const QString &filename)
+{
+ QmlView *canvas = new QmlView(0);
+
+ QFile file(filename);
+ file.open(QFile::ReadOnly);
+ QString xml = file.readAll();
+ canvas->setQml(xml, filename);
+
+ return canvas;
+}
+
+
+QTEST_MAIN(tst_qfxtextedit)
+
+#include "tst_qfxtextedit.moc"
diff --git a/tests/auto/declarative/qfxtextinput/data/navigation.qml b/tests/auto/declarative/qfxtextinput/data/navigation.qml
new file mode 100644
index 0000000..282c52c
--- /dev/null
+++ b/tests/auto/declarative/qfxtextinput/data/navigation.qml
@@ -0,0 +1,23 @@
+import Qt 4.6
+
+Rectangle {
+ property var myInput: Input
+
+ width: 800; height: 600; color: "blue"
+
+ Item {
+ id: FirstItem;
+ KeyNavigation.right: Input
+ }
+
+ TextInput { id: Input; focus: true
+ KeyNavigation.left: FirstItem
+ KeyNavigation.right: LastItem
+ KeyNavigation.up: FirstItem
+ KeyNavigation.down: LastItem
+ }
+ Item {
+ id: LastItem
+ KeyNavigation.left: Input
+ }
+}
diff --git a/tests/auto/declarative/qfxtextinput/qfxtextinput.pro b/tests/auto/declarative/qfxtextinput/qfxtextinput.pro
new file mode 100644
index 0000000..396e66d
--- /dev/null
+++ b/tests/auto/declarative/qfxtextinput/qfxtextinput.pro
@@ -0,0 +1,6 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative gui
+SOURCES += tst_qfxtextinput.cpp
+
+# Define SRCDIR equal to test's source directory
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/qfxtextinput/tst_qfxtextinput.cpp b/tests/auto/declarative/qfxtextinput/tst_qfxtextinput.cpp
new file mode 100644
index 0000000..069574c
--- /dev/null
+++ b/tests/auto/declarative/qfxtextinput/tst_qfxtextinput.cpp
@@ -0,0 +1,382 @@
+#include <qtest.h>
+#include "../../../shared/util.h"
+#include <QtDeclarative/qmlengine.h>
+#include <QFile>
+#include <QtDeclarative/qmlview.h>
+#include <QFxTextInput>
+#include <QDebug>
+
+class tst_qfxtextinput : public QObject
+
+{
+ Q_OBJECT
+public:
+ tst_qfxtextinput();
+
+private slots:
+ void text();
+ void width();
+ void font();
+ void color();
+ void selection();
+
+ void maxLength();
+ void masks();
+ void validators();
+
+ void cursorDelegate();
+ void navigation();
+
+private:
+ void simulateKey(QmlView *, int key);
+ QmlView *createView(const QString &filename);
+
+ QmlEngine engine;
+ QStringList standard;
+ QStringList colorStrings;
+};
+
+tst_qfxtextinput::tst_qfxtextinput()
+{
+ standard << "the quick brown fox jumped over the lazy dog"
+ << "It's supercalifragisiticexpialidocious!"
+ << "Hello, world!";
+
+ colorStrings << "aliceblue"
+ << "antiquewhite"
+ << "aqua"
+ << "darkkhaki"
+ << "darkolivegreen"
+ << "dimgray"
+ << "palevioletred"
+ << "lightsteelblue"
+ << "#000000"
+ << "#AAAAAA"
+ << "#FFFFFF"
+ << "#2AC05F";
+}
+
+void tst_qfxtextinput::text()
+{
+ {
+ QmlComponent textinputComponent(&engine, "import Qt 4.6\nTextInput { text: \"\" }", QUrl());
+ QFxTextInput *textinputObject = qobject_cast<QFxTextInput*>(textinputComponent.create());
+
+ QVERIFY(textinputObject != 0);
+ QCOMPARE(textinputObject->text(), QString(""));
+ }
+
+ for (int i = 0; i < standard.size(); i++)
+ {
+ QString componentStr = "import Qt 4.6\nTextInput { text: \"" + standard.at(i) + "\" }";
+ QmlComponent textinputComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextInput *textinputObject = qobject_cast<QFxTextInput*>(textinputComponent.create());
+
+ QVERIFY(textinputObject != 0);
+ QCOMPARE(textinputObject->text(), standard.at(i));
+ }
+
+}
+
+void tst_qfxtextinput::width()
+{
+ // uses Font metrics to find the width for standard
+ {
+ QmlComponent textinputComponent(&engine, "import Qt 4.6\nTextInput { text: \"\" }", QUrl());
+ QFxTextInput *textinputObject = qobject_cast<QFxTextInput*>(textinputComponent.create());
+
+ QVERIFY(textinputObject != 0);
+ QCOMPARE(textinputObject->width(), 1.);//1 for the cursor
+ }
+
+ for (int i = 0; i < standard.size(); i++)
+ {
+ QFont f;
+ QFontMetrics fm(f);
+ int metricWidth = fm.width(standard.at(i));
+
+ QString componentStr = "import Qt 4.6\nTextInput { text: \"" + standard.at(i) + "\" }";
+ QmlComponent textinputComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextInput *textinputObject = qobject_cast<QFxTextInput*>(textinputComponent.create());
+
+ QVERIFY(textinputObject != 0);
+ QCOMPARE(textinputObject->width(), qreal(metricWidth) + 1.);//1 for the cursor
+ }
+}
+
+void tst_qfxtextinput::font()
+{
+ //test size, then bold, then italic, then family
+ {
+ QString componentStr = "import Qt 4.6\nTextInput { font.pointSize: 40; text: \"Hello World\" }";
+ QmlComponent textinputComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextInput *textinputObject = qobject_cast<QFxTextInput*>(textinputComponent.create());
+
+ QVERIFY(textinputObject != 0);
+ QCOMPARE(textinputObject->font().pointSize(), 40);
+ QCOMPARE(textinputObject->font().bold(), false);
+ QCOMPARE(textinputObject->font().italic(), false);
+ }
+
+ {
+ QString componentStr = "import Qt 4.6\nTextInput { font.bold: true; text: \"Hello World\" }";
+ QmlComponent textinputComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextInput *textinputObject = qobject_cast<QFxTextInput*>(textinputComponent.create());
+
+ QVERIFY(textinputObject != 0);
+ QCOMPARE(textinputObject->font().bold(), true);
+ QCOMPARE(textinputObject->font().italic(), false);
+ }
+
+ {
+ QString componentStr = "import Qt 4.6\nTextInput { font.italic: true; text: \"Hello World\" }";
+ QmlComponent textinputComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextInput *textinputObject = qobject_cast<QFxTextInput*>(textinputComponent.create());
+
+ QVERIFY(textinputObject != 0);
+ QCOMPARE(textinputObject->font().italic(), true);
+ QCOMPARE(textinputObject->font().bold(), false);
+ }
+
+ {
+ QString componentStr = "import Qt 4.6\nTextInput { font.family: \"Helvetica\"; text: \"Hello World\" }";
+ QmlComponent textinputComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextInput *textinputObject = qobject_cast<QFxTextInput*>(textinputComponent.create());
+
+ QVERIFY(textinputObject != 0);
+ QCOMPARE(textinputObject->font().family(), QString("Helvetica"));
+ QCOMPARE(textinputObject->font().bold(), false);
+ QCOMPARE(textinputObject->font().italic(), false);
+ }
+
+ {
+ QString componentStr = "import Qt 4.6\nTextInput { font.family: \"\"; text: \"Hello World\" }";
+ QmlComponent textinputComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextInput *textinputObject = qobject_cast<QFxTextInput*>(textinputComponent.create());
+
+ QVERIFY(textinputObject != 0);
+ QCOMPARE(textinputObject->font().family(), QString(""));
+ }
+}
+
+void tst_qfxtextinput::color()
+{
+ //test style
+ for (int i = 0; i < colorStrings.size(); i++)
+ {
+ QString componentStr = "import Qt 4.6\nTextInput { color: \"" + colorStrings.at(i) + "\"; text: \"Hello World\" }";
+ QmlComponent textinputComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextInput *textinputObject = qobject_cast<QFxTextInput*>(textinputComponent.create());
+ //qDebug() << "textinputObject: " << textinputObject->color() << "vs. " << QColor(colorStrings.at(i));
+ QVERIFY(textinputObject != 0);
+ QCOMPARE(textinputObject->color(), QColor(colorStrings.at(i)));
+ }
+
+ {
+ QString colorStr = "#AA001234";
+ QColor testColor("#001234");
+ testColor.setAlpha(170);
+
+ QString componentStr = "import Qt 4.6\nTextInput { color: \"" + colorStr + "\"; text: \"Hello World\" }";
+ QmlComponent textinputComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextInput *textinputObject = qobject_cast<QFxTextInput*>(textinputComponent.create());
+
+ QVERIFY(textinputObject != 0);
+ QCOMPARE(textinputObject->color(), testColor);
+ }
+}
+
+void tst_qfxtextinput::selection()
+{
+ QString testStr = standard[0];
+ QString componentStr = "import Qt 4.6\nTextInput { text: \""+ testStr +"\"; }";
+ QmlComponent textinputComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextInput *textinputObject = qobject_cast<QFxTextInput*>(textinputComponent.create());
+ QVERIFY(textinputObject != 0);
+
+
+ //Test selection follows cursor
+ for(int i=0; i<= testStr.size(); i++) {
+ textinputObject->setCursorPosition(i);
+ QCOMPARE(textinputObject->cursorPosition(), i);
+ QCOMPARE(textinputObject->selectionStart(), i);
+ QCOMPARE(textinputObject->selectionEnd(), i);
+ QVERIFY(textinputObject->selectedText().isNull());
+ }
+
+ textinputObject->setCursorPosition(0);
+ QVERIFY(textinputObject->cursorPosition() == 0);
+ QVERIFY(textinputObject->selectionStart() == 0);
+ QVERIFY(textinputObject->selectionEnd() == 0);
+ QVERIFY(textinputObject->selectedText().isNull());
+
+ //Test selection
+ for(int i=0; i<= testStr.size(); i++) {
+ textinputObject->setSelectionEnd(i);
+ QCOMPARE(testStr.mid(0,i), textinputObject->selectedText());
+ }
+ for(int i=0; i<= testStr.size(); i++) {
+ textinputObject->setSelectionStart(i);
+ QCOMPARE(testStr.mid(i,testStr.size()-i), textinputObject->selectedText());
+ }
+
+ textinputObject->setCursorPosition(0);
+ QVERIFY(textinputObject->cursorPosition() == 0);
+ QVERIFY(textinputObject->selectionStart() == 0);
+ QVERIFY(textinputObject->selectionEnd() == 0);
+ QVERIFY(textinputObject->selectedText().isNull());
+
+ for(int i=0; i< testStr.size(); i++) {
+ textinputObject->setSelectionStart(i);
+ QCOMPARE(textinputObject->selectionEnd(), i);
+ QCOMPARE(testStr.mid(i,0), textinputObject->selectedText());
+ textinputObject->setSelectionEnd(i+1);
+ QCOMPARE(textinputObject->selectionStart(), i);
+ QCOMPARE(testStr.mid(i,1), textinputObject->selectedText());
+ }
+
+ for(int i= testStr.size() - 1; i>0; i--) {
+ textinputObject->setSelectionEnd(i);
+ QCOMPARE(testStr.mid(i,0), textinputObject->selectedText());
+ textinputObject->setSelectionStart(i-1);
+ QCOMPARE(testStr.mid(i-1,1), textinputObject->selectedText());
+ }
+
+ //Test Error Ignoring behaviour
+ textinputObject->setCursorPosition(0);
+ QVERIFY(textinputObject->selectedText().isNull());
+ textinputObject->setSelectionStart(-10);
+ QVERIFY(textinputObject->selectedText().isNull());
+ textinputObject->setSelectionStart(100);
+ QVERIFY(textinputObject->selectedText().isNull());
+ textinputObject->setSelectionEnd(-10);
+ QVERIFY(textinputObject->selectedText().isNull());
+ textinputObject->setSelectionEnd(100);
+ QVERIFY(textinputObject->selectedText().isNull());
+ textinputObject->setSelectionStart(0);
+ textinputObject->setSelectionEnd(10);
+ QVERIFY(textinputObject->selectedText().size() == 10);
+ textinputObject->setSelectionStart(-10);
+ QVERIFY(textinputObject->selectedText().size() == 10);
+ textinputObject->setSelectionStart(100);
+ QVERIFY(textinputObject->selectedText().size() == 10);
+ textinputObject->setSelectionEnd(-10);
+ QVERIFY(textinputObject->selectedText().size() == 10);
+ textinputObject->setSelectionEnd(100);
+ QVERIFY(textinputObject->selectedText().size() == 10);
+}
+
+void tst_qfxtextinput::maxLength()
+{
+ QString componentStr = "import Qt 4.6\nTextInput { maximumLength: 10; }";
+ QmlComponent textinputComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextInput *textinputObject = qobject_cast<QFxTextInput*>(textinputComponent.create());
+ QVERIFY(textinputObject != 0);
+ QVERIFY(textinputObject->text().isEmpty());
+ foreach(const QString &str, standard){
+ QVERIFY(textinputObject->text().length() <= 10);
+ textinputObject->setText(str);
+ QVERIFY(textinputObject->text().length() <= 10);
+ }
+ //TODO: Simulated keypress input adding 11 chars at a time
+}
+
+void tst_qfxtextinput::masks()
+{
+ QString componentStr = "import Qt 4.6\nTextInput { maximumLength: 10; }";
+ QmlComponent textinputComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextInput *textinputObject = qobject_cast<QFxTextInput*>(textinputComponent.create());
+ QVERIFY(textinputObject != 0);
+
+ //TODO: Me
+}
+
+void tst_qfxtextinput::validators()
+{
+ QString componentStr = "import Qt 4.6\nTextInput { maximumLength: 10; }";
+ QmlComponent textinputComponent(&engine, componentStr.toLatin1(), QUrl());
+ QFxTextInput *textinputObject = qobject_cast<QFxTextInput*>(textinputComponent.create());
+ QVERIFY(textinputObject != 0);
+
+ //TODO: Me
+}
+
+/*
+TextInput element should only handle left/right keys until the cursor reaches
+the extent of the text, then they should ignore the keys.
+*/
+void tst_qfxtextinput::navigation()
+{
+ QmlView *canvas = createView(SRCDIR "/data/navigation.qml");
+ canvas->execute();
+ canvas->show();
+ canvas->setFocus();
+
+ QVERIFY(canvas->root() != 0);
+
+ QFxItem *input = qobject_cast<QFxItem *>(qvariant_cast<QObject *>(canvas->root()->property("myInput")));
+
+ QVERIFY(input != 0);
+ QTRY_VERIFY(input->hasFocus() == true);
+ simulateKey(canvas, Qt::Key_Left);
+ QVERIFY(input->hasFocus() == false);
+ simulateKey(canvas, Qt::Key_Right);
+ QVERIFY(input->hasFocus() == true);
+ simulateKey(canvas, Qt::Key_Right);
+ QVERIFY(input->hasFocus() == false);
+ simulateKey(canvas, Qt::Key_Left);
+ QVERIFY(input->hasFocus() == true);
+}
+
+void tst_qfxtextinput::cursorDelegate()
+{
+ QmlView* view = createView(SRCDIR "/data/cursorTest.qml");
+ view->execute();
+ view->show();
+ view->setFocus();
+ QFxTextInput *textInputObject = view->root()->findChild<QFxTextInput*>("textInputObject");
+ QVERIFY(textInputObject != 0);
+ QVERIFY(textInputObject->findChild<QFxItem*>("cursorInstance"));
+ //Test Delegate gets created
+ textInputObject->setFocus(true);
+ QFxItem* delegateObject = textInputObject->findChild<QFxItem*>("cursorInstance");
+ QVERIFY(delegateObject);
+ //Test Delegate gets moved
+ for(int i=0; i<= textInputObject->text().length(); i++){
+ textInputObject->setCursorPosition(i);
+ //+5 is because the TextInput cursorRect is just a 10xHeight area centered on cursor position
+ QCOMPARE(textInputObject->cursorRect().x() + 5, qRound(delegateObject->x()));
+ QCOMPARE(textInputObject->cursorRect().y(), qRound(delegateObject->y()));
+ }
+ textInputObject->setCursorPosition(0);
+ QCOMPARE(textInputObject->cursorRect().x()+5, qRound(delegateObject->x()));
+ QCOMPARE(textInputObject->cursorRect().y(), qRound(delegateObject->y()));
+ //Test Delegate gets deleted
+ textInputObject->setCursorDelegate(0);
+ QVERIFY(!textInputObject->findChild<QFxItem*>("cursorInstance"));
+}
+
+void tst_qfxtextinput::simulateKey(QmlView *view, int key)
+{
+ QKeyEvent press(QKeyEvent::KeyPress, key, 0);
+ QKeyEvent release(QKeyEvent::KeyRelease, key, 0);
+
+ QApplication::sendEvent(view, &press);
+ QApplication::sendEvent(view, &release);
+}
+
+QmlView *tst_qfxtextinput::createView(const QString &filename)
+{
+ QmlView *canvas = new QmlView(0);
+
+ QFile file(filename);
+ file.open(QFile::ReadOnly);
+ QString xml = file.readAll();
+ canvas->setQml(xml, filename);
+
+ return canvas;
+}
+
+QTEST_MAIN(tst_qfxtextinput)
+
+#include "tst_qfxtextinput.moc"
diff --git a/tests/auto/declarative/qfxwebview/data/basic.html b/tests/auto/declarative/qfxwebview/data/basic.html
new file mode 100644
index 0000000..c262f12
--- /dev/null
+++ b/tests/auto/declarative/qfxwebview/data/basic.html
@@ -0,0 +1,12 @@
+<html>
+<head><title>Basic</title>
+<link rel="icon" sizes="48x48" href="basic.png">
+</head>
+<body leftmargin="0" marginwidth="0">
+<table width="123">
+<tbody>
+<tr><td>This is a basic test.</td></tr>
+</tbody>
+</table>
+</body>
+</html>
diff --git a/tests/auto/declarative/qfxwebview/data/basic.png b/tests/auto/declarative/qfxwebview/data/basic.png
new file mode 100644
index 0000000..35717cc
--- /dev/null
+++ b/tests/auto/declarative/qfxwebview/data/basic.png
Binary files differ
diff --git a/tests/auto/declarative/qfxwebview/data/basic.qml b/tests/auto/declarative/qfxwebview/data/basic.qml
new file mode 100644
index 0000000..5394837
--- /dev/null
+++ b/tests/auto/declarative/qfxwebview/data/basic.qml
@@ -0,0 +1,5 @@
+import Qt 4.6
+
+WebView {
+ url: "basic.html"
+}
diff --git a/tests/auto/declarative/qfxwebview/qfxwebview.pro b/tests/auto/declarative/qfxwebview/qfxwebview.pro
new file mode 100644
index 0000000..ee78950
--- /dev/null
+++ b/tests/auto/declarative/qfxwebview/qfxwebview.pro
@@ -0,0 +1,6 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_qfxwebview.cpp
+
+# Define SRCDIR equal to test's source directory
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/qfxwebview/tst_qfxwebview.cpp b/tests/auto/declarative/qfxwebview/tst_qfxwebview.cpp
new file mode 100644
index 0000000..dc124ce
--- /dev/null
+++ b/tests/auto/declarative/qfxwebview/tst_qfxwebview.cpp
@@ -0,0 +1,103 @@
+#include <qtest.h>
+#include "../../../shared/util.h"
+#include <QtDeclarative/qmlengine.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtDeclarative/qfxwebview.h>
+#include <QtWebKit/qwebpage.h>
+#include <QtWebKit/qwebframe.h>
+#include <QtCore/qdir.h>
+#include <QtCore/qfile.h>
+
+class tst_qfxwebview : public QObject
+{
+ Q_OBJECT
+public:
+ tst_qfxwebview() {}
+
+private slots:
+ void testBasicProperties();
+ void cleanupTestCase();
+
+
+private:
+ void checkNoErrors(const QmlComponent& component);
+ QmlEngine engine;
+ QString tmpDir() const
+ {
+ static QString tmpd = QDir::tempPath()+"/tst_qfxwebview-"
+ + QDateTime::currentDateTime().toString(QLatin1String("yyyyMMddhhmmss"));
+ return tmpd;
+ }
+};
+
+void removeRecursive(const QString& dirname)
+{
+ QDir dir(dirname);
+ QFileInfoList entries(dir.entryInfoList(QDir::Dirs|QDir::Files|QDir::NoDotAndDotDot));
+ for (int i = 0; i < entries.count(); ++i)
+ if (entries[i].isDir())
+ removeRecursive(entries[i].filePath());
+ else
+ dir.remove(entries[i].fileName());
+ QDir().rmdir(dirname);
+}
+
+void tst_qfxwebview::cleanupTestCase()
+{
+ removeRecursive(tmpDir());
+}
+
+void tst_qfxwebview::checkNoErrors(const QmlComponent& component)
+{
+ if (component.isError()) {
+ QList<QmlError> errors = component.errors();
+ for (int ii = 0; ii < errors.count(); ++ii) {
+ const QmlError &error = errors.at(ii);
+ QByteArray errorStr = QByteArray::number(error.line()) + ":" +
+ QByteArray::number(error.column()) + ":" +
+ error.description().toUtf8();
+ qWarning() << errorStr;
+ }
+ }
+ QVERIFY(!component.isError());
+}
+
+void tst_qfxwebview::testBasicProperties()
+{
+ QmlComponent component(&engine, QUrl::fromLocalFile(SRCDIR "/data/basic.qml"));
+ checkNoErrors(component);
+ QWebSettings::enablePersistentStorage(tmpDir());
+
+ QFxWebView *wv = qobject_cast<QFxWebView*>(component.create());
+ QVERIFY(wv != 0);
+ QTRY_COMPARE(wv->progress(), 1.0);
+ QCOMPARE(wv->title(),QString("Basic"));
+ QTRY_COMPARE(wv->icon().width(), 48);
+ QCOMPARE(wv->icon(),QPixmap(SRCDIR "/data/basic.png"));
+ QCOMPARE(wv->statusText(),QString(""));
+ QFile htmlfile(SRCDIR "/data/basic.html");
+ QVERIFY(htmlfile.open(QIODevice::ReadOnly));
+ QString actualhtml____ = wv->html(); // "____" is to make errors line up for easier reading
+ QString expectedhtml = htmlfile.readAll();
+ actualhtml____.replace(QRegExp("\\s+"),"");
+ expectedhtml.replace(QRegExp("\\s+"),"");
+ QCOMPARE(actualhtml____,expectedhtml); // same, ignoring whitespace
+ QCOMPARE(wv->width(), 123.0);
+ QCOMPARE(wv->webPageWidth(), 0);
+ QCOMPARE(wv->preferredWidth(), 0);
+ QCOMPARE(wv->zoomFactor(), 1.0);
+ QCOMPARE(wv->url(), QUrl::fromLocalFile(SRCDIR "/data/basic.html"));
+ QCOMPARE(wv->status(), QFxWebView::Ready);
+ QVERIFY(wv->reloadAction());
+ QVERIFY(wv->reloadAction()->isEnabled());
+ QVERIFY(wv->backAction());
+ QVERIFY(!wv->backAction()->isEnabled());
+ QVERIFY(wv->forwardAction());
+ QVERIFY(!wv->forwardAction()->isEnabled());
+ QVERIFY(wv->stopAction());
+ QVERIFY(!wv->stopAction()->isEnabled());
+}
+
+QTEST_MAIN(tst_qfxwebview)
+
+#include "tst_qfxwebview.moc"
diff --git a/tests/auto/declarative/qmldom/data/MyComponent.qml b/tests/auto/declarative/qmldom/data/MyComponent.qml
new file mode 100644
index 0000000..1472f01
--- /dev/null
+++ b/tests/auto/declarative/qmldom/data/MyComponent.qml
@@ -0,0 +1,4 @@
+import Qt 4.6
+
+Item {
+}
diff --git a/tests/auto/declarative/qmldom/data/importdir/Bar.qml b/tests/auto/declarative/qmldom/data/importdir/Bar.qml
new file mode 100644
index 0000000..2d1a4a3
--- /dev/null
+++ b/tests/auto/declarative/qmldom/data/importdir/Bar.qml
@@ -0,0 +1,2 @@
+import Qt 4.6
+
diff --git a/tests/auto/declarative/qmldom/data/importlib/sublib/qmldir/Foo.qml b/tests/auto/declarative/qmldom/data/importlib/sublib/qmldir/Foo.qml
new file mode 100644
index 0000000..2d1a4a3
--- /dev/null
+++ b/tests/auto/declarative/qmldom/data/importlib/sublib/qmldir/Foo.qml
@@ -0,0 +1,2 @@
+import Qt 4.6
+
diff --git a/tests/auto/declarative/qmldom/data/top.qml b/tests/auto/declarative/qmldom/data/top.qml
new file mode 100644
index 0000000..2681993
--- /dev/null
+++ b/tests/auto/declarative/qmldom/data/top.qml
@@ -0,0 +1,6 @@
+import Qt 4.6
+
+MyComponent {
+ width: 100
+ height: 100
+}
diff --git a/tests/auto/declarative/qmldom/qmldom.pro b/tests/auto/declarative/qmldom/qmldom.pro
new file mode 100644
index 0000000..d566354
--- /dev/null
+++ b/tests/auto/declarative/qmldom/qmldom.pro
@@ -0,0 +1,5 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_qmldom.cpp
+
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/qmldom/tst_qmldom.cpp b/tests/auto/declarative/qmldom/tst_qmldom.cpp
new file mode 100644
index 0000000..77c13c3
--- /dev/null
+++ b/tests/auto/declarative/qmldom/tst_qmldom.cpp
@@ -0,0 +1,201 @@
+#include <qtest.h>
+#include <QtDeclarative/qmlengine.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtDeclarative/qmldom.h>
+
+#include <QtCore/QDebug>
+#include <QtCore/QFile>
+
+class tst_qmldom : public QObject
+{
+ Q_OBJECT
+public:
+ tst_qmldom() {}
+
+private slots:
+ void loadSimple();
+ void loadProperties();
+ void loadChildObject();
+ void loadComposite();
+ void loadImports();
+
+ void testValueSource();
+
+private:
+ QmlEngine engine;
+};
+
+
+void tst_qmldom::loadSimple()
+{
+ QByteArray qml = "import Qt 4.6\n"
+ "Item {}";
+ //QByteArray qml = "<Item/>";
+
+ QmlDomDocument document;
+ QVERIFY(document.load(&engine, qml));
+ QVERIFY(document.errors().isEmpty());
+
+ QmlDomObject rootObject = document.rootObject();
+ QVERIFY(rootObject.isValid());
+ QVERIFY(!rootObject.isComponent());
+ QVERIFY(!rootObject.isCustomType());
+ QVERIFY(rootObject.objectType() == "Qt/Item");
+ QVERIFY(rootObject.objectTypeMajorVersion() == 4);
+ QVERIFY(rootObject.objectTypeMinorVersion() == 6);
+}
+
+void tst_qmldom::loadProperties()
+{
+ QByteArray qml = "import Qt 4.6\n"
+ "Item { id : item; x : 300; visible : true }";
+ //QByteArray qml = "<Item id='item' x='300' visible='true'/>";
+
+ QmlDomDocument document;
+ QVERIFY(document.load(&engine, qml));
+
+ QmlDomObject rootObject = document.rootObject();
+ QVERIFY(rootObject.isValid());
+ QVERIFY(rootObject.objectId() == "item");
+ QCOMPARE(rootObject.properties().size(), 3);
+
+ QmlDomProperty xProperty = rootObject.property("x");
+ QVERIFY(xProperty.propertyName() == "x");
+ QVERIFY(xProperty.value().isLiteral());
+ QVERIFY(xProperty.value().toLiteral().literal() == "300");
+
+ QmlDomProperty visibleProperty = rootObject.property("visible");
+ QVERIFY(visibleProperty.propertyName() == "visible");
+ QVERIFY(visibleProperty.value().isLiteral());
+ QVERIFY(visibleProperty.value().toLiteral().literal() == "true");
+}
+
+void tst_qmldom::loadChildObject()
+{
+ QByteArray qml = "import Qt 4.6\n"
+ "Item { Item {} }";
+ //QByteArray qml = "<Item> <Item/> </Item>";
+
+ QmlDomDocument document;
+ QVERIFY(document.load(&engine, qml));
+
+ QmlDomObject rootItem = document.rootObject();
+ QVERIFY(rootItem.isValid());
+ QVERIFY(rootItem.properties().size() == 1);
+
+ QmlDomProperty listProperty = rootItem.properties().at(0);
+ QVERIFY(listProperty.isDefaultProperty());
+ QVERIFY(listProperty.value().isList());
+
+ QmlDomList list = listProperty.value().toList();
+ QVERIFY(list.values().size() == 1);
+
+ QmlDomObject childItem = list.values().first().toObject();
+ QVERIFY(childItem.isValid());
+ QVERIFY(childItem.objectType() == "Qt/Item");
+}
+
+void tst_qmldom::loadComposite()
+{
+ QFile file(SRCDIR "/data/top.qml");
+ QVERIFY(file.open(QIODevice::ReadOnly | QIODevice::Text));
+
+ QmlDomDocument document;
+ QVERIFY(document.load(&engine, file.readAll(), QUrl::fromLocalFile(file.fileName())));
+ QVERIFY(document.errors().isEmpty());
+
+ QmlDomObject rootItem = document.rootObject();
+ QVERIFY(rootItem.isValid());
+ QCOMPARE(rootItem.objectType(), QByteArray("MyComponent"));
+ QCOMPARE(rootItem.properties().size(), 2);
+
+ QmlDomProperty widthProperty = rootItem.property("width");
+ QVERIFY(widthProperty.value().isLiteral());
+
+ QmlDomProperty heightProperty = rootItem.property("height");
+ QVERIFY(heightProperty.value().isLiteral());
+}
+
+void tst_qmldom::testValueSource()
+{
+ QByteArray qml = "import Qt 4.6\n"
+ "Rectangle { height: SpringFollow { spring: 1.4; damping: .15; source: Math.min(Math.max(-130, value*2.2 - 130), 133); }}";
+
+ QmlEngine freshEngine;
+ QmlDomDocument document;
+ QVERIFY(document.load(&freshEngine, qml));
+
+ QmlDomObject rootItem = document.rootObject();
+ QVERIFY(rootItem.isValid());
+ QmlDomProperty heightProperty = rootItem.properties().at(0);
+ QVERIFY(heightProperty.propertyName() == "height");
+ QVERIFY(heightProperty.value().isValueSource());
+
+ const QmlDomValueValueSource valueSource = heightProperty.value().toValueSource();
+ QmlDomObject valueSourceObject = valueSource.object();
+ QVERIFY(valueSourceObject.isValid());
+
+ QVERIFY(valueSourceObject.objectType() == "Qt/SpringFollow");
+
+ const QmlDomValue springValue = valueSourceObject.property("spring").value();
+ QVERIFY(!springValue.isInvalid());
+ QVERIFY(springValue.isLiteral());
+ QVERIFY(springValue.toLiteral().literal() == "1.4");
+
+ const QmlDomValue sourceValue = valueSourceObject.property("source").value();
+ QVERIFY(!sourceValue.isInvalid());
+ QVERIFY(sourceValue.isBinding());
+ QVERIFY(sourceValue.toBinding().binding() == "Math.min(Math.max(-130, value*2.2 - 130), 133)");
+}
+
+void tst_qmldom::loadImports()
+{
+ QByteArray qml = "import Qt 4.6\n"
+ "import importlib.sublib 4.7\n"
+ "import importlib.sublib 4.6 as NewFoo\n"
+ "import 'import'\n"
+ "import 'import' as X\n"
+ "Item {}";
+
+ QmlEngine engine;
+ engine.addImportPath(SRCDIR "/data");
+ QmlDomDocument document;
+ QVERIFY(document.load(&engine, qml));
+
+ QCOMPARE(document.imports().size(), 5);
+
+ QmlDomImport import = document.imports().at(0);
+ QCOMPARE(import.type(), QmlDomImport::Library);
+ QCOMPARE(import.uri(), QLatin1String("Qt"));
+ QCOMPARE(import.qualifier(), QString());
+ QCOMPARE(import.version(), QLatin1String("4.6"));
+
+ import = document.imports().at(1);
+ QCOMPARE(import.type(), QmlDomImport::Library);
+ QCOMPARE(import.uri(), QLatin1String("importlib.sublib"));
+ QCOMPARE(import.qualifier(), QString());
+ QCOMPARE(import.version(), QLatin1String("4.7"));
+
+ import = document.imports().at(2);
+ QCOMPARE(import.type(), QmlDomImport::Library);
+ QCOMPARE(import.uri(), QLatin1String("importlib.sublib"));
+ QCOMPARE(import.qualifier(), QLatin1String("NewFoo"));
+ QCOMPARE(import.version(), QLatin1String("4.6"));
+
+ import = document.imports().at(3);
+ QCOMPARE(import.type(), QmlDomImport::File);
+ QCOMPARE(import.uri(), QLatin1String("import"));
+ QCOMPARE(import.qualifier(), QLatin1String(""));
+ QCOMPARE(import.version(), QLatin1String(""));
+
+ import = document.imports().at(4);
+ QCOMPARE(import.type(), QmlDomImport::File);
+ QCOMPARE(import.uri(), QLatin1String("import"));
+ QCOMPARE(import.qualifier(), QLatin1String("X"));
+ QCOMPARE(import.version(), QLatin1String(""));
+}
+
+
+QTEST_MAIN(tst_qmldom)
+
+#include "tst_qmldom.moc"
diff --git a/tests/auto/declarative/qmlecmascript/data/ConstantsOverrideBindings.qml b/tests/auto/declarative/qmlecmascript/data/ConstantsOverrideBindings.qml
new file mode 100644
index 0000000..b4a702b
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/ConstantsOverrideBindings.qml
@@ -0,0 +1,6 @@
+import Qt.test 1.0
+
+MyQmlObject {
+ property int c1: 0
+ property int c2: c1
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/ScopeObject.qml b/tests/auto/declarative/qmlecmascript/data/ScopeObject.qml
new file mode 100644
index 0000000..b7bec63
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/ScopeObject.qml
@@ -0,0 +1,14 @@
+import Qt 4.6
+
+Item {
+ property int a: 3
+ property int binding: myFunction();
+ property int binding2: myCompFunction();
+
+ Script {
+ function myCompFunction() {
+ return a;
+ }
+ }
+}
+
diff --git a/tests/auto/declarative/qmlecmascript/data/TypeForDynamicCreation.qml b/tests/auto/declarative/qmlecmascript/data/TypeForDynamicCreation.qml
new file mode 100644
index 0000000..56e0625
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/TypeForDynamicCreation.qml
@@ -0,0 +1,2 @@
+import Qt.test 1.0
+MyQmlObject{objectName:"objectThree"}
diff --git a/tests/auto/declarative/qmlecmascript/data/aliasPropertyAndBinding.qml b/tests/auto/declarative/qmlecmascript/data/aliasPropertyAndBinding.qml
new file mode 100644
index 0000000..6143164
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/aliasPropertyAndBinding.qml
@@ -0,0 +1,14 @@
+import Qt 4.6
+import Qt.test 1.0
+
+MyQmlObject {
+ property alias c1: MyObject.c1
+ property int c2: 3
+ property int c3: c2
+ objectProperty: Object {
+ id: MyObject
+ property int c1
+ }
+}
+
+
diff --git a/tests/auto/declarative/qmlecmascript/data/attachedProperty.qml b/tests/auto/declarative/qmlecmascript/data/attachedProperty.qml
new file mode 100644
index 0000000..c5088e3
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/attachedProperty.qml
@@ -0,0 +1,11 @@
+import Qt.test 1.0
+import Qt.test 1.0 as Namespace
+
+MyQmlObject {
+ id: Me
+ property int a: MyQmlObject.value
+ property int b: Namespace.MyQmlObject.value
+ property int c: Me.Namespace.MyQmlObject.value
+ property int d: Me.Namespace.MyQmlObject.value
+}
+
diff --git a/tests/auto/declarative/qmlecmascript/data/bindingLoop.qml b/tests/auto/declarative/qmlecmascript/data/bindingLoop.qml
new file mode 100644
index 0000000..8b22dd1
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/bindingLoop.qml
@@ -0,0 +1,14 @@
+import Qt.test 1.0
+
+MyQmlContainer {
+ children : [
+ MyQmlObject {
+ id: Object1
+ stringProperty: "hello" + Object2.stringProperty
+ },
+ MyQmlObject {
+ id: Object2
+ stringProperty: "hello" + Object1.stringProperty
+ }
+ ]
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/boolPropertiesEvaluateAsBool.1.qml b/tests/auto/declarative/qmlecmascript/data/boolPropertiesEvaluateAsBool.1.qml
new file mode 100644
index 0000000..3147f63
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/boolPropertiesEvaluateAsBool.1.qml
@@ -0,0 +1,5 @@
+import Qt.test 1.0
+
+MyQmlObject {
+ stringProperty: trueProperty?'pass':'fail'
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/boolPropertiesEvaluateAsBool.2.qml b/tests/auto/declarative/qmlecmascript/data/boolPropertiesEvaluateAsBool.2.qml
new file mode 100644
index 0000000..c89bb49
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/boolPropertiesEvaluateAsBool.2.qml
@@ -0,0 +1,5 @@
+import Qt.test 1.0
+
+MyQmlObject {
+ stringProperty: falseProperty?'fail':'pass'
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/constantsOverrideBindings.1.qml b/tests/auto/declarative/qmlecmascript/data/constantsOverrideBindings.1.qml
new file mode 100644
index 0000000..13c5ae5
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/constantsOverrideBindings.1.qml
@@ -0,0 +1,8 @@
+import Qt.test 1.0
+
+MyQmlObject {
+ property int c1: 0
+ property int c2: c1
+
+ onBasicSignal: c2 = 13
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/constantsOverrideBindings.2.qml b/tests/auto/declarative/qmlecmascript/data/constantsOverrideBindings.2.qml
new file mode 100644
index 0000000..d205526
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/constantsOverrideBindings.2.qml
@@ -0,0 +1,11 @@
+import Qt.test 1.0
+
+MyQmlObject {
+ property alias c1: MyConstants.c1
+ property alias c2: MyConstants.c2
+
+ objectProperty: ConstantsOverrideBindings {
+ id: MyConstants
+ c2: 10
+ }
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/constantsOverrideBindings.3.qml b/tests/auto/declarative/qmlecmascript/data/constantsOverrideBindings.3.qml
new file mode 100644
index 0000000..ca9d1d8
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/constantsOverrideBindings.3.qml
@@ -0,0 +1,7 @@
+import Qt.test 1.0
+
+MyQmlObject {
+ property int c1: 0
+ property int c2: c1
+}
+
diff --git a/tests/auto/declarative/qmlecmascript/data/deferredProperties.qml b/tests/auto/declarative/qmlecmascript/data/deferredProperties.qml
new file mode 100644
index 0000000..9dabafe
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/deferredProperties.qml
@@ -0,0 +1,7 @@
+import Qt.test 1.0
+
+MyDeferredObject {
+ value: 10
+ objectProperty: MyQmlObject {}
+ objectProperty2: MyQmlObject { id: blah }
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/dynamicCreation.helper.qml b/tests/auto/declarative/qmlecmascript/data/dynamicCreation.helper.qml
new file mode 100644
index 0000000..b26d6e1
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/dynamicCreation.helper.qml
@@ -0,0 +1,5 @@
+import Qt.test 1.0
+
+MyQmlObject{
+ objectName: "objectTwo"
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/dynamicCreation.qml b/tests/auto/declarative/qmlecmascript/data/dynamicCreation.qml
new file mode 100644
index 0000000..ed5e571
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/dynamicCreation.qml
@@ -0,0 +1,21 @@
+import Qt.test 1.0
+
+MyQmlObject{
+ id: obj
+ objectName: "obj"
+ function createOne()
+ {
+ obj.objectProperty = createQmlObject('import Qt.test 1.0; MyQmlObject{objectName:"objectOne"}', obj);
+ }
+
+ function createTwo()
+ {
+ var component = createComponent('dynamicCreation.helper.qml');
+ obj.objectProperty = component.createObject();
+ }
+
+ function createThree()
+ {
+ obj.objectProperty = createQmlObject('TypeForDynamicCreation{}', obj);
+ }
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/dynamicDeletion.qml b/tests/auto/declarative/qmlecmascript/data/dynamicDeletion.qml
new file mode 100644
index 0000000..ba87b32
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/dynamicDeletion.qml
@@ -0,0 +1,20 @@
+import Qt.test 1.0
+
+MyQmlObject{
+ id: obj
+ objectName: "obj"
+ function create()
+ {
+ obj.objectProperty = createQmlObject('import Qt.test 1.0; MyQmlObject{objectName:"emptyObject"}', obj);
+ }
+
+ function killOther()
+ {
+ obj.objectProperty.destroy(100);
+ }
+
+ function killMe()
+ {
+ obj.destroy();//Must not segfault
+ }
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/enums.1.qml b/tests/auto/declarative/qmlecmascript/data/enums.1.qml
new file mode 100644
index 0000000..6351823
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/enums.1.qml
@@ -0,0 +1,20 @@
+import Qt.test 1.0
+import Qt.test 1.0 as Namespace
+
+MyQmlObject {
+ // Enums from non-namespaced type
+ property int a: MyQmlObject.EnumValue1
+ property int b: MyQmlObject.EnumValue2
+ property int c: MyQmlObject.EnumValue3
+ property int d: MyQmlObject.EnumValue4
+
+ // Enums from namespaced type
+ property int e: Namespace.MyQmlObject.EnumValue1
+ property int f: Namespace.MyQmlObject.EnumValue2
+ property int g: Namespace.MyQmlObject.EnumValue3
+ property int h: Namespace.MyQmlObject.EnumValue4
+
+ // Test that enums don't mask attached properties
+ property int i: MyQmlObject.value
+ property int j: Namespace.MyQmlObject.value
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/enums.2.qml b/tests/auto/declarative/qmlecmascript/data/enums.2.qml
new file mode 100644
index 0000000..bdc672f
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/enums.2.qml
@@ -0,0 +1,8 @@
+import Qt.test 1.0
+import Qt.test 1.0 as Namespace
+
+MyQmlObject {
+ property int a: MyQmlObject.EnumValue10
+ property int b: Namespace.MyQmlObject.EnumValue10
+}
+
diff --git a/tests/auto/declarative/qmlecmascript/data/exceptionClearsOnReeval.qml b/tests/auto/declarative/qmlecmascript/data/exceptionClearsOnReeval.qml
new file mode 100644
index 0000000..a2f0d1a
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/exceptionClearsOnReeval.qml
@@ -0,0 +1,6 @@
+import Qt.test 1.0
+
+MyQmlObject {
+ property bool test: objectProperty.objectProperty.trueProperty
+}
+
diff --git a/tests/auto/declarative/qmlecmascript/data/extendedObjectPropertyLookup.qml b/tests/auto/declarative/qmlecmascript/data/extendedObjectPropertyLookup.qml
new file mode 100644
index 0000000..8ff3aeb
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/extendedObjectPropertyLookup.qml
@@ -0,0 +1,8 @@
+import Qt.test 1.0
+import Qt 4.6
+
+Object {
+ property MyExtendedObject a;
+ a: MyExtendedObject { id: Root }
+ property int b: Math.max(Root.extendedProperty, 0)
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/extensionObjects.qml b/tests/auto/declarative/qmlecmascript/data/extensionObjects.qml
new file mode 100644
index 0000000..a902312
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/extensionObjects.qml
@@ -0,0 +1,10 @@
+import Qt.test 1.0
+
+MyExtendedObject
+{
+ baseProperty: baseExtendedProperty
+ baseExtendedProperty: 13
+
+ coreProperty: extendedProperty
+ extendedProperty: 9
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/idShortcutInvalidates.1.qml b/tests/auto/declarative/qmlecmascript/data/idShortcutInvalidates.1.qml
new file mode 100644
index 0000000..ccb3a22
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/idShortcutInvalidates.1.qml
@@ -0,0 +1,13 @@
+import Qt.test 1.0
+import Qt 4.6
+
+MyQmlObject {
+ objectProperty: if(1) OtherObject
+
+ property var obj
+
+ obj: Object {
+ id: OtherObject
+ }
+}
+
diff --git a/tests/auto/declarative/qmlecmascript/data/idShortcutInvalidates.qml b/tests/auto/declarative/qmlecmascript/data/idShortcutInvalidates.qml
new file mode 100644
index 0000000..6c1fca6
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/idShortcutInvalidates.qml
@@ -0,0 +1,12 @@
+import Qt.test 1.0
+import Qt 4.6
+
+MyQmlObject {
+ objectProperty: OtherObject
+
+ property var obj
+
+ obj: Object {
+ id: OtherObject
+ }
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/listProperties.qml b/tests/auto/declarative/qmlecmascript/data/listProperties.qml
new file mode 100644
index 0000000..73a1d6f
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/listProperties.qml
@@ -0,0 +1,44 @@
+import Qt.test 1.0
+import Qt 4.6
+
+MyQmlObject {
+ id: root
+
+ objectListProperty: [
+ Object { property int a: 10 },
+ Object { property int a: 11 }
+ ]
+
+ objectQmlListProperty: [
+ Object { property int a: 10 },
+ Object { property int a: 1 },
+ Object { property int a: 39 }
+ ]
+
+ Script {
+ function calcTest1() {
+ var rv = 0;
+ for (var ii = 0; ii < root.objectListProperty.length; ++ii) {
+ rv += root.objectListProperty[ii].a;
+ }
+ return rv;
+ }
+
+ function calcTest2() {
+ var rv = 0;
+ for (var ii = 0; ii < root.objectQmlListProperty.length; ++ii) {
+ rv += root.objectQmlListProperty[ii].a;
+ }
+ return rv;
+ }
+ }
+
+ property int test1: calcTest1();
+ property int test2: root.objectListProperty.length
+ property int test3: calcTest2();
+ property int test4: root.objectQmlListProperty.length
+ property bool test5: root.objectQmlListProperty[1] != undefined
+ property bool test6: root.objectQmlListProperty[100] == undefined
+ property bool test7: root.objectListProperty[1] != undefined
+ property bool test8: root.objectListProperty[100] == undefined
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/methods.1.qml b/tests/auto/declarative/qmlecmascript/data/methods.1.qml
new file mode 100644
index 0000000..8ba300f
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/methods.1.qml
@@ -0,0 +1,6 @@
+import Qt.test 1.0
+
+MyQmlObject {
+ id: MyObject
+ onBasicSignal: MyObject.method()
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/methods.2.qml b/tests/auto/declarative/qmlecmascript/data/methods.2.qml
new file mode 100644
index 0000000..70911f7
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/methods.2.qml
@@ -0,0 +1,6 @@
+import Qt.test 1.0
+
+MyQmlObject {
+ id: MyObject
+ onBasicSignal: MyObject.method(163)
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/nonExistantAttachedObject.qml b/tests/auto/declarative/qmlecmascript/data/nonExistantAttachedObject.qml
new file mode 100644
index 0000000..f9585db
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/nonExistantAttachedObject.qml
@@ -0,0 +1,5 @@
+import Qt.test 1.0
+
+MyQmlObject {
+ stringProperty: MyQmlContainer.prop
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/objectsCompareAsEqual.qml b/tests/auto/declarative/qmlecmascript/data/objectsCompareAsEqual.qml
new file mode 100644
index 0000000..2526576
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/objectsCompareAsEqual.qml
@@ -0,0 +1,15 @@
+import Qt 4.6
+
+Item {
+ id: Root
+
+ property var item: Child
+ Item { id: Child }
+
+ property bool test1: Child == Child
+ property bool test2: Child.parent == Root
+ property bool test3: Root != Child
+ property bool test4: item == Child
+ property bool test5: item != Root
+}
+
diff --git a/tests/auto/declarative/qmlecmascript/data/outerBindingOverridesInnerBinding.qml b/tests/auto/declarative/qmlecmascript/data/outerBindingOverridesInnerBinding.qml
new file mode 100644
index 0000000..49ada1f
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/outerBindingOverridesInnerBinding.qml
@@ -0,0 +1,14 @@
+import Qt.test 1.0
+
+MyQmlObject {
+ property alias c1: MyConstants.c1
+ property alias c2: MyConstants.c2
+ property int c3: 0
+
+ objectProperty: ConstantsOverrideBindings {
+ id: MyConstants
+ c2: c3
+ }
+
+}
+
diff --git a/tests/auto/declarative/qmlecmascript/data/qmlToString.qml b/tests/auto/declarative/qmlecmascript/data/qmlToString.qml
new file mode 100644
index 0000000..ac296ce
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/qmlToString.qml
@@ -0,0 +1,11 @@
+import Qt.test 1.0
+
+MyQmlObject{
+ id: obj
+ objectName: "objName"
+ function testToString()
+ {
+ obj.stringProperty = obj.toString();
+ }
+
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/scope.2.qml b/tests/auto/declarative/qmlecmascript/data/scope.2.qml
new file mode 100644
index 0000000..433a22e
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/scope.2.qml
@@ -0,0 +1,42 @@
+import Qt 4.6
+
+Item {
+ property int a: 0
+ property int b: 0
+
+ Script {
+ function b() { return 11; }
+ function c() { return 33; }
+ }
+
+ Object {
+ id: a
+ property int value: 19
+ }
+
+ Object {
+ id: c
+ property int value: 24
+ }
+
+ Object {
+ id: nested
+ property int a: 1
+ property int test: a.value
+ property int test2: b()
+ property int test3: c.value
+ }
+
+
+ // id takes precedence over local, and root properties
+ property int test1: a.value
+ property alias test2: nested.test
+
+ // methods takes precedence over local, and root properties
+ property int test3: b()
+ property alias test4: nested.test2
+
+ // id takes precedence over methods
+ property int test5: c.value
+ property alias test6: nested.test3
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/scope.qml b/tests/auto/declarative/qmlecmascript/data/scope.qml
new file mode 100644
index 0000000..80222c8
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/scope.qml
@@ -0,0 +1,48 @@
+import Qt 4.6
+
+Item {
+ id: Root
+
+ property int a: 1
+ property int binding: a
+ property string binding2: a + "Test"
+ property int binding3: myFunction()
+ property int binding4: myNestedFunction()
+
+ Script {
+ function myFunction() {
+ return a;
+ }
+ }
+
+ Item {
+ id: NestedObject
+
+ Script {
+ function myNestedFunction() {
+ return a;
+ }
+ }
+
+ property int a: 2
+ property int binding: a
+ property string binding2: a + "Test"
+ property int binding3: myFunction()
+ property int binding4: myNestedFunction()
+ }
+
+ ScopeObject {
+ id: CompObject
+ }
+
+ property alias test1: Root.binding
+ property alias test2: NestedObject.binding
+ property alias test3: Root.binding2
+ property alias test4: NestedObject.binding2
+ property alias test5: Root.binding3
+ property alias test6: NestedObject.binding3
+ property alias test7: Root.binding4
+ property alias test8: NestedObject.binding4
+ property alias test9: CompObject.binding
+ property alias test10: CompObject.binding2
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/scriptAccess.js b/tests/auto/declarative/qmlecmascript/data/scriptAccess.js
new file mode 100644
index 0000000..c00d285
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/scriptAccess.js
@@ -0,0 +1,7 @@
+var extVariable = 19;
+
+function extMethod()
+{
+ return extVariable;
+}
+
diff --git a/tests/auto/declarative/qmlecmascript/data/scriptAccess.qml b/tests/auto/declarative/qmlecmascript/data/scriptAccess.qml
new file mode 100644
index 0000000..feb6d16
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/scriptAccess.qml
@@ -0,0 +1,17 @@
+import Qt 4.6
+
+Item {
+ Script {
+ function method() {
+ return 10;
+ }
+ }
+
+ Script {
+ source: "scriptAccess.js"
+ }
+
+ property int test1: method()
+ property int test2: extMethod()
+ property int test3: extVariable
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/scriptErrors.js b/tests/auto/declarative/qmlecmascript/data/scriptErrors.js
new file mode 100644
index 0000000..1d7b357
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/scriptErrors.js
@@ -0,0 +1,2 @@
+// Comment
+a = 10
diff --git a/tests/auto/declarative/qmlecmascript/data/scriptErrors.qml b/tests/auto/declarative/qmlecmascript/data/scriptErrors.qml
new file mode 100644
index 0000000..d39b312
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/scriptErrors.qml
@@ -0,0 +1,12 @@
+import Qt.test 1.0
+
+MyQmlObject {
+ Script { source: "scriptErrors.js" }
+ Script { function getValue() { a = 10; return 0; } }
+
+ property int x: a.value
+ property int y: getValue();
+
+ onBasicSignal: { print(a.value); }
+}
+
diff --git a/tests/auto/declarative/qmlecmascript/data/selfDeletingBinding.2.qml b/tests/auto/declarative/qmlecmascript/data/selfDeletingBinding.2.qml
new file mode 100644
index 0000000..58cf805
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/selfDeletingBinding.2.qml
@@ -0,0 +1,17 @@
+import Qt.test 1.0
+
+MyQmlContainer {
+ property bool triggerDelete: false
+
+ children: [
+ MyQmlObject {
+ // Will trigger deletion on binding assignment
+ deleteOnSet: Math.max(0, 1)
+ },
+
+ MyQmlObject {
+ // Will trigger deletion on binding assignment, but after component creation
+ deleteOnSet: if (triggerDelete) 1; else 0;
+ }
+ ]
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/selfDeletingBinding.qml b/tests/auto/declarative/qmlecmascript/data/selfDeletingBinding.qml
new file mode 100644
index 0000000..074851a
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/selfDeletingBinding.qml
@@ -0,0 +1,18 @@
+import Qt.test 1.0
+
+MyQmlContainer {
+ property bool triggerDelete: false
+
+ children: [
+ MyQmlObject {
+ // Will trigger deletion during binding evaluation
+ stringProperty: {deleteMe(), "Hello"}
+ },
+
+ MyQmlObject {
+ // Will trigger deletion during binding evaluation, but after component creation
+ stringProperty: if (triggerDelete) { deleteMe(), "Hello" } else { "World" }
+ }
+
+ ]
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/signalAssignment.1.qml b/tests/auto/declarative/qmlecmascript/data/signalAssignment.1.qml
new file mode 100644
index 0000000..fbd0914
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/signalAssignment.1.qml
@@ -0,0 +1,5 @@
+import Qt.test 1.0
+
+MyQmlObject {
+ onBasicSignal: setString('pass')
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/signalAssignment.2.qml b/tests/auto/declarative/qmlecmascript/data/signalAssignment.2.qml
new file mode 100644
index 0000000..8addcb9
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/signalAssignment.2.qml
@@ -0,0 +1,5 @@
+import Qt.test 1.0
+
+MyQmlObject {
+ onArgumentSignal: setString('pass ' + a + ' ' + b + ' ' + c)
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/signalParameterTypes.qml b/tests/auto/declarative/qmlecmascript/data/signalParameterTypes.qml
new file mode 100644
index 0000000..42d26a1
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/signalParameterTypes.qml
@@ -0,0 +1,16 @@
+import Qt.test 1.0
+
+MyQmlObject
+{
+ id: Root
+ property int intProperty
+ property real realProperty
+ property color colorProperty
+ property var variantProperty
+
+ signal mySignal(int a, real b, color c, var d)
+
+ onMySignal: { intProperty = a; realProperty = b; colorProperty = c; variantProperty = d; }
+
+ onBasicSignal: Root.mySignal(10, 19.2, Qt.rgba(1, 1, 0, 1), Qt.rgba(1, 0, 1, 1))
+}
diff --git a/tests/auto/declarative/qmlecmascript/data/signalTriggeredBindings.qml b/tests/auto/declarative/qmlecmascript/data/signalTriggeredBindings.qml
new file mode 100644
index 0000000..f65e253
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/signalTriggeredBindings.qml
@@ -0,0 +1,20 @@
+import Qt.test 1.0
+import Qt 4.6
+
+MyQmlObject {
+ property real base: 50
+ property alias test1: myObject.test1
+ property alias test2: myObject.test2
+
+ objectProperty: Object {
+ id: myObject
+ property real test1: base
+ property real test2: Math.max(0, base)
+ }
+
+ // Signal with no args
+ onBasicSignal: base = 200
+ // Signal with args
+ onArgumentSignal: base = 400
+}
+
diff --git a/tests/auto/declarative/qmlecmascript/data/valueTypeFunctions.qml b/tests/auto/declarative/qmlecmascript/data/valueTypeFunctions.qml
new file mode 100644
index 0000000..33b4a68
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/data/valueTypeFunctions.qml
@@ -0,0 +1,6 @@
+import Qt.test 1.0
+
+MyTypeObject {
+ rectProperty: Qt.rect(0,0,100,100)
+ rectFProperty: Qt.rect(0,0.5,100,99.5)
+}
diff --git a/tests/auto/declarative/qmlecmascript/qmlecmascript.pro b/tests/auto/declarative/qmlecmascript/qmlecmascript.pro
new file mode 100644
index 0000000..ff4d20f
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/qmlecmascript.pro
@@ -0,0 +1,9 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+macx:CONFIG -= app_bundle
+SOURCES += tst_qmlecmascript.cpp \
+ testtypes.cpp
+HEADERS += testtypes.h
+
+# QMAKE_CXXFLAGS = -fprofile-arcs -ftest-coverage
+# LIBS += -lgcov
diff --git a/tests/auto/declarative/qmlecmascript/testtypes.cpp b/tests/auto/declarative/qmlecmascript/testtypes.cpp
new file mode 100644
index 0000000..22e3071
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/testtypes.cpp
@@ -0,0 +1,42 @@
+#include "testtypes.h"
+
+class BaseExtensionObject : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(int baseExtendedProperty READ extendedProperty WRITE setExtendedProperty NOTIFY extendedPropertyChanged);
+public:
+ BaseExtensionObject(QObject *parent) : QObject(parent), m_value(0) {}
+
+ int extendedProperty() const { return m_value; }
+ void setExtendedProperty(int v) { m_value = v; emit extendedPropertyChanged(); }
+
+signals:
+ void extendedPropertyChanged();
+private:
+ int m_value;
+};
+
+class ExtensionObject : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(int extendedProperty READ extendedProperty WRITE setExtendedProperty NOTIFY extendedPropertyChanged);
+public:
+ ExtensionObject(QObject *parent) : QObject(parent), m_value(0) {}
+
+ int extendedProperty() const { return m_value; }
+ void setExtendedProperty(int v) { m_value = v; emit extendedPropertyChanged(); }
+
+signals:
+ void extendedPropertyChanged();
+private:
+ int m_value;
+};
+
+QML_DEFINE_TYPE(Qt.test, 1, 0, 0, MyQmlObject,MyQmlObject);
+QML_DEFINE_TYPE(Qt.test, 1, 0, 0, MyDeferredObject,MyDeferredObject);
+QML_DEFINE_TYPE(Qt.test, 1, 0, 0, MyQmlContainer,MyQmlContainer);
+QML_DEFINE_EXTENDED_TYPE(Qt.test, 1, 0, 0, MyBaseExtendedObject,MyBaseExtendedObject,BaseExtensionObject);
+QML_DEFINE_EXTENDED_TYPE(Qt.test, 1, 0, 0, MyExtendedObject,MyExtendedObject,ExtensionObject);
+QML_DEFINE_TYPE(Qt.test, 1, 0, 0, MyTypeObject, MyTypeObject);
+
+#include "testtypes.moc"
diff --git a/tests/auto/declarative/qmlecmascript/testtypes.h b/tests/auto/declarative/qmlecmascript/testtypes.h
new file mode 100644
index 0000000..ae3a954
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/testtypes.h
@@ -0,0 +1,282 @@
+#ifndef TESTTYPES_H
+#define TESTTYPES_H
+
+#include <QtCore/qobject.h>
+#include <QtDeclarative/qml.h>
+#include <QtDeclarative/qmlexpression.h>
+#include <QtCore/qpoint.h>
+#include <QtCore/qsize.h>
+#include <QtDeclarative/qmllist.h>
+#include <QtCore/qrect.h>
+
+class MyQmlAttachedObject : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(int value READ value CONSTANT)
+public:
+ MyQmlAttachedObject(QObject *parent) : QObject(parent) {}
+
+ int value() const { return 19; }
+};
+
+class MyQmlObject : public QObject
+{
+ Q_OBJECT
+ Q_ENUMS(MyEnum)
+ Q_ENUMS(MyEnum2)
+ Q_PROPERTY(int deleteOnSet READ deleteOnSet WRITE setDeleteOnSet)
+ Q_PROPERTY(bool trueProperty READ trueProperty CONSTANT)
+ Q_PROPERTY(bool falseProperty READ falseProperty CONSTANT)
+ Q_PROPERTY(QString stringProperty READ stringProperty WRITE setStringProperty NOTIFY stringChanged)
+ Q_PROPERTY(QObject *objectProperty READ objectProperty WRITE setObjectProperty NOTIFY objectChanged)
+ Q_PROPERTY(QmlList<QObject *> *objectQmlListProperty READ objectQmlListProperty CONSTANT)
+ Q_PROPERTY(QList<QObject *> *objectListProperty READ objectListProperty CONSTANT)
+
+public:
+ MyQmlObject(): m_methodCalled(false), m_methodIntCalled(false), m_object(0) {}
+
+ enum MyEnum { EnumValue1 = 0, EnumValue2 = 1 };
+ enum MyEnum2 { EnumValue3 = 2, EnumValue4 = 3 };
+
+ bool trueProperty() const { return true; }
+ bool falseProperty() const { return false; }
+
+ QString stringProperty() const { return m_string; }
+ void setStringProperty(const QString &s)
+ {
+ if (s == m_string)
+ return;
+ m_string = s;
+ emit stringChanged();
+ }
+
+ QObject *objectProperty() const { return m_object; }
+ void setObjectProperty(QObject *obj) {
+ if (obj == m_object)
+ return;
+ m_object = obj;
+ emit objectChanged();
+ }
+
+ QmlList<QObject *> *objectQmlListProperty() { return &m_objectQmlList; }
+ QList<QObject *> *objectListProperty() { return &m_objectQList; }
+
+ bool methodCalled() const { return m_methodCalled; }
+ bool methodIntCalled() const { return m_methodIntCalled; }
+
+ QString string() const { return m_string; }
+
+ static MyQmlAttachedObject *qmlAttachedProperties(QObject *o) {
+ return new MyQmlAttachedObject(o);
+ }
+
+ int deleteOnSet() const { return 1; }
+ void setDeleteOnSet(int v) { if(v) delete this; }
+signals:
+ void basicSignal();
+ void argumentSignal(int a, QString b, qreal c);
+ void stringChanged();
+ void objectChanged();
+
+public slots:
+ void deleteMe() { delete this; }
+ void method() { m_methodCalled = true; }
+ void method(int a) { if(a == 163) m_methodIntCalled = true; }
+ void setString(const QString &s) { m_string = s; }
+
+private:
+ friend class tst_qmlecmascript;
+ bool m_methodCalled;
+ bool m_methodIntCalled;
+
+ QObject *m_object;
+ QString m_string;
+ QmlConcreteList<QObject *> m_objectQmlList;
+ QList<QObject *> m_objectQList;
+};
+
+QML_DECLARE_TYPE(MyQmlObject);
+
+class MyQmlContainer : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(QList<MyQmlObject*>* children READ children)
+public:
+ MyQmlContainer() {}
+
+ QList<MyQmlObject*> *children() { return &m_children; }
+
+private:
+ QList<MyQmlObject*> m_children;
+};
+
+QML_DECLARE_TYPE(MyQmlContainer);
+
+class MyExpression : public QmlExpression
+{
+public:
+ MyExpression(QmlContext *ctxt, const QString &expr)
+ : QmlExpression(ctxt, expr, 0), changed(false)
+ {
+ }
+
+ virtual void valueChanged() {
+ changed = true;
+ }
+ bool changed;
+};
+
+
+class MyDefaultObject1 : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(int horseLegs READ horseLegs CONSTANT);
+ Q_PROPERTY(int antLegs READ antLegs CONSTANT);
+public:
+ int horseLegs() const { return 4; }
+ int antLegs() const { return 6; }
+};
+
+class MyDefaultObject2 : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(int antLegs READ antLegs CONSTANT);
+ Q_PROPERTY(int emuLegs READ emuLegs CONSTANT);
+public:
+ int antLegs() const { return 5; } // Had an accident
+ int emuLegs() const { return 2; }
+};
+
+class MyDefaultObject3 : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(int antLegs READ antLegs CONSTANT);
+ Q_PROPERTY(int humanLegs READ humanLegs CONSTANT);
+public:
+ int antLegs() const { return 7; } // Mutant
+ int humanLegs() const { return 2; }
+ int millipedeLegs() const { return 1000; }
+};
+
+class MyDeferredObject : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(int value READ value WRITE setValue)
+ Q_PROPERTY(QObject *objectProperty READ objectProperty WRITE setObjectProperty);
+ Q_PROPERTY(QObject *objectProperty2 READ objectProperty2 WRITE setObjectProperty2);
+ Q_CLASSINFO("DeferredPropertyNames", "value,objectProperty,objectProperty2");
+
+public:
+ MyDeferredObject() : m_value(0), m_object(0), m_object2(0) {}
+
+ int value() const { return m_value; }
+ void setValue(int v) { m_value = v; }
+
+ QObject *objectProperty() const { return m_object; }
+ void setObjectProperty(QObject *obj) { m_object = obj; }
+
+ QObject *objectProperty2() const { return m_object2; }
+ void setObjectProperty2(QObject *obj) { m_object2 = obj; }
+private:
+ int m_value;
+ QObject *m_object;
+ QObject *m_object2;
+};
+QML_DECLARE_TYPE(MyDeferredObject);
+
+class MyBaseExtendedObject : public QObject
+{
+Q_OBJECT
+Q_PROPERTY(int baseProperty READ baseProperty WRITE setBaseProperty);
+public:
+ MyBaseExtendedObject() : m_value(0) {}
+
+ int baseProperty() const { return m_value; }
+ void setBaseProperty(int v) { m_value = v; }
+
+private:
+ int m_value;
+};
+QML_DECLARE_TYPE(MyBaseExtendedObject);
+
+class MyExtendedObject : public MyBaseExtendedObject
+{
+Q_OBJECT
+Q_PROPERTY(int coreProperty READ coreProperty WRITE setCoreProperty);
+public:
+ MyExtendedObject() : m_value(0) {}
+
+ int coreProperty() const { return m_value; }
+ void setCoreProperty(int v) { m_value = v; }
+
+private:
+ int m_value;
+};
+QML_DECLARE_TYPE(MyExtendedObject);
+
+class MyTypeObject : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(QPoint pointProperty READ pointProperty WRITE setPointProperty);
+ Q_PROPERTY(QPointF pointFProperty READ pointFProperty WRITE setPointFProperty);
+ Q_PROPERTY(QSize sizeProperty READ sizeProperty WRITE setSizeProperty);
+ Q_PROPERTY(QSizeF sizeFProperty READ sizeFProperty WRITE setSizeFProperty);
+ Q_PROPERTY(QRect rectProperty READ rectProperty WRITE setRectProperty NOTIFY rectPropertyChanged);
+ Q_PROPERTY(QRectF rectFProperty READ rectFProperty WRITE setRectFProperty);
+
+public:
+ MyTypeObject() {}
+
+ QPoint pointPropertyValue;
+ QPoint pointProperty() const {
+ return pointPropertyValue;
+ }
+ void setPointProperty(const QPoint &v) {
+ pointPropertyValue = v;
+ }
+
+ QPointF pointFPropertyValue;
+ QPointF pointFProperty() const {
+ return pointFPropertyValue;
+ }
+ void setPointFProperty(const QPointF &v) {
+ pointFPropertyValue = v;
+ }
+
+ QSize sizePropertyValue;
+ QSize sizeProperty() const {
+ return sizePropertyValue;
+ }
+ void setSizeProperty(const QSize &v) {
+ sizePropertyValue = v;
+ }
+
+ QSizeF sizeFPropertyValue;
+ QSizeF sizeFProperty() const {
+ return sizeFPropertyValue;
+ }
+ void setSizeFProperty(const QSizeF &v) {
+ sizeFPropertyValue = v;
+ }
+
+ QRect rectPropertyValue;
+ QRect rectProperty() const {
+ return rectPropertyValue;
+ }
+ void setRectProperty(const QRect &v) {
+ rectPropertyValue = v;
+ }
+
+ QRectF rectFPropertyValue;
+ QRectF rectFProperty() const {
+ return rectFPropertyValue;
+ }
+ void setRectFProperty(const QRectF &v) {
+ rectFPropertyValue = v;
+ }
+
+};
+QML_DECLARE_TYPE(MyTypeObject);
+
+#endif // TESTTYPES_H
+
diff --git a/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp b/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp
new file mode 100644
index 0000000..a0e65c5
--- /dev/null
+++ b/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp
@@ -0,0 +1,845 @@
+#include <qtest.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtDeclarative/qmlengine.h>
+#include <QtDeclarative/qmlexpression.h>
+#include <QtDeclarative/qmlcontext.h>
+#include <QtCore/qfileinfo.h>
+#include <QtCore/qdebug.h>
+#include <QtCore/private/qguard_p.h>
+#include <QtCore/qdir.h>
+#include "testtypes.h"
+
+/*
+This test covers evaluation of ECMAScript expressions and bindings from within
+QML. This does not include static QML language issues.
+
+Static QML language issues are covered in qmllanguage
+*/
+inline QUrl TEST_FILE(const QString &filename)
+{
+ QFileInfo fileInfo(__FILE__);
+ return QUrl::fromLocalFile(fileInfo.absoluteDir().filePath("data/" + filename));
+}
+
+inline QUrl TEST_FILE(const char *filename)
+{
+ return TEST_FILE(QLatin1String(filename));
+}
+
+class tst_qmlecmascript : public QObject
+{
+ Q_OBJECT
+public:
+ tst_qmlecmascript() {}
+
+private slots:
+ void idShortcutInvalidates();
+ void boolPropertiesEvaluateAsBool();
+ void methods();
+ void signalAssignment();
+ void bindingLoop();
+ void basicExpressions();
+ void basicExpressions_data();
+ void arrayExpressions();
+ void contextPropertiesTriggerReeval();
+ void objectPropertiesTriggerReeval();
+ void deferredProperties();
+ void extensionObjects();
+ void attachedProperties();
+ void enums();
+ void valueTypeFunctions();
+ void constantsOverrideBindings();
+ void outerBindingOverridesInnerBinding();
+ void aliasPropertyAndBinding();
+ void nonExistantAttachedObject();
+ void scope();
+ void signalParameterTypes();
+ void objectsCompareAsEqual();
+ void scriptAccess();
+ void dynamicCreation_data();
+ void dynamicCreation();
+ void dynamicDestruction();
+ void objectToString();
+ void selfDeletingBinding();
+ void extendedObjectPropertyLookup();
+ void scriptErrors();
+ void signalTriggeredBindings();
+ void listProperties();
+ void exceptionClearsOnReeval();
+
+private:
+ QmlEngine engine;
+};
+
+void tst_qmlecmascript::idShortcutInvalidates()
+{
+ {
+ QmlComponent component(&engine, TEST_FILE("idShortcutInvalidates.qml"));
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+ QVERIFY(object->objectProperty() != 0);
+ delete object->objectProperty();
+ QVERIFY(object->objectProperty() == 0);
+ }
+
+ {
+ QmlComponent component(&engine, TEST_FILE("idShortcutInvalidates.1.qml"));
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+ QVERIFY(object->objectProperty() != 0);
+ delete object->objectProperty();
+ QVERIFY(object->objectProperty() == 0);
+ }
+}
+
+void tst_qmlecmascript::boolPropertiesEvaluateAsBool()
+{
+ {
+ QmlComponent component(&engine, TEST_FILE("boolPropertiesEvaluateAsBool.1.qml"));
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+ QCOMPARE(object->stringProperty(), QLatin1String("pass"));
+ }
+ {
+ QmlComponent component(&engine, TEST_FILE("boolPropertiesEvaluateAsBool.2.qml"));
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+ QCOMPARE(object->stringProperty(), QLatin1String("pass"));
+ }
+}
+
+void tst_qmlecmascript::signalAssignment()
+{
+ {
+ QmlComponent component(&engine, TEST_FILE("signalAssignment.1.qml"));
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+ QCOMPARE(object->string(), QString());
+ emit object->basicSignal();
+ QCOMPARE(object->string(), QString("pass"));
+ }
+
+ {
+ QmlComponent component(&engine, TEST_FILE("signalAssignment.2.qml"));
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+ QCOMPARE(object->string(), QString());
+ emit object->argumentSignal(19, "Hello world!", 10.3);
+ QCOMPARE(object->string(), QString("pass 19 Hello world! 10.3"));
+ }
+}
+
+void tst_qmlecmascript::methods()
+{
+ {
+ QmlComponent component(&engine, TEST_FILE("methods.1.qml"));
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+ QCOMPARE(object->methodCalled(), false);
+ QCOMPARE(object->methodIntCalled(), false);
+ emit object->basicSignal();
+ QCOMPARE(object->methodCalled(), true);
+ QCOMPARE(object->methodIntCalled(), false);
+ }
+
+ {
+ QmlComponent component(&engine, TEST_FILE("methods.2.qml"));
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+ QCOMPARE(object->methodCalled(), false);
+ QCOMPARE(object->methodIntCalled(), false);
+ emit object->basicSignal();
+ QCOMPARE(object->methodCalled(), false);
+ QCOMPARE(object->methodIntCalled(), true);
+ }
+}
+
+void tst_qmlecmascript::bindingLoop()
+{
+ QmlComponent component(&engine, TEST_FILE("bindingLoop.qml"));
+ QString warning = "QML MyQmlObject (" + component.url().toString() + ":9:9) Binding loop detected for property \"stringProperty\"";
+ QTest::ignoreMessage(QtWarningMsg, warning.toLatin1().constData());
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+}
+
+void tst_qmlecmascript::basicExpressions_data()
+{
+ QTest::addColumn<QString>("expression");
+ QTest::addColumn<QVariant>("result");
+ QTest::addColumn<bool>("nest");
+
+ QTest::newRow("Context property") << "a" << QVariant(1944) << false;
+ QTest::newRow("Context property") << "a" << QVariant(1944) << true;
+ QTest::newRow("Context property expression") << "a * 2" << QVariant(3888) << false;
+ QTest::newRow("Context property expression") << "a * 2" << QVariant(3888) << true;
+ QTest::newRow("Overridden context property") << "b" << QVariant("Milk") << false;
+ QTest::newRow("Overridden context property") << "b" << QVariant("Cow") << true;
+ QTest::newRow("Object property") << "object.stringProperty" << QVariant("Object1") << false;
+ QTest::newRow("Object property") << "object.stringProperty" << QVariant("Object1") << true;
+ QTest::newRow("Overridden object property") << "objectOverride.stringProperty" << QVariant("Object2") << false;
+ QTest::newRow("Overridden object property") << "objectOverride.stringProperty" << QVariant("Object3") << true;
+ QTest::newRow("Default object property") << "horseLegs" << QVariant(4) << false;
+ QTest::newRow("Default object property") << "antLegs" << QVariant(6) << false;
+ QTest::newRow("Default object property") << "emuLegs" << QVariant(2) << false;
+ QTest::newRow("Nested default object property") << "horseLegs" << QVariant(4) << true;
+ QTest::newRow("Nested default object property") << "antLegs" << QVariant(7) << true;
+ QTest::newRow("Nested default object property") << "emuLegs" << QVariant(2) << true;
+ QTest::newRow("Nested default object property") << "humanLegs" << QVariant(2) << true;
+ QTest::newRow("Context property override default object property") << "millipedeLegs" << QVariant(100) << true;
+}
+
+void tst_qmlecmascript::basicExpressions()
+{
+ QFETCH(QString, expression);
+ QFETCH(QVariant, result);
+ QFETCH(bool, nest);
+
+ MyQmlObject object1;
+ MyQmlObject object2;
+ MyQmlObject object3;
+ MyDefaultObject1 default1;
+ MyDefaultObject2 default2;
+ MyDefaultObject3 default3;
+ object1.setStringProperty("Object1");
+ object2.setStringProperty("Object2");
+ object3.setStringProperty("Object3");
+
+ QmlContext context(engine.rootContext());
+ QmlContext nestedContext(&context);
+
+ context.addDefaultObject(&default1);
+ context.addDefaultObject(&default2);
+ context.setContextProperty("a", QVariant(1944));
+ context.setContextProperty("b", QVariant("Milk"));
+ context.setContextProperty("object", &object1);
+ context.setContextProperty("objectOverride", &object2);
+ nestedContext.addDefaultObject(&default3);
+ nestedContext.setContextProperty("b", QVariant("Cow"));
+ nestedContext.setContextProperty("objectOverride", &object3);
+ nestedContext.setContextProperty("millipedeLegs", QVariant(100));
+
+ MyExpression expr(nest?&nestedContext:&context, expression);
+ QCOMPARE(expr.value(), result);
+}
+
+Q_DECLARE_METATYPE(QList<QObject *>);
+void tst_qmlecmascript::arrayExpressions()
+{
+ QObject obj1;
+ QObject obj2;
+ QObject obj3;
+
+ QmlContext context(engine.rootContext());
+ context.setContextProperty("a", &obj1);
+ context.setContextProperty("b", &obj2);
+ context.setContextProperty("c", &obj3);
+
+ MyExpression expr(&context, "[a, b, c, 10]");
+ QVariant result = expr.value();
+ QCOMPARE(result.userType(), qMetaTypeId<QList<QObject *> >());
+ QList<QObject *> list = qvariant_cast<QList<QObject *> >(result);
+ QCOMPARE(list.count(), 4);
+ QCOMPARE(list.at(0), &obj1);
+ QCOMPARE(list.at(1), &obj2);
+ QCOMPARE(list.at(2), &obj3);
+ QCOMPARE(list.at(3), (QObject *)0);
+}
+
+// Tests that modifying a context property will reevaluate expressions
+void tst_qmlecmascript::contextPropertiesTriggerReeval()
+{
+ QmlContext context(engine.rootContext());
+ MyQmlObject object1;
+ MyQmlObject object2;
+ MyQmlObject *object3 = new MyQmlObject;
+
+ object1.setStringProperty("Hello");
+ object2.setStringProperty("World");
+
+ context.setContextProperty("testProp", QVariant(1));
+ context.setContextProperty("testObj", &object1);
+ context.setContextProperty("testObj2", object3);
+
+ {
+ MyExpression expr(&context, "testProp + 1");
+ QCOMPARE(expr.changed, false);
+ QCOMPARE(expr.value(), QVariant(2));
+
+ context.setContextProperty("testProp", QVariant(2));
+ QCOMPARE(expr.changed, true);
+ QCOMPARE(expr.value(), QVariant(3));
+ }
+
+ {
+ MyExpression expr(&context, "testProp + testProp + testProp");
+ QCOMPARE(expr.changed, false);
+ QCOMPARE(expr.value(), QVariant(6));
+
+ context.setContextProperty("testProp", QVariant(4));
+ QCOMPARE(expr.changed, true);
+ QCOMPARE(expr.value(), QVariant(12));
+ }
+
+ {
+ MyExpression expr(&context, "testObj.stringProperty");
+ QCOMPARE(expr.changed, false);
+ QCOMPARE(expr.value(), QVariant("Hello"));
+
+ context.setContextProperty("testObj", &object2);
+ QCOMPARE(expr.changed, true);
+ QCOMPARE(expr.value(), QVariant("World"));
+ }
+
+ {
+ MyExpression expr(&context, "testObj.stringProperty /**/");
+ QCOMPARE(expr.changed, false);
+ QCOMPARE(expr.value(), QVariant("World"));
+
+ context.setContextProperty("testObj", &object1);
+ QCOMPARE(expr.changed, true);
+ QCOMPARE(expr.value(), QVariant("Hello"));
+ }
+
+ {
+ MyExpression expr(&context, "testObj2");
+ QCOMPARE(expr.changed, false);
+ QCOMPARE(expr.value(), QVariant::fromValue((QObject *)object3));
+ }
+
+}
+
+void tst_qmlecmascript::objectPropertiesTriggerReeval()
+{
+ QmlContext context(engine.rootContext());
+ MyQmlObject object1;
+ MyQmlObject object2;
+ MyQmlObject object3;
+ context.setContextProperty("testObj", &object1);
+
+ object1.setStringProperty(QLatin1String("Hello"));
+ object2.setStringProperty(QLatin1String("Dog"));
+ object3.setStringProperty(QLatin1String("Cat"));
+
+ {
+ MyExpression expr(&context, "testObj.stringProperty");
+ QCOMPARE(expr.changed, false);
+ QCOMPARE(expr.value(), QVariant("Hello"));
+
+ object1.setStringProperty(QLatin1String("World"));
+ QCOMPARE(expr.changed, true);
+ QCOMPARE(expr.value(), QVariant("World"));
+ }
+
+ {
+ MyExpression expr(&context, "testObj.objectProperty.stringProperty");
+ QCOMPARE(expr.changed, false);
+ QCOMPARE(expr.value(), QVariant());
+
+ object1.setObjectProperty(&object2);
+ QCOMPARE(expr.changed, true);
+ expr.changed = false;
+ QCOMPARE(expr.value(), QVariant("Dog"));
+
+ object1.setObjectProperty(&object3);
+ QCOMPARE(expr.changed, true);
+ expr.changed = false;
+ QCOMPARE(expr.value(), QVariant("Cat"));
+
+ object1.setObjectProperty(0);
+ QCOMPARE(expr.changed, true);
+ expr.changed = false;
+ QCOMPARE(expr.value(), QVariant());
+
+ object1.setObjectProperty(&object3);
+ QCOMPARE(expr.changed, true);
+ expr.changed = false;
+ QCOMPARE(expr.value(), QVariant("Cat"));
+
+ object3.setStringProperty("Donkey");
+ QCOMPARE(expr.changed, true);
+ expr.changed = false;
+ QCOMPARE(expr.value(), QVariant("Donkey"));
+ }
+}
+
+void tst_qmlecmascript::deferredProperties()
+{
+ QmlComponent component(&engine, TEST_FILE("deferredProperties.qml"));
+ MyDeferredObject *object =
+ qobject_cast<MyDeferredObject *>(component.create());
+ QVERIFY(object != 0);
+ QCOMPARE(object->value(), 0);
+ QVERIFY(object->objectProperty() == 0);
+ QVERIFY(object->objectProperty2() != 0);
+ qmlExecuteDeferred(object);
+ QCOMPARE(object->value(), 10);
+ QVERIFY(object->objectProperty() != 0);
+ MyQmlObject *qmlObject =
+ qobject_cast<MyQmlObject *>(object->objectProperty());
+ QVERIFY(qmlObject != 0);
+}
+
+void tst_qmlecmascript::extensionObjects()
+{
+ QmlComponent component(&engine, TEST_FILE("extensionObjects.qml"));
+ MyExtendedObject *object =
+ qobject_cast<MyExtendedObject *>(component.create());
+ QVERIFY(object != 0);
+ QCOMPARE(object->baseProperty(), 13);
+ QCOMPARE(object->coreProperty(), 9);
+
+ object->setProperty("extendedProperty", QVariant(11));
+ object->setProperty("baseExtendedProperty", QVariant(92));
+ QCOMPARE(object->coreProperty(), 11);
+ QCOMPARE(object->baseProperty(), 92);
+}
+
+void tst_qmlecmascript::attachedProperties()
+{
+ QmlComponent component(&engine, TEST_FILE("attachedProperty.qml"));
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+ QCOMPARE(object->property("a").toInt(), 19);
+ QCOMPARE(object->property("b").toInt(), 19);
+ QCOMPARE(object->property("c").toInt(), 19);
+ QCOMPARE(object->property("d").toInt(), 19);
+
+ // ### Need to test attached property assignment
+}
+
+void tst_qmlecmascript::enums()
+{
+ // Existant enums
+ {
+ QmlComponent component(&engine, TEST_FILE("enums.1.qml"));
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("a").toInt(), 0);
+ QCOMPARE(object->property("b").toInt(), 1);
+ QCOMPARE(object->property("c").toInt(), 2);
+ QCOMPARE(object->property("d").toInt(), 3);
+ QCOMPARE(object->property("e").toInt(), 0);
+ QCOMPARE(object->property("f").toInt(), 1);
+ QCOMPARE(object->property("g").toInt(), 2);
+ QCOMPARE(object->property("h").toInt(), 3);
+ QCOMPARE(object->property("i").toInt(), 19);
+ QCOMPARE(object->property("j").toInt(), 19);
+ }
+ // Non-existant enums
+ {
+ QmlComponent component(&engine, TEST_FILE("enums.2.qml"));
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+ QCOMPARE(object->property("a").toInt(), 0);
+ QCOMPARE(object->property("b").toInt(), 0);
+ }
+}
+
+void tst_qmlecmascript::valueTypeFunctions()
+{
+ QmlComponent component(&engine, TEST_FILE("valueTypeFunctions.qml"));
+ MyTypeObject *obj = qobject_cast<MyTypeObject*>(component.create());
+ QVERIFY(obj != 0);
+ QCOMPARE(obj->rectProperty(), QRect(0,0,100,100));
+ QCOMPARE(obj->rectFProperty(), QRectF(0,0.5,100,99.5));
+}
+
+/*
+Tests that writing a constant to a property with a binding on it disables the
+binding.
+*/
+void tst_qmlecmascript::constantsOverrideBindings()
+{
+ // From ECMAScript
+ {
+ QmlComponent component(&engine, TEST_FILE("constantsOverrideBindings.1.qml"));
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("c2").toInt(), 0);
+ object->setProperty("c1", QVariant(9));
+ QCOMPARE(object->property("c2").toInt(), 9);
+
+ emit object->basicSignal();
+
+ QCOMPARE(object->property("c2").toInt(), 13);
+ object->setProperty("c1", QVariant(8));
+ QCOMPARE(object->property("c2").toInt(), 13);
+ }
+
+ // During construction
+ {
+ QmlComponent component(&engine, TEST_FILE("constantsOverrideBindings.2.qml"));
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("c1").toInt(), 0);
+ QCOMPARE(object->property("c2").toInt(), 10);
+ object->setProperty("c1", QVariant(9));
+ QCOMPARE(object->property("c1").toInt(), 9);
+ QCOMPARE(object->property("c2").toInt(), 10);
+ }
+
+#if 0
+ // From C++
+ {
+ QmlComponent component(&engine, TEST_FILE("constantsOverrideBindings.3.qml"));
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("c2").toInt(), 0);
+ object->setProperty("c1", QVariant(9));
+ QCOMPARE(object->property("c2").toInt(), 9);
+
+ object->setProperty("c2", QVariant(13));
+ QCOMPARE(object->property("c2").toInt(), 13);
+ object->setProperty("c1", QVariant(7));
+ QCOMPARE(object->property("c1").toInt(), 7);
+ QCOMPARE(object->property("c2").toInt(), 13);
+ }
+#endif
+}
+
+/*
+Tests that assigning a binding to a property that already has a binding causes
+the original binding to be disabled.
+*/
+void tst_qmlecmascript::outerBindingOverridesInnerBinding()
+{
+ QmlComponent component(&engine,
+ TEST_FILE("outerBindingOverridesInnerBinding.qml"));
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("c1").toInt(), 0);
+ QCOMPARE(object->property("c2").toInt(), 0);
+ QCOMPARE(object->property("c3").toInt(), 0);
+
+ object->setProperty("c1", QVariant(9));
+ QCOMPARE(object->property("c1").toInt(), 9);
+ QCOMPARE(object->property("c2").toInt(), 0);
+ QCOMPARE(object->property("c3").toInt(), 0);
+
+ object->setProperty("c3", QVariant(8));
+ QCOMPARE(object->property("c1").toInt(), 9);
+ QCOMPARE(object->property("c2").toInt(), 8);
+ QCOMPARE(object->property("c3").toInt(), 8);
+}
+
+/*
+Access a non-existant attached object.
+
+Tests for a regression where this used to crash.
+*/
+void tst_qmlecmascript::nonExistantAttachedObject()
+{
+ QmlComponent component(&engine, TEST_FILE("nonExistantAttachedObject.qml"));
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+}
+
+void tst_qmlecmascript::scope()
+{
+ {
+ QmlComponent component(&engine, TEST_FILE("scope.qml"));
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("test1").toInt(), 1);
+ QCOMPARE(object->property("test2").toInt(), 2);
+ QCOMPARE(object->property("test3").toString(), QString("1Test"));
+ QCOMPARE(object->property("test4").toString(), QString("2Test"));
+ QCOMPARE(object->property("test5").toInt(), 1);
+ QCOMPARE(object->property("test6").toInt(), 1);
+ QCOMPARE(object->property("test7").toInt(), 2);
+ QCOMPARE(object->property("test8").toInt(), 2);
+ QCOMPARE(object->property("test9").toInt(), 1);
+ QCOMPARE(object->property("test10").toInt(), 3);
+ }
+
+ {
+ QmlComponent component(&engine, TEST_FILE("scope.2.qml"));
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("test1").toInt(), 19);
+ QCOMPARE(object->property("test2").toInt(), 19);
+ QCOMPARE(object->property("test3").toInt(), 11);
+ QCOMPARE(object->property("test4").toInt(), 11);
+ QCOMPARE(object->property("test5").toInt(), 24);
+ QCOMPARE(object->property("test6").toInt(), 24);
+ }
+}
+
+/*
+Tests that "any" type passes through a synthesized signal parameter. This
+is essentially a test of QmlMetaType::copy()
+*/
+void tst_qmlecmascript::signalParameterTypes()
+{
+ QmlComponent component(&engine, TEST_FILE("signalParameterTypes.qml"));
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+
+ emit object->basicSignal();
+
+ QCOMPARE(object->property("intProperty").toInt(), 10);
+ QCOMPARE(object->property("realProperty").toReal(), 19.2);
+ QVERIFY(object->property("colorProperty").value<QColor>() == QColor(255, 255, 0, 255));
+ QVERIFY(object->property("variantProperty") == QVariant::fromValue(QColor(255, 0, 255, 255)));
+}
+
+/*
+Test that two JS objects for the same QObject compare as equal.
+*/
+void tst_qmlecmascript::objectsCompareAsEqual()
+{
+ QmlComponent component(&engine, TEST_FILE("objectsCompareAsEqual.qml"));
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("test1").toBool(), true);
+ QCOMPARE(object->property("test2").toBool(), true);
+ QCOMPARE(object->property("test3").toBool(), true);
+ QCOMPARE(object->property("test4").toBool(), true);
+ QCOMPARE(object->property("test5").toBool(), true);
+}
+
+/*
+Confirm bindings and alias properties can coexist.
+
+Tests for a regression where the binding would not reevaluate.
+*/
+void tst_qmlecmascript::aliasPropertyAndBinding()
+{
+ QmlComponent component(&engine, TEST_FILE("aliasPropertyAndBinding.qml"));
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("c2").toInt(), 3);
+ QCOMPARE(object->property("c3").toInt(), 3);
+
+ object->setProperty("c2", QVariant(19));
+
+ QCOMPARE(object->property("c2").toInt(), 19);
+ QCOMPARE(object->property("c3").toInt(), 19);
+}
+
+/*
+Tests that only methods of Script {} blocks are exposed.
+*/
+void tst_qmlecmascript::scriptAccess()
+{
+ QmlComponent component(&engine, TEST_FILE("scriptAccess.qml"));
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("test1").toInt(), 10);
+ QCOMPARE(object->property("test2").toInt(), 19);
+ QCOMPARE(object->property("test3").toInt(), 0);
+}
+
+void tst_qmlecmascript::dynamicCreation_data()
+{
+ QTest::addColumn<QString>("method");
+ QTest::addColumn<QString>("createdName");
+
+ QTest::newRow("One") << "createOne" << "objectOne";
+ QTest::newRow("Two") << "createTwo" << "objectTwo";
+ QTest::newRow("Three") << "createThree" << "objectThree";
+}
+
+/*
+Test using createQmlObject to dynamically generate an item
+Also using createComponent is tested.
+*/
+void tst_qmlecmascript::dynamicCreation()
+{
+ QFETCH(QString, method);
+ QFETCH(QString, createdName);
+
+ QmlComponent component(&engine, TEST_FILE("dynamicCreation.qml"));
+ MyQmlObject *object = qobject_cast<MyQmlObject*>(component.create());
+ QVERIFY(object != 0);
+
+ QMetaObject::invokeMethod(object, method.toUtf8());
+ QObject *created = object->objectProperty();
+ QVERIFY(created);
+ QCOMPARE(created->objectName(), createdName);
+}
+
+/*
+ Tests the destroy function
+*/
+void tst_qmlecmascript::dynamicDestruction()
+{
+ QmlComponent component(&engine, TEST_FILE("dynamicDeletion.qml"));
+ QGuard<MyQmlObject> object = qobject_cast<MyQmlObject*>(component.create());
+ QVERIFY(object != 0);
+ QGuard<QObject> createdQmlObject = 0;
+
+ QMetaObject::invokeMethod(object, "create");
+ createdQmlObject = object->objectProperty();
+ QVERIFY(createdQmlObject);
+ QCOMPARE(createdQmlObject->objectName(), QString("emptyObject"));
+
+ QMetaObject::invokeMethod(object, "killOther");
+ QVERIFY(createdQmlObject);
+ QTest::qWait(0);
+ QCoreApplication::instance()->processEvents(QEventLoop::DeferredDeletion);
+ QVERIFY(createdQmlObject);
+ QTest::qWait(100);
+ QCoreApplication::instance()->processEvents(QEventLoop::DeferredDeletion);
+ QVERIFY(!createdQmlObject);
+
+ QMetaObject::invokeMethod(object, "killMe");
+ QVERIFY(object);
+ QTest::qWait(0);
+ QCoreApplication::instance()->processEvents(QEventLoop::DeferredDeletion);
+ QVERIFY(!object);
+}
+
+/*
+ tests that id.toString() works
+*/
+void tst_qmlecmascript::objectToString()
+{
+ QmlComponent component(&engine, TEST_FILE("qmlToString.qml"));
+ MyQmlObject *object = qobject_cast<MyQmlObject*>(component.create());
+ QVERIFY(object != 0);
+ QMetaObject::invokeMethod(object, "testToString");
+ QVERIFY(object->stringProperty().startsWith("MyQmlObject_QML_"));
+ QVERIFY(object->stringProperty().endsWith(", \"objName\")"));
+}
+
+/*
+Tests bindings that indirectly cause their own deletion work.
+
+This test is best run under valgrind to ensure no invalid memory access occur.
+*/
+void tst_qmlecmascript::selfDeletingBinding()
+{
+ {
+ QmlComponent component(&engine, TEST_FILE("selfDeletingBinding.qml"));
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+ object->setProperty("triggerDelete", true);
+ }
+
+ {
+ QmlComponent component(&engine, TEST_FILE("selfDeletingBinding.2.qml"));
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+ object->setProperty("triggerDelete", true);
+ }
+}
+
+/*
+Test that extended object properties can be accessed.
+
+This test a regression where this used to crash. The issue was specificially
+for extended objects that did not include a synthesized meta object (so non-root
+and no synthesiszed properties).
+*/
+void tst_qmlecmascript::extendedObjectPropertyLookup()
+{
+ QmlComponent component(&engine, TEST_FILE("extendedObjectPropertyLookup.qml"));
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+}
+
+/*
+Test file/lineNumbers for binding/Script errors.
+*/
+void tst_qmlecmascript::scriptErrors()
+{
+ QmlComponent component(&engine, TEST_FILE("scriptErrors.qml"));
+ QString url = component.url().toString();
+
+ QString warning1 = url.left(url.length() - 3) + "js:2: Error: Invalid write to global property \"a\"";
+ QString warning2 = url + ":7: TypeError: Result of expression 'a' [undefined] is not an object.";
+ QString warning3 = url + ":5: Error: Invalid write to global property \"a\"";
+ QString warning4 = url + ":10: TypeError: Result of expression 'a' [undefined] is not an object.";
+
+ QTest::ignoreMessage(QtWarningMsg, warning1.toLatin1().constData());
+ QTest::ignoreMessage(QtWarningMsg, warning2.toLatin1().constData());
+ QTest::ignoreMessage(QtWarningMsg, warning3.toLatin1().constData());
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+
+ QTest::ignoreMessage(QtWarningMsg, warning4.toLatin1().constData());
+ emit object->basicSignal();
+}
+
+/*
+Test bindings still work when the reeval is triggered from within
+a signal script.
+*/
+void tst_qmlecmascript::signalTriggeredBindings()
+{
+ QmlComponent component(&engine, TEST_FILE("signalTriggeredBindings.qml"));
+ MyQmlObject *object = qobject_cast<MyQmlObject*>(component.create());
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("base").toReal(), 50.);
+ QCOMPARE(object->property("test1").toReal(), 50.);
+ QCOMPARE(object->property("test2").toReal(), 50.);
+
+ object->basicSignal();
+
+ QCOMPARE(object->property("base").toReal(), 200.);
+ QCOMPARE(object->property("test1").toReal(), 200.);
+ QCOMPARE(object->property("test2").toReal(), 200.);
+
+ object->argumentSignal(10, QString(), 10);
+
+ QCOMPARE(object->property("base").toReal(), 400.);
+ QCOMPARE(object->property("test1").toReal(), 400.);
+ QCOMPARE(object->property("test2").toReal(), 400.);
+}
+
+/*
+Test that list properties can be iterated from ECMAScript
+*/
+void tst_qmlecmascript::listProperties()
+{
+ QmlComponent component(&engine, TEST_FILE("listProperties.qml"));
+ MyQmlObject *object = qobject_cast<MyQmlObject*>(component.create());
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("test1").toInt(), 21);
+ QCOMPARE(object->property("test2").toInt(), 2);
+ QCOMPARE(object->property("test3").toInt(), 50);
+ QCOMPARE(object->property("test4").toInt(), 3);
+ QCOMPARE(object->property("test5").toBool(), true);
+ QCOMPARE(object->property("test6").toBool(), true);
+ QCOMPARE(object->property("test7").toBool(), true);
+ QCOMPARE(object->property("test8").toBool(), true);
+}
+
+void tst_qmlecmascript::exceptionClearsOnReeval()
+{
+ QmlComponent component(&engine, TEST_FILE("exceptionClearsOnReeval.qml"));
+ QString url = component.url().toString();
+
+ QString warning = url + ":4: TypeError: Result of expression 'objectProperty.objectProperty' [undefined] is not an object.";
+
+ QTest::ignoreMessage(QtWarningMsg, warning.toLatin1().constData());
+ MyQmlObject *object = qobject_cast<MyQmlObject*>(component.create());
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("test").toBool(), false);
+
+ MyQmlObject object2;
+ MyQmlObject object3;
+ object2.setObjectProperty(&object3);
+ object->setObjectProperty(&object2);
+
+ QCOMPARE(object->property("test").toBool(), true);
+}
+
+QTEST_MAIN(tst_qmlecmascript)
+
+#include "tst_qmlecmascript.moc"
diff --git a/tests/auto/declarative/qmllanguage/data/Alias.qml b/tests/auto/declarative/qmllanguage/data/Alias.qml
new file mode 100644
index 0000000..8264e0d
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/Alias.qml
@@ -0,0 +1,8 @@
+import Qt 4.6
+
+Object {
+ id: Root
+ property int value: 1892
+ property alias aliasValue: Root.value
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/Alias2.qml b/tests/auto/declarative/qmllanguage/data/Alias2.qml
new file mode 100644
index 0000000..b7e81a5
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/Alias2.qml
@@ -0,0 +1,9 @@
+import Test 1.0
+import Qt 4.6
+
+Object {
+ property var other
+ other: MyTypeObject { id: obj }
+ property alias enumAlias: obj.enumProperty;
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/ComponentComposite.qml b/tests/auto/declarative/qmllanguage/data/ComponentComposite.qml
new file mode 100644
index 0000000..f8726ef
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/ComponentComposite.qml
@@ -0,0 +1,5 @@
+import Qt 4.6
+
+Component {
+ Object {}
+}
diff --git a/tests/auto/declarative/qmllanguage/data/CompositeType.qml b/tests/auto/declarative/qmllanguage/data/CompositeType.qml
new file mode 100644
index 0000000..8c5094b
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/CompositeType.qml
@@ -0,0 +1,4 @@
+import Qt 4.6
+
+Object {
+}
diff --git a/tests/auto/declarative/qmllanguage/data/CompositeType2.qml b/tests/auto/declarative/qmllanguage/data/CompositeType2.qml
new file mode 100644
index 0000000..86210e9
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/CompositeType2.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+
+MyQmlObject {
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/CompositeType3.qml b/tests/auto/declarative/qmllanguage/data/CompositeType3.qml
new file mode 100644
index 0000000..bb5469a
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/CompositeType3.qml
@@ -0,0 +1,5 @@
+import Qt 4.6
+
+Object {
+ property int a
+}
diff --git a/tests/auto/declarative/qmllanguage/data/CompositeType4.qml b/tests/auto/declarative/qmllanguage/data/CompositeType4.qml
new file mode 100644
index 0000000..a6a8168
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/CompositeType4.qml
@@ -0,0 +1,6 @@
+import Test 1.0
+
+MyQmlObject {
+ property int a
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/I18n.qml b/tests/auto/declarative/qmllanguage/data/I18n.qml
new file mode 100644
index 0000000..558c836
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/I18n.qml
@@ -0,0 +1,6 @@
+import Test 1.0
+
+MyTypeObject {
+ property int áâãäå: 10
+ stringProperty: "Test áâãäå: " + áâãäå
+}
diff --git a/tests/auto/declarative/qmllanguage/data/I18nType30.qml b/tests/auto/declarative/qmllanguage/data/I18nType30.qml
new file mode 100644
index 0000000..42dbc69
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/I18nType30.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+
+MyTypeObject {
+ stringProperty: "Test áâãäå: 30"
+}
diff --git a/tests/auto/declarative/qmllanguage/data/MyComponent.qml b/tests/auto/declarative/qmllanguage/data/MyComponent.qml
new file mode 100644
index 0000000..1a23277
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/MyComponent.qml
@@ -0,0 +1,6 @@
+import Test 1.0
+
+MyQmlObject {
+ property real x;
+ property real y;
+}
diff --git a/tests/auto/declarative/qmllanguage/data/MyContainerComponent.qml b/tests/auto/declarative/qmllanguage/data/MyContainerComponent.qml
new file mode 100644
index 0000000..61f54c5
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/MyContainerComponent.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+
+MyContainer {
+ property int x
+}
diff --git a/tests/auto/declarative/qmllanguage/data/NestedAlias.qml b/tests/auto/declarative/qmllanguage/data/NestedAlias.qml
new file mode 100644
index 0000000..93a5454
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/NestedAlias.qml
@@ -0,0 +1,14 @@
+import Qt 4.6
+
+Object {
+ property Object o1
+ property Object o2
+
+ property alias a: object2.a
+
+ o1: Object { id: object1 }
+ o2: Object {
+ id: object2
+ property int a: 1923
+ }
+}
diff --git a/tests/auto/declarative/qmllanguage/data/OnCompletedType.qml b/tests/auto/declarative/qmllanguage/data/OnCompletedType.qml
new file mode 100644
index 0000000..cdba495
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/OnCompletedType.qml
@@ -0,0 +1,8 @@
+import Test 1.0
+import Qt 4.6
+
+MyQmlObject {
+ property int a: Math.max(10, 9)
+ property int b: 11
+ Component.onCompleted: print("Completed " + a + " " + b);
+}
diff --git a/tests/auto/declarative/qmllanguage/data/alias.1.qml b/tests/auto/declarative/qmllanguage/data/alias.1.qml
new file mode 100644
index 0000000..492d99a
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/alias.1.qml
@@ -0,0 +1,8 @@
+import Test 1.0
+import Qt 4.6
+
+Object {
+ id: Root
+ property int value: 10
+ property alias valueAlias: Root.value
+}
diff --git a/tests/auto/declarative/qmllanguage/data/alias.2.qml b/tests/auto/declarative/qmllanguage/data/alias.2.qml
new file mode 100644
index 0000000..aa4d103
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/alias.2.qml
@@ -0,0 +1,8 @@
+import Test 1.0
+
+MyQmlObject {
+ id: Root
+ property alias aliasObject: Root.qmlobjectProperty
+
+ qmlobjectProperty: MyQmlObject { value : 10 }
+}
diff --git a/tests/auto/declarative/qmllanguage/data/alias.3.qml b/tests/auto/declarative/qmllanguage/data/alias.3.qml
new file mode 100644
index 0000000..e25fbae
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/alias.3.qml
@@ -0,0 +1,10 @@
+import Qt 4.6
+
+Object {
+ property var other
+ other: Alias { id: MyAliasObject }
+
+ property alias value: MyAliasObject.aliasValue
+ property alias value2: MyAliasObject.value
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/alias.4.qml b/tests/auto/declarative/qmllanguage/data/alias.4.qml
new file mode 100644
index 0000000..bd6a769
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/alias.4.qml
@@ -0,0 +1,6 @@
+import Test 1.0
+
+Alias2 {
+ enumAlias: MyTypeObject.EnumVal2
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/alias.5.qml b/tests/auto/declarative/qmllanguage/data/alias.5.qml
new file mode 100644
index 0000000..39bfd9b
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/alias.5.qml
@@ -0,0 +1,13 @@
+import Qt 4.6
+import Test 1.0
+
+Object {
+ property alias otherAlias: otherObject
+
+ property var other
+ other: MyQmlObject {
+ id: otherObject
+ value: 10
+ }
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/alias.6.qml b/tests/auto/declarative/qmllanguage/data/alias.6.qml
new file mode 100644
index 0000000..aac0ef3
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/alias.6.qml
@@ -0,0 +1,8 @@
+import Qt 4.6
+
+Object {
+ property Object o;
+ property alias a: object.a
+ o: NestedAlias { id: object }
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/assignBasicTypes.qml b/tests/auto/declarative/qmllanguage/data/assignBasicTypes.qml
new file mode 100644
index 0000000..cef9f8d
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/assignBasicTypes.qml
@@ -0,0 +1,26 @@
+import Test 1.0
+MyTypeObject {
+ flagProperty: "FlagVal1 | FlagVal3"
+ enumProperty: "EnumVal2"
+ stringProperty: "Hello World!"
+ uintProperty: 10
+ intProperty: -19
+ realProperty: 23.2
+ doubleProperty: -19.7
+ colorProperty: "red"
+ dateProperty: "1982-11-25"
+ timeProperty: "11:11:31"
+ timeProperty: "11:11:32"
+ timeProperty: "11:11:32"
+ dateTimeProperty: "2009-05-12T13:22:01"
+ pointProperty: "99,13"
+ pointFProperty: "-10.1,12.3"
+ sizeProperty: "99x13"
+ sizeFProperty: "0.1x0.2"
+ rectProperty: "9,7,100x200"
+ rectFProperty: "1000.1,-10.9,400x90.99"
+ boolProperty: true
+ variantProperty: "Hello World!"
+
+ objectProperty: MyTypeObject { intProperty: 8 }
+}
diff --git a/tests/auto/declarative/qmllanguage/data/assignCompositeToType.qml b/tests/auto/declarative/qmllanguage/data/assignCompositeToType.qml
new file mode 100644
index 0000000..ec2867d
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/assignCompositeToType.qml
@@ -0,0 +1,18 @@
+import Qt 4.6
+import Test 1.0
+
+Object {
+ property Object myProperty
+ property Object myProperty2
+ property Object myProperty3
+ property Object myProperty4
+ property MyQmlObject myProperty5
+ property MyQmlObject myProperty6
+
+ myProperty: CompositeType {}
+ myProperty2: CompositeType2 {}
+ myProperty3: CompositeType3 {}
+ myProperty4: CompositeType4 {}
+ myProperty5: CompositeType2 {}
+ myProperty6: CompositeType4 {}
+}
diff --git a/tests/auto/declarative/qmllanguage/data/assignLiteralSignalProperty.qml b/tests/auto/declarative/qmllanguage/data/assignLiteralSignalProperty.qml
new file mode 100644
index 0000000..399fcea
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/assignLiteralSignalProperty.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyQmlObject {
+ onLiteralSignal: 10
+}
diff --git a/tests/auto/declarative/qmllanguage/data/assignObjectToSignal.qml b/tests/auto/declarative/qmllanguage/data/assignObjectToSignal.qml
new file mode 100644
index 0000000..789cc66
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/assignObjectToSignal.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyQmlObject {
+ onBasicSignal: MyQmlObject {}
+}
diff --git a/tests/auto/declarative/qmllanguage/data/assignObjectToVariant.qml b/tests/auto/declarative/qmllanguage/data/assignObjectToVariant.qml
new file mode 100644
index 0000000..28c68c4
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/assignObjectToVariant.qml
@@ -0,0 +1,6 @@
+import Test 1.0
+import Qt 4.6
+Object {
+ property var a;
+ a: MyQmlObject {}
+}
diff --git a/tests/auto/declarative/qmllanguage/data/assignQmlComponent.qml b/tests/auto/declarative/qmllanguage/data/assignQmlComponent.qml
new file mode 100644
index 0000000..20bdc55
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/assignQmlComponent.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyContainer {
+ MyComponent { x: 10; y: 11; }
+}
diff --git a/tests/auto/declarative/qmllanguage/data/assignSignal.qml b/tests/auto/declarative/qmllanguage/data/assignSignal.qml
new file mode 100644
index 0000000..3abc04d
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/assignSignal.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+MyQmlObject {
+ onBasicSignal: basicSlot()
+ onBasicParameterizedSignal: basicSlot(parameter)
+}
diff --git a/tests/auto/declarative/qmllanguage/data/assignTypeExtremes.qml b/tests/auto/declarative/qmllanguage/data/assignTypeExtremes.qml
new file mode 100644
index 0000000..60ede52
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/assignTypeExtremes.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+MyTypeObject {
+ uintProperty: 4000000000
+ intProperty: -2000000000
+}
diff --git a/tests/auto/declarative/qmllanguage/data/attachedProperties.qml b/tests/auto/declarative/qmllanguage/data/attachedProperties.qml
new file mode 100644
index 0000000..8343754
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/attachedProperties.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+import Qt 4.6
+Object {
+ MyQmlObject.value: 10
+}
diff --git a/tests/auto/declarative/qmllanguage/data/autoComponentCreation.qml b/tests/auto/declarative/qmllanguage/data/autoComponentCreation.qml
new file mode 100644
index 0000000..5d00144
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/autoComponentCreation.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyTypeObject {
+ componentProperty : MyTypeObject { realProperty: 9 }
+}
diff --git a/tests/auto/declarative/qmllanguage/data/componentCompositeType.qml b/tests/auto/declarative/qmllanguage/data/componentCompositeType.qml
new file mode 100644
index 0000000..3a1b191
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/componentCompositeType.qml
@@ -0,0 +1,8 @@
+import Qt 4.6
+
+Object {
+ property var test
+
+ test: ComponentComposite {}
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/cppnamespace.qml b/tests/auto/declarative/qmllanguage/data/cppnamespace.qml
new file mode 100644
index 0000000..e1daf3b
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/cppnamespace.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+
+MyNamespacedType {
+}
diff --git a/tests/auto/declarative/qmllanguage/data/customParserIdNotAllowed.errors.txt b/tests/auto/declarative/qmllanguage/data/customParserIdNotAllowed.errors.txt
new file mode 100644
index 0000000..d28c0bd
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/customParserIdNotAllowed.errors.txt
@@ -0,0 +1 @@
+4:19:Cannot use reserved "id" property in ListModel
diff --git a/tests/auto/declarative/qmllanguage/data/customParserIdNotAllowed.qml b/tests/auto/declarative/qmllanguage/data/customParserIdNotAllowed.qml
new file mode 100644
index 0000000..e607768
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/customParserIdNotAllowed.qml
@@ -0,0 +1,5 @@
+import Qt 4.6
+ListModel {
+ ListElement { a: 10 }
+ ListElement { id: Foo; a: 12 }
+}
diff --git a/tests/auto/declarative/qmllanguage/data/customParserTypes.qml b/tests/auto/declarative/qmllanguage/data/customParserTypes.qml
new file mode 100644
index 0000000..cf2f272
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/customParserTypes.qml
@@ -0,0 +1,5 @@
+import Qt 4.6
+ListModel {
+ ListElement { a: 10 }
+ ListElement { a: 12 }
+}
diff --git a/tests/auto/declarative/qmllanguage/data/customVariantTypes.qml b/tests/auto/declarative/qmllanguage/data/customVariantTypes.qml
new file mode 100644
index 0000000..0263ed2
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/customVariantTypes.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyQmlObject {
+ customType: "10"
+}
diff --git a/tests/auto/declarative/qmllanguage/data/duplicateIDs.errors.txt b/tests/auto/declarative/qmllanguage/data/duplicateIDs.errors.txt
new file mode 100644
index 0000000..66241cf
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/duplicateIDs.errors.txt
@@ -0,0 +1 @@
+4:19:id is not unique
diff --git a/tests/auto/declarative/qmllanguage/data/duplicateIDs.qml b/tests/auto/declarative/qmllanguage/data/duplicateIDs.qml
new file mode 100644
index 0000000..9605b5b
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/duplicateIDs.qml
@@ -0,0 +1,6 @@
+import Test 1.0
+MyContainer {
+ MyQmlObject { id: MyID }
+ MyQmlObject { id: MyID }
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/dynamicObject.1.qml b/tests/auto/declarative/qmllanguage/data/dynamicObject.1.qml
new file mode 100644
index 0000000..85d1052
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/dynamicObject.1.qml
@@ -0,0 +1,8 @@
+import Test 1.0
+import Qt 4.6
+PropertyChanges {
+ propa: a + 10
+ propb: Math.min(a, 10)
+ propc: MyPropertyValueSource {}
+ onPropA: a
+}
diff --git a/tests/auto/declarative/qmllanguage/data/dynamicObjectProperties.qml b/tests/auto/declarative/qmllanguage/data/dynamicObjectProperties.qml
new file mode 100644
index 0000000..e69ccee
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/dynamicObjectProperties.qml
@@ -0,0 +1,13 @@
+import Test 1.0
+import Qt 4.6
+import Qt 4.6 as Qt
+
+Object {
+ property Object objectProperty
+ property Object objectProperty2
+ objectProperty2: Object {}
+
+ property MyComponent myComponentProperty
+ property MyComponent myComponentProperty2
+ myComponentProperty2: MyComponent {}
+}
diff --git a/tests/auto/declarative/qmllanguage/data/dynamicProperties.qml b/tests/auto/declarative/qmllanguage/data/dynamicProperties.qml
new file mode 100644
index 0000000..f93e446
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/dynamicProperties.qml
@@ -0,0 +1,13 @@
+import Test 1.0
+import Qt 4.6
+Object {
+ default property int intProperty : 10
+ property bool boolProperty: false
+ property double doubleProperty: -10.1
+ property real realProperty: -19.9
+ property string stringProperty: "Hello World!"
+ property color colorProperty: "red"
+ property date dateProperty: "1945-09-02"
+ property var varProperty: "Hello World!"
+ property variant variantProperty: 12
+}
diff --git a/tests/auto/declarative/qmllanguage/data/dynamicSignalsAndSlots.qml b/tests/auto/declarative/qmllanguage/data/dynamicSignalsAndSlots.qml
new file mode 100644
index 0000000..b0ca970
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/dynamicSignalsAndSlots.qml
@@ -0,0 +1,7 @@
+import Qt 4.6
+Object {
+ signal signal1
+ function slot1() {}
+ signal signal2
+ function slot2() {}
+}
diff --git a/tests/auto/declarative/qmllanguage/data/empty.errors.txt b/tests/auto/declarative/qmllanguage/data/empty.errors.txt
new file mode 100644
index 0000000..d416e76
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/empty.errors.txt
@@ -0,0 +1,2 @@
+0:0:Expected token `numeric literal'
+0:0:Expected a qualified name id
diff --git a/tests/auto/declarative/qmllanguage/data/empty.qml b/tests/auto/declarative/qmllanguage/data/empty.qml
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/empty.qml
diff --git a/tests/auto/declarative/qmllanguage/data/failingComponent.errors.txt b/tests/auto/declarative/qmllanguage/data/failingComponent.errors.txt
new file mode 100644
index 0000000..0cf0ef3
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/failingComponent.errors.txt
@@ -0,0 +1 @@
+3:5:Type FailingComponent unavailable
diff --git a/tests/auto/declarative/qmllanguage/data/failingComponentTest.qml b/tests/auto/declarative/qmllanguage/data/failingComponentTest.qml
new file mode 100644
index 0000000..74a6acf
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/failingComponentTest.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyContainer {
+ FailingComponent {}
+}
diff --git a/tests/auto/declarative/qmllanguage/data/fakeDotProperty.errors.txt b/tests/auto/declarative/qmllanguage/data/fakeDotProperty.errors.txt
new file mode 100644
index 0000000..e56ad3a
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/fakeDotProperty.errors.txt
@@ -0,0 +1 @@
+3:5:Invalid property access
diff --git a/tests/auto/declarative/qmllanguage/data/fakeDotProperty.qml b/tests/auto/declarative/qmllanguage/data/fakeDotProperty.qml
new file mode 100644
index 0000000..d971eee
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/fakeDotProperty.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyQmlObject {
+ value.something: "hello"
+}
diff --git a/tests/auto/declarative/qmllanguage/data/finalOverride.errors.txt b/tests/auto/declarative/qmllanguage/data/finalOverride.errors.txt
new file mode 100644
index 0000000..49e06cb
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/finalOverride.errors.txt
@@ -0,0 +1 @@
+3:5:Cannot override FINAL property
diff --git a/tests/auto/declarative/qmllanguage/data/finalOverride.qml b/tests/auto/declarative/qmllanguage/data/finalOverride.qml
new file mode 100644
index 0000000..a84393a
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/finalOverride.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyQmlObject {
+ property int value: 10
+}
diff --git a/tests/auto/declarative/qmllanguage/data/i18nDeclaredPropertyNames.qml b/tests/auto/declarative/qmllanguage/data/i18nDeclaredPropertyNames.qml
new file mode 100644
index 0000000..558c836
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/i18nDeclaredPropertyNames.qml
@@ -0,0 +1,6 @@
+import Test 1.0
+
+MyTypeObject {
+ property int áâãäå: 10
+ stringProperty: "Test áâãäå: " + áâãäå
+}
diff --git a/tests/auto/declarative/qmllanguage/data/i18nDeclaredPropertyUse.qml b/tests/auto/declarative/qmllanguage/data/i18nDeclaredPropertyUse.qml
new file mode 100644
index 0000000..74918e2
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/i18nDeclaredPropertyUse.qml
@@ -0,0 +1,3 @@
+I18n {
+ áâãäå: 15
+}
diff --git a/tests/auto/declarative/qmllanguage/data/i18nNameSpace.qml b/tests/auto/declarative/qmllanguage/data/i18nNameSpace.qml
new file mode 100644
index 0000000..c0b2f94
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/i18nNameSpace.qml
@@ -0,0 +1,5 @@
+import Test 1.0 as Áâãäå
+
+Áâãäå.MyTypeObject {
+ stringProperty: "Test áâãäå: 40"
+}
diff --git a/tests/auto/declarative/qmllanguage/data/i18nScript.qml b/tests/auto/declarative/qmllanguage/data/i18nScript.qml
new file mode 100644
index 0000000..942ed90
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/i18nScript.qml
@@ -0,0 +1,12 @@
+import Test 1.0
+
+MyTypeObject {
+ Script {
+ function val() {
+ var áâãäå = 20
+ return "Test áâãäå: " + áâãäå
+ }
+
+ }
+ stringProperty: val()
+}
diff --git a/tests/auto/declarative/qmllanguage/data/i18nStrings.qml b/tests/auto/declarative/qmllanguage/data/i18nStrings.qml
new file mode 100644
index 0000000..764c926
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/i18nStrings.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+
+MyTypeObject {
+ stringProperty: "Test áâãäå (5 accented 'a' letters)"
+}
diff --git a/tests/auto/declarative/qmllanguage/data/i18nType.qml b/tests/auto/declarative/qmllanguage/data/i18nType.qml
new file mode 100644
index 0000000..d7954ef
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/i18nType.qml
@@ -0,0 +1 @@
+I18nTypeÁâãäå { }
diff --git a/tests/auto/declarative/qmllanguage/data/idProperty.qml b/tests/auto/declarative/qmllanguage/data/idProperty.qml
new file mode 100644
index 0000000..a413c0b
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/idProperty.qml
@@ -0,0 +1,8 @@
+import Test 1.0
+MyContainer {
+ property var object : MyObjectId
+
+ MyTypeObject {
+ id: "MyObjectId"
+ }
+}
diff --git a/tests/auto/declarative/qmllanguage/data/importNamespaceConflict.errors.txt b/tests/auto/declarative/qmllanguage/data/importNamespaceConflict.errors.txt
new file mode 100644
index 0000000..231998d
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/importNamespaceConflict.errors.txt
@@ -0,0 +1 @@
+4:1:Namespace Rectangle cannot be used as a type
diff --git a/tests/auto/declarative/qmllanguage/data/importNamespaceConflict.qml b/tests/auto/declarative/qmllanguage/data/importNamespaceConflict.qml
new file mode 100644
index 0000000..cd112af
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/importNamespaceConflict.qml
@@ -0,0 +1,4 @@
+import Test 1.0 as Rectangle
+import Qt 4.6
+
+Rectangle { }
diff --git a/tests/auto/declarative/qmllanguage/data/importVersionMissingBuiltIn.errors.txt b/tests/auto/declarative/qmllanguage/data/importVersionMissingBuiltIn.errors.txt
new file mode 100644
index 0000000..c7d880e
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/importVersionMissingBuiltIn.errors.txt
@@ -0,0 +1 @@
+1:16:Library import requires a version
diff --git a/tests/auto/declarative/qmllanguage/data/importVersionMissingBuiltIn.qml b/tests/auto/declarative/qmllanguage/data/importVersionMissingBuiltIn.qml
new file mode 100644
index 0000000..23ed566
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/importVersionMissingBuiltIn.qml
@@ -0,0 +1,7 @@
+import Test as S
+
+S.MyQmlObject {
+ property real x;
+ property real y;
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/importVersionMissingInstalled.errors.txt b/tests/auto/declarative/qmllanguage/data/importVersionMissingInstalled.errors.txt
new file mode 100644
index 0000000..89e58ee
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/importVersionMissingInstalled.errors.txt
@@ -0,0 +1 @@
+1:35:Library import requires a version
diff --git a/tests/auto/declarative/qmllanguage/data/importVersionMissingInstalled.qml b/tests/auto/declarative/qmllanguage/data/importVersionMissingInstalled.qml
new file mode 100644
index 0000000..97ec222
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/importVersionMissingInstalled.qml
@@ -0,0 +1,3 @@
+import com.nokia.installedtest as T
+
+T.InstalledTest {}
diff --git a/tests/auto/declarative/qmllanguage/data/inlineQmlComponents.qml b/tests/auto/declarative/qmllanguage/data/inlineQmlComponents.qml
new file mode 100644
index 0000000..79ceda6
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/inlineQmlComponents.qml
@@ -0,0 +1,10 @@
+import Test 1.0
+import Qt 4.6
+MyContainer {
+ Component {
+ id: MyComponent
+ MyQmlObject {
+ value: 11
+ }
+ }
+}
diff --git a/tests/auto/declarative/qmllanguage/data/interfaceProperty.qml b/tests/auto/declarative/qmllanguage/data/interfaceProperty.qml
new file mode 100644
index 0000000..70879ff
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/interfaceProperty.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+import Qt 4.6
+MyQmlObject {
+ interfaceProperty: MyQmlObject {}
+}
diff --git a/tests/auto/declarative/qmllanguage/data/interfaceQList.qml b/tests/auto/declarative/qmllanguage/data/interfaceQList.qml
new file mode 100644
index 0000000..c87dfae
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/interfaceQList.qml
@@ -0,0 +1,7 @@
+import Test 1.0
+MyContainer {
+ qlistInterfaces: [
+ MyQmlObject {},
+ MyQmlObject {}
+ ]
+}
diff --git a/tests/auto/declarative/qmllanguage/data/interfaceQmlList.qml b/tests/auto/declarative/qmllanguage/data/interfaceQmlList.qml
new file mode 100644
index 0000000..8392bea
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/interfaceQmlList.qml
@@ -0,0 +1,7 @@
+import Test 1.0
+MyContainer {
+ qmllistInterfaces: [
+ MyQmlObject {},
+ MyQmlObject {}
+ ]
+}
diff --git a/tests/auto/declarative/qmllanguage/data/invalidID.2.errors.txt b/tests/auto/declarative/qmllanguage/data/invalidID.2.errors.txt
new file mode 100644
index 0000000..56e3eeb
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/invalidID.2.errors.txt
@@ -0,0 +1,2 @@
+3:5:"" is not a valid object id
+
diff --git a/tests/auto/declarative/qmllanguage/data/invalidID.2.qml b/tests/auto/declarative/qmllanguage/data/invalidID.2.qml
new file mode 100644
index 0000000..4fb3b29
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/invalidID.2.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+MyQmlObject {
+ id: ""
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/invalidID.3.errors.txt b/tests/auto/declarative/qmllanguage/data/invalidID.3.errors.txt
new file mode 100644
index 0000000..bb811cf
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/invalidID.3.errors.txt
@@ -0,0 +1 @@
+3:5:Invalid use of id property
diff --git a/tests/auto/declarative/qmllanguage/data/invalidID.3.qml b/tests/auto/declarative/qmllanguage/data/invalidID.3.qml
new file mode 100644
index 0000000..6684172
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/invalidID.3.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+MyQmlObject {
+ id.other: 10
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/invalidID.4.errors.txt b/tests/auto/declarative/qmllanguage/data/invalidID.4.errors.txt
new file mode 100644
index 0000000..cfe8756
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/invalidID.4.errors.txt
@@ -0,0 +1 @@
+4:5:Invalid use of id property
diff --git a/tests/auto/declarative/qmllanguage/data/invalidID.4.qml b/tests/auto/declarative/qmllanguage/data/invalidID.4.qml
new file mode 100644
index 0000000..1f15fce
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/invalidID.4.qml
@@ -0,0 +1,6 @@
+import Test 1.0
+MyQmlObject {
+ id: Hello
+ id: World
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/invalidID.5.errors.txt b/tests/auto/declarative/qmllanguage/data/invalidID.5.errors.txt
new file mode 100644
index 0000000..b0a63a0
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/invalidID.5.errors.txt
@@ -0,0 +1 @@
+4:9:id conflicts with namespace prefix
diff --git a/tests/auto/declarative/qmllanguage/data/invalidID.5.qml b/tests/auto/declarative/qmllanguage/data/invalidID.5.qml
new file mode 100644
index 0000000..0545b0d
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/invalidID.5.qml
@@ -0,0 +1,6 @@
+import Test 1.0
+import Test 1.0 as Hello
+MyQmlObject {
+ id: Hello
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/invalidID.6.errors.txt b/tests/auto/declarative/qmllanguage/data/invalidID.6.errors.txt
new file mode 100644
index 0000000..861e3d7
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/invalidID.6.errors.txt
@@ -0,0 +1 @@
+3:9:id conflicts with type name
diff --git a/tests/auto/declarative/qmllanguage/data/invalidID.6.qml b/tests/auto/declarative/qmllanguage/data/invalidID.6.qml
new file mode 100644
index 0000000..ea34007
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/invalidID.6.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+MyQmlObject {
+ id: MyQmlObject
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/invalidID.errors.txt b/tests/auto/declarative/qmllanguage/data/invalidID.errors.txt
new file mode 100644
index 0000000..1ca678c
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/invalidID.errors.txt
@@ -0,0 +1 @@
+3:5:"1" is not a valid object id
diff --git a/tests/auto/declarative/qmllanguage/data/invalidID.qml b/tests/auto/declarative/qmllanguage/data/invalidID.qml
new file mode 100644
index 0000000..04db3eb
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/invalidID.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyQmlObject {
+ id: 1
+}
diff --git a/tests/auto/declarative/qmllanguage/data/lib/com/nokia/installedtest/InstalledTest.qml b/tests/auto/declarative/qmllanguage/data/lib/com/nokia/installedtest/InstalledTest.qml
new file mode 100644
index 0000000..d8a22a8
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/lib/com/nokia/installedtest/InstalledTest.qml
@@ -0,0 +1,2 @@
+import Qt 4.6
+Rectangle {}
diff --git a/tests/auto/declarative/qmllanguage/data/lib/com/nokia/installedtest/InstalledTest2.qml b/tests/auto/declarative/qmllanguage/data/lib/com/nokia/installedtest/InstalledTest2.qml
new file mode 100644
index 0000000..a0706ad
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/lib/com/nokia/installedtest/InstalledTest2.qml
@@ -0,0 +1,2 @@
+import Qt 4.6
+Text {}
diff --git a/tests/auto/declarative/qmllanguage/data/lib/com/nokia/installedtest/qmldir b/tests/auto/declarative/qmllanguage/data/lib/com/nokia/installedtest/qmldir
new file mode 100644
index 0000000..ba0b42a
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/lib/com/nokia/installedtest/qmldir
@@ -0,0 +1,3 @@
+InstalledTest 1.0-3 InstalledTest.qml
+InstalledTest 1.4 InstalledTest2.qml
+Rectangle 1.5 InstalledTest2.qml
diff --git a/tests/auto/declarative/qmllanguage/data/listAssignment.1.errors.txt b/tests/auto/declarative/qmllanguage/data/listAssignment.1.errors.txt
new file mode 100644
index 0000000..d68d487
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/listAssignment.1.errors.txt
@@ -0,0 +1 @@
+3:24:Cannot assign primitives to lists
diff --git a/tests/auto/declarative/qmllanguage/data/listAssignment.1.qml b/tests/auto/declarative/qmllanguage/data/listAssignment.1.qml
new file mode 100644
index 0000000..4240425
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/listAssignment.1.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyContainer {
+ qmllistInterfaces: 1
+}
diff --git a/tests/auto/declarative/qmllanguage/data/listAssignment.2.errors.txt b/tests/auto/declarative/qmllanguage/data/listAssignment.2.errors.txt
new file mode 100644
index 0000000..8b40aa3
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/listAssignment.2.errors.txt
@@ -0,0 +1,2 @@
+3:15:Cannot assign primitives to lists
+
diff --git a/tests/auto/declarative/qmllanguage/data/listAssignment.2.qml b/tests/auto/declarative/qmllanguage/data/listAssignment.2.qml
new file mode 100644
index 0000000..e3baadb
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/listAssignment.2.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyContainer {
+ children: 2
+}
diff --git a/tests/auto/declarative/qmllanguage/data/listAssignment.3.errors.txt b/tests/auto/declarative/qmllanguage/data/listAssignment.3.errors.txt
new file mode 100644
index 0000000..8c7b7e9
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/listAssignment.3.errors.txt
@@ -0,0 +1 @@
+4:15:Can only assign one binding to lists
diff --git a/tests/auto/declarative/qmllanguage/data/listAssignment.3.qml b/tests/auto/declarative/qmllanguage/data/listAssignment.3.qml
new file mode 100644
index 0000000..00c4c6b
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/listAssignment.3.qml
@@ -0,0 +1,6 @@
+import Test 1.0
+MyContainer {
+ children: childBinding.expression
+ children: childBinding2.expression
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/listItemDeleteSelf.qml b/tests/auto/declarative/qmllanguage/data/listItemDeleteSelf.qml
new file mode 100644
index 0000000..fa2e831
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/listItemDeleteSelf.qml
@@ -0,0 +1,38 @@
+import Qt 4.6
+
+Item {
+ ListModel {
+ id: FruitModel
+ ListElement {
+ name: "Apple"
+ cost: 2.45
+ }
+ ListElement {
+ name: "Orange"
+ cost: 3.25
+ }
+ ListElement {
+ name: "Banana"
+ cost: 1.95
+ }
+ }
+
+ Component {
+ id: FruitDelegate
+ Item {
+ width: 200; height: 50
+ Text { text: name }
+ Text { text: '$'+cost; anchors.right: parent.right }
+ MouseRegion {
+ anchors.fill: parent
+ onClicked: FruitModel.remove(index)
+ }
+ }
+ }
+
+ ListView {
+ model: FruitModel
+ delegate: FruitDelegate
+ anchors.fill: parent
+ }
+}
diff --git a/tests/auto/declarative/qmllanguage/data/missingObject.errors.txt b/tests/auto/declarative/qmllanguage/data/missingObject.errors.txt
new file mode 100644
index 0000000..b31b562
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/missingObject.errors.txt
@@ -0,0 +1 @@
+1:10:Expected token `{'
diff --git a/tests/auto/declarative/qmllanguage/data/missingObject.qml b/tests/auto/declarative/qmllanguage/data/missingObject.qml
new file mode 100644
index 0000000..2f17045
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/missingObject.qml
@@ -0,0 +1 @@
+something: 24
diff --git a/tests/auto/declarative/qmllanguage/data/missingSignal.errors.txt b/tests/auto/declarative/qmllanguage/data/missingSignal.errors.txt
new file mode 100644
index 0000000..e243ae5
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/missingSignal.errors.txt
@@ -0,0 +1 @@
+4:5:Cannot assign to non-existant property "onClicked"
diff --git a/tests/auto/declarative/qmllanguage/data/missingSignal.qml b/tests/auto/declarative/qmllanguage/data/missingSignal.qml
new file mode 100644
index 0000000..fd489ca
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/missingSignal.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+import Qt 4.6
+Object {
+ onClicked: print("Hello world!")
+}
diff --git a/tests/auto/declarative/qmllanguage/data/nonexistantProperty.1.errors.txt b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.1.errors.txt
new file mode 100644
index 0000000..cfc6fc8
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.1.errors.txt
@@ -0,0 +1 @@
+2:15:Cannot assign to non-existant property "something"
diff --git a/tests/auto/declarative/qmllanguage/data/nonexistantProperty.1.qml b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.1.qml
new file mode 100644
index 0000000..df7406c
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.1.qml
@@ -0,0 +1,2 @@
+import Test 1.0
+MyQmlObject { something: 24 }
diff --git a/tests/auto/declarative/qmllanguage/data/nonexistantProperty.2.errors.txt b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.2.errors.txt
new file mode 100644
index 0000000..8b13585
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.2.errors.txt
@@ -0,0 +1 @@
+3:5:Cannot assign to non-existant property "something"
diff --git a/tests/auto/declarative/qmllanguage/data/nonexistantProperty.2.qml b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.2.qml
new file mode 100644
index 0000000..06ccd37
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.2.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyQmlObject {
+ something: 24
+}
diff --git a/tests/auto/declarative/qmllanguage/data/nonexistantProperty.3.errors.txt b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.3.errors.txt
new file mode 100644
index 0000000..8b13585
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.3.errors.txt
@@ -0,0 +1 @@
+3:5:Cannot assign to non-existant property "something"
diff --git a/tests/auto/declarative/qmllanguage/data/nonexistantProperty.3.qml b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.3.qml
new file mode 100644
index 0000000..5b08608
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.3.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyQmlObject {
+ something: 1 + 1
+}
diff --git a/tests/auto/declarative/qmllanguage/data/nonexistantProperty.4.errors.txt b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.4.errors.txt
new file mode 100644
index 0000000..8b13585
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.4.errors.txt
@@ -0,0 +1 @@
+3:5:Cannot assign to non-existant property "something"
diff --git a/tests/auto/declarative/qmllanguage/data/nonexistantProperty.4.qml b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.4.qml
new file mode 100644
index 0000000..6579191
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.4.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyQmlObject {
+ something: ;
+}
diff --git a/tests/auto/declarative/qmllanguage/data/nonexistantProperty.5.errors.txt b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.5.errors.txt
new file mode 100644
index 0000000..c07f2b9
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.5.errors.txt
@@ -0,0 +1 @@
+3:5:Expected a qualified name id
diff --git a/tests/auto/declarative/qmllanguage/data/nonexistantProperty.5.qml b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.5.qml
new file mode 100644
index 0000000..37af057
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.5.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyQmlObject {
+ 24
+}
diff --git a/tests/auto/declarative/qmllanguage/data/nonexistantProperty.6.errors.txt b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.6.errors.txt
new file mode 100644
index 0000000..c02d7bd
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.6.errors.txt
@@ -0,0 +1 @@
+3:5:Cannot assign to non-existant default property
diff --git a/tests/auto/declarative/qmllanguage/data/nonexistantProperty.6.qml b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.6.qml
new file mode 100644
index 0000000..5cd55d0
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/nonexistantProperty.6.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyQmlObject {
+ MyQmlObject {}
+}
diff --git a/tests/auto/declarative/qmllanguage/data/nullDotProperty.errors.txt b/tests/auto/declarative/qmllanguage/data/nullDotProperty.errors.txt
new file mode 100644
index 0000000..07a4094
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/nullDotProperty.errors.txt
@@ -0,0 +1 @@
+3:-1:Cannot set properties on obj as it is null
diff --git a/tests/auto/declarative/qmllanguage/data/nullDotProperty.qml b/tests/auto/declarative/qmllanguage/data/nullDotProperty.qml
new file mode 100644
index 0000000..4e36779
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/nullDotProperty.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyDotPropertyObject {
+ obj.value: 1
+}
diff --git a/tests/auto/declarative/qmllanguage/data/onCompleted.qml b/tests/auto/declarative/qmllanguage/data/onCompleted.qml
new file mode 100644
index 0000000..ae47d4b
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/onCompleted.qml
@@ -0,0 +1,17 @@
+import Test 1.0
+import Qt 4.6
+
+MyTypeObject {
+ // We set a and b to ensure that onCompleted is executed after bindings and
+ // constants have been assigned
+ property int a: Math.min(6, 7)
+ Component.onCompleted: print("Completed " + a + " " + nestedObject.b)
+
+ objectProperty: OnCompletedType {
+ qmlobjectProperty: MyQmlObject {
+ id: nestedObject
+ property int b: 10
+ Component.onCompleted: print("Completed " + a + " " + nestedObject.b)
+ }
+ }
+}
diff --git a/tests/auto/declarative/qmllanguage/data/propertyValueSource.qml b/tests/auto/declarative/qmllanguage/data/propertyValueSource.qml
new file mode 100644
index 0000000..ad71fcf
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/propertyValueSource.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyTypeObject {
+ intProperty : MyPropertyValueSource {}
+}
diff --git a/tests/auto/declarative/qmllanguage/data/readOnly.1.errors.txt b/tests/auto/declarative/qmllanguage/data/readOnly.1.errors.txt
new file mode 100644
index 0000000..b8c3404
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/readOnly.1.errors.txt
@@ -0,0 +1 @@
+3:21:Invalid property assignment: "readOnlyString" is a read-only property
diff --git a/tests/auto/declarative/qmllanguage/data/readOnly.1.qml b/tests/auto/declarative/qmllanguage/data/readOnly.1.qml
new file mode 100644
index 0000000..60757bd
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/readOnly.1.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyQmlObject {
+ readOnlyString: "Hello World"
+}
diff --git a/tests/auto/declarative/qmllanguage/data/readOnly.2.errors.txt b/tests/auto/declarative/qmllanguage/data/readOnly.2.errors.txt
new file mode 100644
index 0000000..d857a04
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/readOnly.2.errors.txt
@@ -0,0 +1 @@
+3:5:Invalid property assignment: "readOnlyString" is a read-only property
diff --git a/tests/auto/declarative/qmllanguage/data/readOnly.2.qml b/tests/auto/declarative/qmllanguage/data/readOnly.2.qml
new file mode 100644
index 0000000..8f1633c
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/readOnly.2.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyQmlObject {
+ readOnlyString: "Hello" + "World"
+}
diff --git a/tests/auto/declarative/qmllanguage/data/rootAsQmlComponent.qml b/tests/auto/declarative/qmllanguage/data/rootAsQmlComponent.qml
new file mode 100644
index 0000000..8d72cd3
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/rootAsQmlComponent.qml
@@ -0,0 +1,6 @@
+import Test 1.0
+MyContainerComponent {
+ x: 11
+ MyQmlObject {}
+ MyQmlObject {}
+}
diff --git a/tests/auto/declarative/qmllanguage/data/scriptString.qml b/tests/auto/declarative/qmllanguage/data/scriptString.qml
new file mode 100644
index 0000000..51e6e48
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/scriptString.qml
@@ -0,0 +1,6 @@
+import Test 1.0
+
+MyTypeObject {
+ scriptProperty: foo + bar
+ grouped.script: print(1921)
+}
diff --git a/tests/auto/declarative/qmllanguage/data/simpleBindings.qml b/tests/auto/declarative/qmllanguage/data/simpleBindings.qml
new file mode 100644
index 0000000..74867b3
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/simpleBindings.qml
@@ -0,0 +1,18 @@
+import Test 1.0
+MyTypeObject {
+ id: Me
+ property int v1: 10
+ property int v2: 11
+
+ property int value1
+ property int value2
+ property int value3
+ property int value4
+
+ value1: v1
+ value2: Me.v1
+ value3: v1 + v2
+ value4: Math.min(v1, v2)
+
+ objectProperty: Me
+}
diff --git a/tests/auto/declarative/qmllanguage/data/simpleContainer.qml b/tests/auto/declarative/qmllanguage/data/simpleContainer.qml
new file mode 100644
index 0000000..c3a795f
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/simpleContainer.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+MyContainer {
+ MyQmlObject {}
+ MyQmlObject {}
+}
diff --git a/tests/auto/declarative/qmllanguage/data/simpleObject.qml b/tests/auto/declarative/qmllanguage/data/simpleObject.qml
new file mode 100644
index 0000000..30c7823
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/simpleObject.qml
@@ -0,0 +1,2 @@
+import Test 1.0
+MyQmlObject {}
diff --git a/tests/auto/declarative/qmllanguage/data/subdir/Test.qml b/tests/auto/declarative/qmllanguage/data/subdir/Test.qml
new file mode 100644
index 0000000..c4d5905
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/subdir/Test.qml
@@ -0,0 +1,2 @@
+import Qt 4.6
+Rectangle { }
diff --git a/tests/auto/declarative/qmllanguage/data/unregisteredObject.errors.txt b/tests/auto/declarative/qmllanguage/data/unregisteredObject.errors.txt
new file mode 100644
index 0000000..347db05
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/unregisteredObject.errors.txt
@@ -0,0 +1 @@
+2:1:Type UnregisteredObjectType unavailable
diff --git a/tests/auto/declarative/qmllanguage/data/unregisteredObject.qml b/tests/auto/declarative/qmllanguage/data/unregisteredObject.qml
new file mode 100644
index 0000000..4969f62
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/unregisteredObject.qml
@@ -0,0 +1,2 @@
+import Test 1.0
+UnregisteredObjectType {}
diff --git a/tests/auto/declarative/qmllanguage/data/unsupportedProperty.errors.txt b/tests/auto/declarative/qmllanguage/data/unsupportedProperty.errors.txt
new file mode 100644
index 0000000..3cd626d
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/unsupportedProperty.errors.txt
@@ -0,0 +1 @@
+3:13:Invalid property assignment: unsupported type "QMatrix"
diff --git a/tests/auto/declarative/qmllanguage/data/unsupportedProperty.qml b/tests/auto/declarative/qmllanguage/data/unsupportedProperty.qml
new file mode 100644
index 0000000..9f19680
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/unsupportedProperty.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyQmlObject {
+ matrix: "1,0,0,0,1,0,0,0,1"
+}
diff --git a/tests/auto/declarative/qmllanguage/data/valueTypes.qml b/tests/auto/declarative/qmllanguage/data/valueTypes.qml
new file mode 100644
index 0000000..bf325a7
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/valueTypes.qml
@@ -0,0 +1,13 @@
+import Test 1.0
+MyTypeObject {
+ rectProperty.x: 10
+ rectProperty.y: 11
+ rectProperty.width: rectProperty.x + 2
+ rectProperty.height: 13
+
+ intProperty: rectProperty.x
+
+ onAction: { var a = rectProperty; a.x = 12; }
+
+ rectProperty2: rectProperty
+}
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.1.errors.txt b/tests/auto/declarative/qmllanguage/data/wrongType.1.errors.txt
new file mode 100644
index 0000000..ba7a076
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.1.errors.txt
@@ -0,0 +1 @@
+3:12:Invalid property assignment: int expected
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.1.qml b/tests/auto/declarative/qmllanguage/data/wrongType.1.qml
new file mode 100644
index 0000000..289d37f
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.1.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyQmlObject {
+ value: "hello"
+}
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.10.errors.txt b/tests/auto/declarative/qmllanguage/data/wrongType.10.errors.txt
new file mode 100644
index 0000000..ae75b52
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.10.errors.txt
@@ -0,0 +1 @@
+3:23:Invalid property assignment: datetime expected
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.10.qml b/tests/auto/declarative/qmllanguage/data/wrongType.10.qml
new file mode 100644
index 0000000..2cf0e50
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.10.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+MyTypeObject {
+ dateTimeProperty: 12
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.11.errors.txt b/tests/auto/declarative/qmllanguage/data/wrongType.11.errors.txt
new file mode 100644
index 0000000..23a4cda
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.11.errors.txt
@@ -0,0 +1 @@
+3:20:Invalid property assignment: point expected
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.11.qml b/tests/auto/declarative/qmllanguage/data/wrongType.11.qml
new file mode 100644
index 0000000..ae77ba1
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.11.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+MyTypeObject {
+ pointProperty: "apples"
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.12.errors.txt b/tests/auto/declarative/qmllanguage/data/wrongType.12.errors.txt
new file mode 100644
index 0000000..3092100
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.12.errors.txt
@@ -0,0 +1 @@
+3:19:Invalid property assignment: size expected
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.12.qml b/tests/auto/declarative/qmllanguage/data/wrongType.12.qml
new file mode 100644
index 0000000..b7a366f
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.12.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+MyTypeObject {
+ sizeProperty: "red"
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.13.errors.txt b/tests/auto/declarative/qmllanguage/data/wrongType.13.errors.txt
new file mode 100644
index 0000000..ba7a076
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.13.errors.txt
@@ -0,0 +1 @@
+3:12:Invalid property assignment: int expected
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.13.qml b/tests/auto/declarative/qmllanguage/data/wrongType.13.qml
new file mode 100644
index 0000000..477aff1
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.13.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyQmlObject {
+ value: "12"
+}
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.14.errors.txt b/tests/auto/declarative/qmllanguage/data/wrongType.14.errors.txt
new file mode 100644
index 0000000..d621fdd
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.14.errors.txt
@@ -0,0 +1 @@
+3:21:Invalid property assignment: string expected
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.14.qml b/tests/auto/declarative/qmllanguage/data/wrongType.14.qml
new file mode 100644
index 0000000..672d693
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.14.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+MyTypeObject {
+ stringProperty: 10
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.2.errors.txt b/tests/auto/declarative/qmllanguage/data/wrongType.2.errors.txt
new file mode 100644
index 0000000..9ff9f25
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.2.errors.txt
@@ -0,0 +1 @@
+3:14:Invalid property assignment: boolean expected
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.2.qml b/tests/auto/declarative/qmllanguage/data/wrongType.2.qml
new file mode 100644
index 0000000..34b74f7
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.2.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyQmlObject {
+ enabled: 5
+}
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.3.errors.txt b/tests/auto/declarative/qmllanguage/data/wrongType.3.errors.txt
new file mode 100644
index 0000000..6d971c6
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.3.errors.txt
@@ -0,0 +1 @@
+3:11:Invalid property assignment: rect expected
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.3.qml b/tests/auto/declarative/qmllanguage/data/wrongType.3.qml
new file mode 100644
index 0000000..384181a
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.3.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyQmlObject {
+ rect: "5,5x10"
+}
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.4.errors.txt b/tests/auto/declarative/qmllanguage/data/wrongType.4.errors.txt
new file mode 100644
index 0000000..ef34d0e
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.4.errors.txt
@@ -0,0 +1 @@
+3:19:Invalid property assignment: unknown enumeration
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.4.qml b/tests/auto/declarative/qmllanguage/data/wrongType.4.qml
new file mode 100644
index 0000000..0787bf5
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.4.qml
@@ -0,0 +1,4 @@
+import Test 1.0
+MyTypeObject {
+ enumProperty: "InvalidEnumName"
+}
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.5.errors.txt b/tests/auto/declarative/qmllanguage/data/wrongType.5.errors.txt
new file mode 100644
index 0000000..cab10bd
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.5.errors.txt
@@ -0,0 +1 @@
+3:19:Invalid property assignment: unsigned int expected
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.5.qml b/tests/auto/declarative/qmllanguage/data/wrongType.5.qml
new file mode 100644
index 0000000..c50ae9a
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.5.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+MyTypeObject {
+ uintProperty: -13
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.6.errors.txt b/tests/auto/declarative/qmllanguage/data/wrongType.6.errors.txt
new file mode 100644
index 0000000..d0a0b00
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.6.errors.txt
@@ -0,0 +1 @@
+3:19:Invalid property assignment: double expected
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.6.qml b/tests/auto/declarative/qmllanguage/data/wrongType.6.qml
new file mode 100644
index 0000000..da10b78
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.6.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+MyTypeObject {
+ realProperty: "Hello"
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.7.errors.txt b/tests/auto/declarative/qmllanguage/data/wrongType.7.errors.txt
new file mode 100644
index 0000000..614346b
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.7.errors.txt
@@ -0,0 +1 @@
+3:20:Invalid property assignment: color expected
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.7.qml b/tests/auto/declarative/qmllanguage/data/wrongType.7.qml
new file mode 100644
index 0000000..ddc3835
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.7.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+MyTypeObject {
+ colorProperty: 12
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.8.errors.txt b/tests/auto/declarative/qmllanguage/data/wrongType.8.errors.txt
new file mode 100644
index 0000000..1773c00
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.8.errors.txt
@@ -0,0 +1 @@
+3:19:Invalid property assignment: date expected
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.8.qml b/tests/auto/declarative/qmllanguage/data/wrongType.8.qml
new file mode 100644
index 0000000..a5f6756
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.8.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+MyTypeObject {
+ dateProperty: 12
+}
+
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.9.errors.txt b/tests/auto/declarative/qmllanguage/data/wrongType.9.errors.txt
new file mode 100644
index 0000000..8630975
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.9.errors.txt
@@ -0,0 +1 @@
+3:19:Invalid property assignment: time expected
diff --git a/tests/auto/declarative/qmllanguage/data/wrongType.9.qml b/tests/auto/declarative/qmllanguage/data/wrongType.9.qml
new file mode 100644
index 0000000..a3db732
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/data/wrongType.9.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+MyTypeObject {
+ timeProperty: 12
+}
+
diff --git a/tests/auto/declarative/qmllanguage/qmllanguage.pro b/tests/auto/declarative/qmllanguage/qmllanguage.pro
new file mode 100644
index 0000000..4e4be9c
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/qmllanguage.pro
@@ -0,0 +1,9 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_qmllanguage.cpp \
+ testtypes.cpp
+HEADERS += testtypes.h
+macx:CONFIG -= app_bundle
+
+# QMAKE_CXXFLAGS = -fprofile-arcs -ftest-coverage
+# LIBS += -lgcov
diff --git a/tests/auto/declarative/qmllanguage/testtypes.cpp b/tests/auto/declarative/qmllanguage/testtypes.cpp
new file mode 100644
index 0000000..58d99f1
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/testtypes.cpp
@@ -0,0 +1,10 @@
+#include "testtypes.h"
+
+QML_DEFINE_INTERFACE(MyInterface);
+QML_DEFINE_TYPE(Test,1,0,0,MyQmlObject,MyQmlObject);
+QML_DEFINE_TYPE(Test,1,0,0,MyTypeObject,MyTypeObject);
+QML_DEFINE_TYPE(Test,1,0,0,MyContainer,MyContainer);
+QML_DEFINE_TYPE(Test,1,0,0,MyPropertyValueSource,MyPropertyValueSource);
+QML_DEFINE_TYPE(Test,1,0,0,MyDotPropertyObject,MyDotPropertyObject);
+QML_DEFINE_TYPE(Test,1,0,0,MyNamespacedType,MyNamespace::MyNamespacedType);
+QML_DEFINE_NOCREATE_TYPE(MyGroupedObject);
diff --git a/tests/auto/declarative/qmllanguage/testtypes.h b/tests/auto/declarative/qmllanguage/testtypes.h
new file mode 100644
index 0000000..355ff8b
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/testtypes.h
@@ -0,0 +1,464 @@
+#ifndef TESTTYPES_H
+#define TESTTYPES_H
+
+#include <QtCore/qobject.h>
+#include <QtCore/qrect.h>
+#include <QtCore/qdatetime.h>
+#include <QtGui/qmatrix.h>
+#include <QtGui/qcolor.h>
+#include <QtDeclarative/qml.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtDeclarative/qmlparserstatus.h>
+#include <QtDeclarative/qmlpropertyvaluesource.h>
+#include <QtDeclarative/qmlscriptstring.h>
+
+class MyInterface
+{
+public:
+ MyInterface() : id(913) {}
+ int id;
+};
+Q_DECLARE_INTERFACE(MyInterface, "com.trolltech.Qt.Test.MyInterface");
+QML_DECLARE_INTERFACE(MyInterface);
+
+struct MyCustomVariantType
+{
+ MyCustomVariantType() : a(0) {}
+ int a;
+};
+Q_DECLARE_METATYPE(MyCustomVariantType);
+
+static QVariant myCustomVariantTypeConverter(const QString &data)
+{
+ MyCustomVariantType rv;
+ rv.a = data.toInt();
+ return QVariant::fromValue(rv);
+}
+
+class MyAttachedObject : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(int value READ value WRITE setValue)
+public:
+ MyAttachedObject(QObject *parent) : QObject(parent), m_value(0) {}
+
+ int value() const { return m_value; }
+ void setValue(int v) { m_value = v; }
+
+private:
+ int m_value;
+};
+
+class MyQmlObject : public QObject, public MyInterface, public QmlParserStatus
+{
+ Q_OBJECT
+ Q_PROPERTY(int value READ value WRITE setValue FINAL)
+ Q_PROPERTY(QString readOnlyString READ readOnlyString)
+ Q_PROPERTY(bool enabled READ enabled WRITE setEnabled)
+ Q_PROPERTY(QRect rect READ rect WRITE setRect)
+ Q_PROPERTY(QMatrix matrix READ matrix WRITE setMatrix) //assumed to be unsupported by QML
+ Q_PROPERTY(MyInterface *interfaceProperty READ interface WRITE setInterface)
+ Q_PROPERTY(int onLiteralSignal READ onLiteralSignal WRITE setOnLiteralSignal);
+ Q_PROPERTY(MyCustomVariantType customType READ customType WRITE setCustomType);
+ Q_PROPERTY(MyQmlObject *qmlobjectProperty READ qmlobject WRITE setQmlobject)
+
+ Q_INTERFACES(MyInterface QmlParserStatus)
+public:
+ MyQmlObject() : m_value(-1), m_interface(0), m_qmlobject(0) { qRegisterMetaType<MyCustomVariantType>("MyCustomVariantType"); }
+
+ int value() const { return m_value; }
+ void setValue(int v) { m_value = v; }
+
+ QString readOnlyString() const { return QLatin1String(""); }
+
+ bool enabled() const { return false; }
+ void setEnabled(bool) {}
+
+ QRect rect() const { return QRect(); }
+ void setRect(const QRect&) {}
+
+ QMatrix matrix() const { return QMatrix(); }
+ void setMatrix(const QMatrix&) {}
+
+ MyInterface *interface() const { return m_interface; }
+ void setInterface(MyInterface *iface) { m_interface = iface; }
+
+ static MyAttachedObject *qmlAttachedProperties(QObject *other) {
+ return new MyAttachedObject(other);
+ }
+ Q_CLASSINFO("DefaultMethod", "basicSlot()");
+
+ int onLiteralSignal() const { return m_value; }
+ void setOnLiteralSignal(int v) { m_value = v; }
+
+ MyQmlObject *qmlobject() const { return m_qmlobject; }
+ void setQmlobject(MyQmlObject *o) { m_qmlobject = o; }
+
+ MyCustomVariantType customType() const { return m_custom; }
+ void setCustomType(const MyCustomVariantType &v) { m_custom = v; }
+public slots:
+ void basicSlot() { qWarning("MyQmlObject::basicSlot"); }
+ void basicSlot(int v) { qWarning("MyQmlObject::basicSlot(%d)", v); }
+
+signals:
+ void basicSignal();
+ void basicParameterizedSignal(int parameter);
+
+private:
+ friend class tst_qmllanguage;
+ int m_value;
+ MyInterface *m_interface;
+ MyQmlObject *m_qmlobject;
+ MyCustomVariantType m_custom;
+};
+QML_DECLARE_TYPE(MyQmlObject);
+
+class MyGroupedObject : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(QmlScriptString script READ script WRITE setScript);
+public:
+ QmlScriptString script() const { return m_script; }
+ void setScript(const QmlScriptString &s) { m_script = s; }
+
+private:
+ QmlScriptString m_script;
+};
+
+QML_DECLARE_TYPE(MyGroupedObject);
+
+
+class MyTypeObject : public QObject
+{
+ Q_OBJECT
+ Q_ENUMS(MyEnum)
+ Q_FLAGS(MyFlags)
+
+ Q_PROPERTY(QString id READ id WRITE setId);
+ Q_PROPERTY(QObject *objectProperty READ objectProperty WRITE setObjectProperty);
+ Q_PROPERTY(QmlComponent *componentProperty READ componentProperty WRITE setComponentProperty);
+ Q_PROPERTY(MyFlags flagProperty READ flagProperty WRITE setFlagProperty);
+ Q_PROPERTY(MyEnum enumProperty READ enumProperty WRITE setEnumProperty);
+ Q_PROPERTY(QString stringProperty READ stringProperty WRITE setStringProperty);
+ Q_PROPERTY(uint uintProperty READ uintProperty WRITE setUintProperty);
+ Q_PROPERTY(int intProperty READ intProperty WRITE setIntProperty);
+ Q_PROPERTY(qreal realProperty READ realProperty WRITE setRealProperty);
+ Q_PROPERTY(double doubleProperty READ doubleProperty WRITE setDoubleProperty);
+ Q_PROPERTY(QColor colorProperty READ colorProperty WRITE setColorProperty);
+ Q_PROPERTY(QDate dateProperty READ dateProperty WRITE setDateProperty);
+ Q_PROPERTY(QTime timeProperty READ timeProperty WRITE setTimeProperty);
+ Q_PROPERTY(QDateTime dateTimeProperty READ dateTimeProperty WRITE setDateTimeProperty);
+ Q_PROPERTY(QPoint pointProperty READ pointProperty WRITE setPointProperty);
+ Q_PROPERTY(QPointF pointFProperty READ pointFProperty WRITE setPointFProperty);
+ Q_PROPERTY(QSize sizeProperty READ sizeProperty WRITE setSizeProperty);
+ Q_PROPERTY(QSizeF sizeFProperty READ sizeFProperty WRITE setSizeFProperty);
+ Q_PROPERTY(QRect rectProperty READ rectProperty WRITE setRectProperty NOTIFY rectPropertyChanged);
+ Q_PROPERTY(QRect rectProperty2 READ rectProperty2 WRITE setRectProperty2);
+ Q_PROPERTY(QRectF rectFProperty READ rectFProperty WRITE setRectFProperty);
+ Q_PROPERTY(bool boolProperty READ boolProperty WRITE setBoolProperty);
+ Q_PROPERTY(QVariant variantProperty READ variantProperty WRITE setVariantProperty);
+
+ Q_PROPERTY(QmlScriptString scriptProperty READ scriptProperty WRITE setScriptProperty);
+ Q_PROPERTY(MyGroupedObject *grouped READ grouped CONSTANT);
+
+public:
+ MyTypeObject()
+ : objectPropertyValue(0), componentPropertyValue(0) {}
+
+ QString idValue;
+ QString id() const {
+ return idValue;
+ }
+ void setId(const QString &v) {
+ idValue = v;
+ }
+
+ QObject *objectPropertyValue;
+ QObject *objectProperty() const {
+ return objectPropertyValue;
+ }
+ void setObjectProperty(QObject *v) {
+ objectPropertyValue = v;
+ }
+
+ QmlComponent *componentPropertyValue;
+ QmlComponent *componentProperty() const {
+ return componentPropertyValue;
+ }
+ void setComponentProperty(QmlComponent *v) {
+ componentPropertyValue = v;
+ }
+
+ enum MyFlag { FlagVal1 = 0x01, FlagVal2 = 0x02, FlagVal3 = 0x04 };
+ Q_DECLARE_FLAGS(MyFlags, MyFlag)
+ MyFlags flagPropertyValue;
+ MyFlags flagProperty() const {
+ return flagPropertyValue;
+ }
+ void setFlagProperty(MyFlags v) {
+ flagPropertyValue = v;
+ }
+
+ enum MyEnum { EnumVal1, EnumVal2 };
+ MyEnum enumPropertyValue;
+ MyEnum enumProperty() const {
+ return enumPropertyValue;
+ }
+ void setEnumProperty(MyEnum v) {
+ enumPropertyValue = v;
+ }
+
+ QString stringPropertyValue;
+ QString stringProperty() const {
+ return stringPropertyValue;
+ }
+ void setStringProperty(const QString &v) {
+ stringPropertyValue = v;
+ }
+
+ uint uintPropertyValue;
+ uint uintProperty() const {
+ return uintPropertyValue;
+ }
+ void setUintProperty(const uint &v) {
+ uintPropertyValue = v;
+ }
+
+ int intPropertyValue;
+ int intProperty() const {
+ return intPropertyValue;
+ }
+ void setIntProperty(const int &v) {
+ intPropertyValue = v;
+ }
+
+ qreal realPropertyValue;
+ qreal realProperty() const {
+ return realPropertyValue;
+ }
+ void setRealProperty(const qreal &v) {
+ realPropertyValue = v;
+ }
+
+ double doublePropertyValue;
+ double doubleProperty() const {
+ return doublePropertyValue;
+ }
+ void setDoubleProperty(const double &v) {
+ doublePropertyValue = v;
+ }
+
+ QColor colorPropertyValue;
+ QColor colorProperty() const {
+ return colorPropertyValue;
+ }
+ void setColorProperty(const QColor &v) {
+ colorPropertyValue = v;
+ }
+
+ QDate datePropertyValue;
+ QDate dateProperty() const {
+ return datePropertyValue;
+ }
+ void setDateProperty(const QDate &v) {
+ datePropertyValue = v;
+ }
+
+ QTime timePropertyValue;
+ QTime timeProperty() const {
+ return timePropertyValue;
+ }
+ void setTimeProperty(const QTime &v) {
+ timePropertyValue = v;
+ }
+
+ QDateTime dateTimePropertyValue;
+ QDateTime dateTimeProperty() const {
+ return dateTimePropertyValue;
+ }
+ void setDateTimeProperty(const QDateTime &v) {
+ dateTimePropertyValue = v;
+ }
+
+ QPoint pointPropertyValue;
+ QPoint pointProperty() const {
+ return pointPropertyValue;
+ }
+ void setPointProperty(const QPoint &v) {
+ pointPropertyValue = v;
+ }
+
+ QPointF pointFPropertyValue;
+ QPointF pointFProperty() const {
+ return pointFPropertyValue;
+ }
+ void setPointFProperty(const QPointF &v) {
+ pointFPropertyValue = v;
+ }
+
+ QSize sizePropertyValue;
+ QSize sizeProperty() const {
+ return sizePropertyValue;
+ }
+ void setSizeProperty(const QSize &v) {
+ sizePropertyValue = v;
+ }
+
+ QSizeF sizeFPropertyValue;
+ QSizeF sizeFProperty() const {
+ return sizeFPropertyValue;
+ }
+ void setSizeFProperty(const QSizeF &v) {
+ sizeFPropertyValue = v;
+ }
+
+ QRect rectPropertyValue;
+ QRect rectProperty() const {
+ return rectPropertyValue;
+ }
+ void setRectProperty(const QRect &v) {
+ rectPropertyValue = v;
+ emit rectPropertyChanged();
+ }
+
+ QRect rectPropertyValue2;
+ QRect rectProperty2() const {
+ return rectPropertyValue2;
+ }
+ void setRectProperty2(const QRect &v) {
+ rectPropertyValue2 = v;
+ }
+
+ QRectF rectFPropertyValue;
+ QRectF rectFProperty() const {
+ return rectFPropertyValue;
+ }
+ void setRectFProperty(const QRectF &v) {
+ rectFPropertyValue = v;
+ }
+
+ bool boolPropertyValue;
+ bool boolProperty() const {
+ return boolPropertyValue;
+ }
+ void setBoolProperty(const bool &v) {
+ boolPropertyValue = v;
+ }
+
+ QVariant variantPropertyValue;
+ QVariant variantProperty() const {
+ return variantPropertyValue;
+ }
+ void setVariantProperty(const QVariant &v) {
+ variantPropertyValue = v;
+ }
+
+ QmlScriptString scriptPropertyValue;
+ QmlScriptString scriptProperty() const {
+ return scriptPropertyValue;
+ }
+ void setScriptProperty(const QmlScriptString &v) {
+ scriptPropertyValue = v;
+ }
+
+ MyGroupedObject groupedValue;
+ MyGroupedObject *grouped() { return &groupedValue; }
+
+ void doAction() { emit action(); }
+signals:
+ void action();
+ void rectPropertyChanged();
+};
+Q_DECLARE_OPERATORS_FOR_FLAGS(MyTypeObject::MyFlags)
+QML_DECLARE_TYPE(MyTypeObject);
+
+class MyContainer : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(QList<QObject*>* children READ children)
+ Q_PROPERTY(QList<MyInterface*>* qlistInterfaces READ qlistInterfaces)
+ Q_PROPERTY(QmlList<MyInterface*>* qmllistInterfaces READ qmllistInterfaces)
+ Q_CLASSINFO("DefaultProperty", "children");
+public:
+ MyContainer() {}
+
+ QList<QObject*> *children() { return &m_children; }
+ QList<MyInterface *> *qlistInterfaces() { return &m_interfaces; }
+ QmlList<MyInterface *> *qmllistInterfaces() { return &m_qmlinterfaces; }
+ const QmlConcreteList<MyInterface *> &qmllistAccessor() const { return m_qmlinterfaces; }
+
+private:
+ QList<QObject*> m_children;
+ QList<MyInterface *> m_interfaces;
+ QmlConcreteList<MyInterface *> m_qmlinterfaces;
+};
+
+QML_DECLARE_TYPE(MyContainer);
+
+
+class MyPropertyValueSource : public QObject, public QmlPropertyValueSource
+{
+ Q_OBJECT
+ Q_INTERFACES(QmlPropertyValueSource)
+public:
+ MyPropertyValueSource()
+ : QmlPropertyValueSource() {}
+
+ QmlMetaProperty prop;
+ virtual void setTarget(const QmlMetaProperty &p)
+ {
+ prop = p;
+ }
+};
+QML_DECLARE_TYPE(MyPropertyValueSource);
+
+class MyDotPropertyObject : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(MyQmlObject *obj READ obj)
+ Q_PROPERTY(MyQmlObject *readWriteObj READ readWriteObj WRITE setReadWriteObj)
+public:
+ MyDotPropertyObject() : m_rwobj(0), m_ownRWObj(false) {}
+ ~MyDotPropertyObject()
+ {
+ if (m_ownRWObj)
+ delete m_rwobj;
+ }
+
+ MyQmlObject *obj() { return 0; }
+
+ MyQmlObject *readWriteObj()
+ {
+ if (!m_rwobj) {
+ m_rwobj = new MyQmlObject;
+ m_ownRWObj = true;
+ }
+ return m_rwobj;
+ }
+
+ void setReadWriteObj(MyQmlObject *obj)
+ {
+ if (m_ownRWObj) {
+ delete m_rwobj;
+ m_ownRWObj = false;
+ }
+
+ m_rwobj = obj;
+ }
+
+private:
+ MyQmlObject *m_rwobj;
+ bool m_ownRWObj;
+};
+
+QML_DECLARE_TYPE(MyDotPropertyObject);
+
+namespace MyNamespace {
+ class MyNamespacedType : public QObject
+ {
+ Q_OBJECT
+ };
+}
+QML_DECLARE_TYPE(MyNamespace::MyNamespacedType);
+
+#endif // TESTTYPES_H
diff --git a/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp b/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
new file mode 100644
index 0000000..d51bbcc
--- /dev/null
+++ b/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
@@ -0,0 +1,1019 @@
+#include <qtest.h>
+#include <QtDeclarative/qmlengine.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtCore/qfile.h>
+#include <QtCore/qdebug.h>
+#include <QtCore/qfileinfo.h>
+#include <QtCore/qdir.h>
+#include "testtypes.h"
+
+/*
+This test case covers QML language issues. This covers everything that does
+involve evaluating ECMAScript expressions and bindings.
+
+Evaluation of expressions and bindings is covered in qmlecmascript
+*/
+class tst_qmllanguage : public QObject
+{
+ Q_OBJECT
+public:
+ tst_qmllanguage() {
+ QmlMetaType::registerCustomStringConverter(qMetaTypeId<MyCustomVariantType>(), myCustomVariantTypeConverter);
+ QFileInfo fileInfo(__FILE__);
+ engine.addImportPath(fileInfo.absoluteDir().filePath(QLatin1String("data/lib")));
+ }
+
+private slots:
+ void initTestCase();
+ void cleanupTestCase();
+
+ void errors_data();
+ void errors();
+
+ void simpleObject();
+ void simpleContainer();
+ void interfaceProperty();
+ void interfaceQmlList();
+ void interfaceQList();
+ void assignObjectToSignal();
+ void assignObjectToVariant();
+ void assignLiteralSignalProperty();
+ void assignQmlComponent();
+ void assignBasicTypes();
+ void assignTypeExtremes();
+ void assignCompositeToType();
+ void customParserTypes();
+ void rootAsQmlComponent();
+ void inlineQmlComponents();
+ void idProperty();
+ void assignSignal();
+ void dynamicProperties();
+ void dynamicObjectProperties();
+ void dynamicSignalsAndSlots();
+ void simpleBindings();
+ void autoComponentCreation();
+ void propertyValueSource();
+ void attachedProperties();
+ void dynamicObjects();
+ void customVariantTypes();
+ void valueTypes();
+ void cppnamespace();
+ void aliasProperties();
+ void componentCompositeType();
+ void i18n();
+ void i18n_data();
+ void onCompleted();
+ void scriptString();
+
+ void importsBuiltin_data();
+ void importsBuiltin();
+ void importsLocal_data();
+ void importsLocal();
+ void importsInstalled_data();
+ void importsInstalled();
+ void importsOrder_data();
+ void importsOrder();
+
+ // regression tests for crashes
+ void crash1();
+
+private:
+ QmlEngine engine;
+ void testType(const QString& qml, const QString& type);
+};
+
+#define VERIFY_ERRORS(errorfile) \
+ if (!errorfile) { \
+ if (qgetenv("DEBUG") != "" && !component.errors().isEmpty()) \
+ qWarning() << "Unexpected Errors:" << component.errors(); \
+ QVERIFY(!component.isError()); \
+ QVERIFY(component.errors().isEmpty()); \
+ } else { \
+ QFile file(QLatin1String("data/") + QLatin1String(errorfile)); \
+ QVERIFY(file.open(QIODevice::ReadOnly)); \
+ QByteArray data = file.readAll(); \
+ QList<QByteArray> expected = data.split('\n'); \
+ expected.removeAll(QByteArray("")); \
+ QList<QmlError> errors = component.errors(); \
+ QList<QByteArray> actual; \
+ for (int ii = 0; ii < errors.count(); ++ii) { \
+ const QmlError &error = errors.at(ii); \
+ QByteArray errorStr = QByteArray::number(error.line()) + ":" + \
+ QByteArray::number(error.column()) + ":" + \
+ error.description().toUtf8(); \
+ actual << errorStr; \
+ } \
+ if (qgetenv("DEBUG") != "" && expected != actual) \
+ qWarning() << "Expected:" << expected << "Actual:" << actual; \
+ QCOMPARE(expected, actual); \
+ }
+
+inline QUrl TEST_FILE(const QString &filename)
+{
+ QFileInfo fileInfo(__FILE__);
+ return QUrl::fromLocalFile(fileInfo.absoluteDir().filePath(QLatin1String("data/") + filename));
+}
+
+inline QUrl TEST_FILE(const char *filename)
+{
+ return TEST_FILE(QLatin1String(filename));
+}
+
+void tst_qmllanguage::initTestCase()
+{
+ // Create locale-specific file
+ // For POSIX, this will just be data/I18nType.qml, since POSIX is 7-bit
+ // For iso8859-1 locale, this will just be data/I18nType?????.qml where ????? is 5 8-bit characters
+ // For utf-8 locale, this will be data/I18nType??????????.qml where ?????????? is 5 8-bit characters, UTF-8 encoded
+ QFile in(TEST_FILE(QLatin1String("I18nType30.qml")).toLocalFile());
+ QVERIFY(in.open(QIODevice::ReadOnly));
+ QFile out(TEST_FILE(QString::fromUtf8("I18nType\303\201\303\242\303\243\303\244\303\245.qml")).toLocalFile());
+ QVERIFY(out.open(QIODevice::WriteOnly));
+ out.write(in.readAll());
+}
+
+void tst_qmllanguage::cleanupTestCase()
+{
+ QVERIFY(QFile::remove(TEST_FILE(QString::fromUtf8("I18nType\303\201\303\242\303\243\303\244\303\245.qml")).toLocalFile()));
+}
+
+void tst_qmllanguage::errors_data()
+{
+ QTest::addColumn<QString>("file");
+ QTest::addColumn<QString>("errorFile");
+ QTest::addColumn<bool>("create");
+
+ QTest::newRow("nonexistantProperty.1") << "nonexistantProperty.1.qml" << "nonexistantProperty.1.errors.txt" << false;
+ QTest::newRow("nonexistantProperty.2") << "nonexistantProperty.2.qml" << "nonexistantProperty.2.errors.txt" << false;
+ QTest::newRow("nonexistantProperty.3") << "nonexistantProperty.3.qml" << "nonexistantProperty.3.errors.txt" << false;
+ QTest::newRow("nonexistantProperty.4") << "nonexistantProperty.4.qml" << "nonexistantProperty.4.errors.txt" << false;
+ QTest::newRow("nonexistantProperty.5") << "nonexistantProperty.5.qml" << "nonexistantProperty.5.errors.txt" << false;
+ QTest::newRow("nonexistantProperty.6") << "nonexistantProperty.6.qml" << "nonexistantProperty.6.errors.txt" << false;
+
+ QTest::newRow("wrongType (string for int)") << "wrongType.1.qml" << "wrongType.1.errors.txt" << false;
+ QTest::newRow("wrongType (int for bool)") << "wrongType.2.qml" << "wrongType.2.errors.txt" << false;
+ QTest::newRow("wrongType (bad rect)") << "wrongType.3.qml" << "wrongType.3.errors.txt" << false;
+
+ QTest::newRow("wrongType (invalid enum)") << "wrongType.4.qml" << "wrongType.4.errors.txt" << false;
+ QTest::newRow("wrongType (int for uint)") << "wrongType.5.qml" << "wrongType.5.errors.txt" << false;
+ QTest::newRow("wrongType (string for real)") << "wrongType.6.qml" << "wrongType.6.errors.txt" << false;
+ QTest::newRow("wrongType (int for color)") << "wrongType.7.qml" << "wrongType.7.errors.txt" << false;
+ QTest::newRow("wrongType (int for date)") << "wrongType.8.qml" << "wrongType.8.errors.txt" << false;
+ QTest::newRow("wrongType (int for time)") << "wrongType.9.qml" << "wrongType.9.errors.txt" << false;
+ QTest::newRow("wrongType (int for datetime)") << "wrongType.10.qml" << "wrongType.10.errors.txt" << false;
+ QTest::newRow("wrongType (string for point)") << "wrongType.11.qml" << "wrongType.11.errors.txt" << false;
+ QTest::newRow("wrongType (color for size)") << "wrongType.12.qml" << "wrongType.12.errors.txt" << false;
+ QTest::newRow("wrongType (number string for int)") << "wrongType.13.qml" << "wrongType.13.errors.txt" << false;
+ QTest::newRow("wrongType (int for string)") << "wrongType.14.qml" << "wrongType.14.errors.txt" << false;
+
+ QTest::newRow("readOnly.1") << "readOnly.1.qml" << "readOnly.1.errors.txt" << false;
+ QTest::newRow("readOnly.2") << "readOnly.2.qml" << "readOnly.2.errors.txt" << false;
+
+ QTest::newRow("listAssignment.1") << "listAssignment.1.qml" << "listAssignment.1.errors.txt" << false;
+ QTest::newRow("listAssignment.2") << "listAssignment.2.qml" << "listAssignment.2.errors.txt" << false;
+ QTest::newRow("listAssignment.3") << "listAssignment.3.qml" << "listAssignment.3.errors.txt" << false;
+
+ QTest::newRow("invalidID.1") << "invalidID.qml" << "invalidID.errors.txt" << false;
+ QTest::newRow("invalidID.2") << "invalidID.2.qml" << "invalidID.2.errors.txt" << false;
+ QTest::newRow("invalidID.3") << "invalidID.3.qml" << "invalidID.3.errors.txt" << false;
+ QTest::newRow("invalidID.4") << "invalidID.4.qml" << "invalidID.4.errors.txt" << false;
+ QTest::newRow("invalidID.5") << "invalidID.5.qml" << "invalidID.5.errors.txt" << false;
+ QTest::newRow("invalidID.6") << "invalidID.6.qml" << "invalidID.6.errors.txt" << false;
+
+
+ QTest::newRow("unsupportedProperty") << "unsupportedProperty.qml" << "unsupportedProperty.errors.txt" << false;
+ QTest::newRow("nullDotProperty") << "nullDotProperty.qml" << "nullDotProperty.errors.txt" << true;
+ QTest::newRow("fakeDotProperty") << "fakeDotProperty.qml" << "fakeDotProperty.errors.txt" << false;
+ QTest::newRow("duplicateIDs") << "duplicateIDs.qml" << "duplicateIDs.errors.txt" << false;
+ QTest::newRow("unregisteredObject") << "unregisteredObject.qml" << "unregisteredObject.errors.txt" << false;
+ QTest::newRow("empty") << "empty.qml" << "empty.errors.txt" << false;
+ QTest::newRow("missingObject") << "missingObject.qml" << "missingObject.errors.txt" << false;
+ QTest::newRow("failingComponent") << "failingComponentTest.qml" << "failingComponent.errors.txt" << false;
+ QTest::newRow("missingSignal") << "missingSignal.qml" << "missingSignal.errors.txt" << false;
+ QTest::newRow("finalOverride") << "finalOverride.qml" << "finalOverride.errors.txt" << false;
+
+ QTest::newRow("importNamespaceConflict") << "importNamespaceConflict.qml" << "importNamespaceConflict.errors.txt" << false;
+ QTest::newRow("importVersionMissing (builtin)") << "importVersionMissingBuiltIn.qml" << "importVersionMissingBuiltIn.errors.txt" << false;
+ QTest::newRow("importVersionMissing (installed)") << "importVersionMissingInstalled.qml" << "importVersionMissingInstalled.errors.txt" << false;
+
+ QTest::newRow("customParserIdNotAllowed") << "customParserIdNotAllowed.qml" << "customParserIdNotAllowed.errors.txt" << false;
+}
+
+void tst_qmllanguage::errors()
+{
+ QFETCH(QString, file);
+ QFETCH(QString, errorFile);
+ QFETCH(bool, create);
+
+ QmlComponent component(&engine, TEST_FILE(file));
+
+ if(create) {
+ QObject *object = component.create();
+ QVERIFY(object == 0);
+ }
+
+ VERIFY_ERRORS(errorFile.toLatin1().constData());
+}
+
+void tst_qmllanguage::simpleObject()
+{
+ QmlComponent component(&engine, TEST_FILE("simpleObject.qml"));
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+}
+
+void tst_qmllanguage::simpleContainer()
+{
+ QmlComponent component(&engine, TEST_FILE("simpleContainer.qml"));
+ VERIFY_ERRORS(0);
+ MyContainer *container= qobject_cast<MyContainer*>(component.create());
+ QVERIFY(container != 0);
+ QCOMPARE(container->children()->count(),2);
+}
+
+void tst_qmllanguage::interfaceProperty()
+{
+ QmlComponent component(&engine, TEST_FILE("interfaceProperty.qml"));
+ VERIFY_ERRORS(0);
+ MyQmlObject *object = qobject_cast<MyQmlObject*>(component.create());
+ QVERIFY(object != 0);
+ QVERIFY(object->interface());
+ QVERIFY(object->interface()->id == 913);
+}
+
+void tst_qmllanguage::interfaceQmlList()
+{
+ QmlComponent component(&engine, TEST_FILE("interfaceQmlList.qml"));
+ VERIFY_ERRORS(0);
+ MyContainer *container= qobject_cast<MyContainer*>(component.create());
+ QVERIFY(container != 0);
+ QVERIFY(container->qmllistAccessor().count() == 2);
+ for(int ii = 0; ii < 2; ++ii)
+ QVERIFY(container->qmllistAccessor().at(ii)->id == 913);
+}
+
+void tst_qmllanguage::interfaceQList()
+{
+ QmlComponent component(&engine, TEST_FILE("interfaceQList.qml"));
+ VERIFY_ERRORS(0);
+ MyContainer *container= qobject_cast<MyContainer*>(component.create());
+ QVERIFY(container != 0);
+ QVERIFY(container->qlistInterfaces()->count() == 2);
+ for(int ii = 0; ii < 2; ++ii)
+ QVERIFY(container->qlistInterfaces()->at(ii)->id == 913);
+}
+
+void tst_qmllanguage::assignObjectToSignal()
+{
+ QmlComponent component(&engine, TEST_FILE("assignObjectToSignal.qml"));
+ VERIFY_ERRORS(0);
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+ QTest::ignoreMessage(QtWarningMsg, "MyQmlObject::basicSlot");
+ emit object->basicSignal();
+}
+
+void tst_qmllanguage::assignObjectToVariant()
+{
+ QmlComponent component(&engine, TEST_FILE("assignObjectToVariant.qml"));
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+ QVariant v = object->property("a");
+ QVERIFY(v.userType() == qMetaTypeId<QObject *>());
+}
+
+void tst_qmllanguage::assignLiteralSignalProperty()
+{
+ QmlComponent component(&engine, TEST_FILE("assignLiteralSignalProperty.qml"));
+ VERIFY_ERRORS(0);
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+ QCOMPARE(object->onLiteralSignal(), 10);
+}
+
+// Test is an external component can be loaded and assigned (to a qlist)
+void tst_qmllanguage::assignQmlComponent()
+{
+ QmlComponent component(&engine, TEST_FILE("assignQmlComponent.qml"));
+ VERIFY_ERRORS(0);
+ MyContainer *object = qobject_cast<MyContainer *>(component.create());
+ QVERIFY(object != 0);
+ QVERIFY(object->children()->count() == 1);
+ QObject *child = object->children()->at(0);
+ QCOMPARE(child->property("x"), QVariant(10));
+ QCOMPARE(child->property("y"), QVariant(11));
+}
+
+// Test literal assignment to all the basic types
+void tst_qmllanguage::assignBasicTypes()
+{
+ QmlComponent component(&engine, TEST_FILE("assignBasicTypes.qml"));
+ VERIFY_ERRORS(0);
+ MyTypeObject *object = qobject_cast<MyTypeObject *>(component.create());
+ QVERIFY(object != 0);
+ QCOMPARE(object->flagProperty(), MyTypeObject::FlagVal1 | MyTypeObject::FlagVal3);
+ QCOMPARE(object->enumProperty(), MyTypeObject::EnumVal2);
+ QCOMPARE(object->stringProperty(), QString("Hello World!"));
+ QCOMPARE(object->uintProperty(), uint(10));
+ QCOMPARE(object->intProperty(), -19);
+ QCOMPARE((float)object->realProperty(), float(23.2));
+ QCOMPARE((float)object->doubleProperty(), float(-19.7));
+ QCOMPARE(object->colorProperty(), QColor("red"));
+ QCOMPARE(object->dateProperty(), QDate(1982, 11, 25));
+ QCOMPARE(object->timeProperty(), QTime(11, 11, 32));
+ QCOMPARE(object->dateTimeProperty(), QDateTime(QDate(2009, 5, 12), QTime(13, 22, 1)));
+ QCOMPARE(object->pointProperty(), QPoint(99,13));
+ QCOMPARE(object->pointFProperty(), QPointF((float)-10.1, (float)12.3));
+ QCOMPARE(object->sizeProperty(), QSize(99, 13));
+ QCOMPARE(object->sizeFProperty(), QSizeF((float)0.1, (float)0.2));
+ QCOMPARE(object->rectProperty(), QRect(9, 7, 100, 200));
+ QCOMPARE(object->rectFProperty(), QRectF((float)1000.1, (float)-10.9, (float)400, (float)90.99));
+ QCOMPARE(object->boolProperty(), true);
+ QCOMPARE(object->variantProperty(), QVariant("Hello World!"));
+ QVERIFY(object->objectProperty() != 0);
+ MyTypeObject *child = qobject_cast<MyTypeObject *>(object->objectProperty());
+ QVERIFY(child != 0);
+ QCOMPARE(child->intProperty(), 8);
+}
+
+// Test edge case type assignments
+void tst_qmllanguage::assignTypeExtremes()
+{
+ QmlComponent component(&engine, TEST_FILE("assignTypeExtremes.qml"));
+ VERIFY_ERRORS(0);
+ MyTypeObject *object = qobject_cast<MyTypeObject *>(component.create());
+ QVERIFY(object != 0);
+ QCOMPARE(object->uintProperty(), 0xEE6B2800);
+ QCOMPARE(object->intProperty(), -0x77359400);
+}
+
+// Test that a composite type can assign to a property of its base type
+void tst_qmllanguage::assignCompositeToType()
+{
+ QmlComponent component(&engine, TEST_FILE("assignCompositeToType.qml"));
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+}
+
+// Tests that custom parser types can be instantiated
+void tst_qmllanguage::customParserTypes()
+{
+ QmlComponent component(&engine, TEST_FILE("customParserTypes.qml"));
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+ QVERIFY(object->property("count") == QVariant(2));
+}
+
+// Tests that the root item can be a custom component
+void tst_qmllanguage::rootAsQmlComponent()
+{
+ QmlComponent component(&engine, TEST_FILE("rootAsQmlComponent.qml"));
+ VERIFY_ERRORS(0);
+ MyContainer *object = qobject_cast<MyContainer *>(component.create());
+ QVERIFY(object != 0);
+ QCOMPARE(object->property("x"), QVariant(11));
+ QCOMPARE(object->children()->count(), 2);
+}
+
+// Tests that components can be specified inline
+void tst_qmllanguage::inlineQmlComponents()
+{
+ QmlComponent component(&engine, TEST_FILE("inlineQmlComponents.qml"));
+ VERIFY_ERRORS(0);
+ MyContainer *object = qobject_cast<MyContainer *>(component.create());
+ QVERIFY(object != 0);
+ QCOMPARE(object->children()->count(), 1);
+ QmlComponent *comp = qobject_cast<QmlComponent *>(object->children()->at(0));
+ QVERIFY(comp != 0);
+ MyQmlObject *compObject = qobject_cast<MyQmlObject *>(comp->create());
+ QVERIFY(compObject != 0);
+ QCOMPARE(compObject->value(), 11);
+}
+
+// Tests that types that have an id property have it set
+void tst_qmllanguage::idProperty()
+{
+ QmlComponent component(&engine, TEST_FILE("idProperty.qml"));
+ VERIFY_ERRORS(0);
+ MyContainer *object = qobject_cast<MyContainer *>(component.create());
+ QVERIFY(object != 0);
+ QCOMPARE(object->children()->count(), 1);
+ MyTypeObject *child =
+ qobject_cast<MyTypeObject *>(object->children()->at(0));
+ QVERIFY(child != 0);
+ QCOMPARE(child->id(), QString("MyObjectId"));
+ QCOMPARE(object->property("object"), QVariant::fromValue((QObject *)child));
+}
+
+// Tests that signals can be assigned to
+void tst_qmllanguage::assignSignal()
+{
+ QmlComponent component(&engine, TEST_FILE("assignSignal.qml"));
+ VERIFY_ERRORS(0);
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+ QTest::ignoreMessage(QtWarningMsg, "MyQmlObject::basicSlot");
+ emit object->basicSignal();
+ QTest::ignoreMessage(QtWarningMsg, "MyQmlObject::basicSlot(9)");
+ emit object->basicParameterizedSignal(9);
+}
+
+// Tests the creation and assignment of dynamic properties
+void tst_qmllanguage::dynamicProperties()
+{
+ QmlComponent component(&engine, TEST_FILE("dynamicProperties.qml"));
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+ QCOMPARE(object->property("intProperty"), QVariant(10));
+ QCOMPARE(object->property("boolProperty"), QVariant(false));
+ QCOMPARE(object->property("doubleProperty"), QVariant(-10.1));
+ QCOMPARE(object->property("realProperty"), QVariant((qreal)-19.9));
+ QCOMPARE(object->property("stringProperty"), QVariant("Hello World!"));
+ QCOMPARE(object->property("colorProperty"), QVariant(QColor("red")));
+ QCOMPARE(object->property("dateProperty"), QVariant(QDate(1945, 9, 2)));
+ QCOMPARE(object->property("varProperty"), QVariant("Hello World!"));
+ QCOMPARE(object->property("variantProperty"), QVariant(12));
+}
+
+// Tests the creation and assignment of dynamic object properties
+// ### Not complete
+void tst_qmllanguage::dynamicObjectProperties()
+{
+ QmlComponent component(&engine, TEST_FILE("dynamicObjectProperties.qml"));
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ QVERIFY(object->property("objectProperty") == qVariantFromValue((QObject*)0));
+ QVERIFY(object->property("objectProperty2") != qVariantFromValue((QObject*)0));
+}
+
+// Tests the declaration of dynamic signals and slots
+void tst_qmllanguage::dynamicSignalsAndSlots()
+{
+ QmlComponent component(&engine, TEST_FILE("dynamicSignalsAndSlots.qml"));
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+ QVERIFY(object->metaObject()->indexOfMethod("signal1()") != -1);
+ QVERIFY(object->metaObject()->indexOfMethod("signal2()") != -1);
+ QVERIFY(object->metaObject()->indexOfMethod("slot1()") != -1);
+ QVERIFY(object->metaObject()->indexOfMethod("slot2()") != -1);
+}
+
+void tst_qmllanguage::simpleBindings()
+{
+ QmlComponent component(&engine, TEST_FILE("simpleBindings.qml"));
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+ QCOMPARE(object->property("value1"), QVariant(10));
+ QCOMPARE(object->property("value2"), QVariant(10));
+ QCOMPARE(object->property("value3"), QVariant(21));
+ QCOMPARE(object->property("value4"), QVariant(10));
+ QCOMPARE(object->property("objectProperty"), QVariant::fromValue(object));
+}
+
+void tst_qmllanguage::autoComponentCreation()
+{
+ QmlComponent component(&engine, TEST_FILE("autoComponentCreation.qml"));
+ VERIFY_ERRORS(0);
+ MyTypeObject *object = qobject_cast<MyTypeObject *>(component.create());
+ QVERIFY(object != 0);
+ QVERIFY(object->componentProperty() != 0);
+ MyTypeObject *child = qobject_cast<MyTypeObject *>(object->componentProperty()->create());
+ QVERIFY(child != 0);
+ QCOMPARE(child->realProperty(), qreal(9));
+}
+
+void tst_qmllanguage::propertyValueSource()
+{
+ QmlComponent component(&engine, TEST_FILE("propertyValueSource.qml"));
+ VERIFY_ERRORS(0);
+ MyTypeObject *object = qobject_cast<MyTypeObject *>(component.create());
+ QVERIFY(object != 0);
+
+ QList<QObject *> valueSources;
+ QObjectList allChildren = object->findChildren<QObject*>();
+ foreach (QObject *child, allChildren) {
+ QmlType *type = QmlMetaType::qmlType(child->metaObject());
+ if (type && type->propertyValueSourceCast() != -1)
+ valueSources.append(child);
+ }
+
+ QCOMPARE(valueSources.count(), 1);
+ MyPropertyValueSource *valueSource =
+ qobject_cast<MyPropertyValueSource *>(valueSources.at(0));
+ QVERIFY(valueSource != 0);
+ QCOMPARE(valueSource->prop.object(), object);
+ QCOMPARE(valueSource->prop.name(), QString(QLatin1String("intProperty")));
+}
+
+void tst_qmllanguage::attachedProperties()
+{
+ QmlComponent component(&engine, TEST_FILE("attachedProperties.qml"));
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+ QObject *attached = qmlAttachedPropertiesObject<MyQmlObject>(object);
+ QVERIFY(attached != 0);
+ QCOMPARE(attached->property("value"), QVariant(10));
+}
+
+// Tests non-static object properties
+void tst_qmllanguage::dynamicObjects()
+{
+ QmlComponent component(&engine, TEST_FILE("dynamicObject.1.qml"));
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+}
+
+// Tests the registration of custom variant string converters
+void tst_qmllanguage::customVariantTypes()
+{
+ QmlComponent component(&engine, TEST_FILE("customVariantTypes.qml"));
+ VERIFY_ERRORS(0);
+ MyQmlObject *object = qobject_cast<MyQmlObject*>(component.create());
+ QVERIFY(object != 0);
+ QCOMPARE(object->customType().a, 10);
+}
+
+void tst_qmllanguage::valueTypes()
+{
+ QmlComponent component(&engine, TEST_FILE("valueTypes.qml"));
+ VERIFY_ERRORS(0);
+ MyTypeObject *object = qobject_cast<MyTypeObject*>(component.create());
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->rectProperty(), QRect(10, 11, 12, 13));
+ QCOMPARE(object->rectProperty2(), QRect(10, 11, 12, 13));
+ QCOMPARE(object->intProperty(), 10);
+ object->doAction();
+ QCOMPARE(object->rectProperty(), QRect(12, 11, 14, 13));
+ QCOMPARE(object->rectProperty2(), QRect(12, 11, 14, 13));
+ QCOMPARE(object->intProperty(), 12);
+
+ QmlMetaProperty p = QmlMetaProperty::createProperty(object, "rectProperty.x");
+ QCOMPARE(p.read(), QVariant(12));
+ p.write(13);
+ QCOMPARE(p.read(), QVariant(13));
+
+ quint32 r = p.save();
+ QmlMetaProperty p2;
+ p2.restore(r, object);
+ QCOMPARE(p2.read(), QVariant(13));
+}
+
+void tst_qmllanguage::cppnamespace()
+{
+ QmlComponent component(&engine, TEST_FILE("cppnamespace.qml"));
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+ delete object;
+}
+
+void tst_qmllanguage::aliasProperties()
+{
+ // Simple "int" alias
+ {
+ QmlComponent component(&engine, TEST_FILE("alias.1.qml"));
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ // Read through alias
+ QCOMPARE(object->property("valueAlias").toInt(), 10);
+ object->setProperty("value", QVariant(13));
+ QCOMPARE(object->property("valueAlias").toInt(), 13);
+
+ // Write throught alias
+ object->setProperty("valueAlias", QVariant(19));
+ QCOMPARE(object->property("valueAlias").toInt(), 19);
+ QCOMPARE(object->property("value").toInt(), 19);
+
+ delete object;
+ }
+
+ // Complex object alias
+ {
+ QmlComponent component(&engine, TEST_FILE("alias.2.qml"));
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ // Read through alias
+ MyQmlObject *v =
+ qvariant_cast<MyQmlObject *>(object->property("aliasObject"));
+ QVERIFY(v != 0);
+ QCOMPARE(v->value(), 10);
+
+ // Write through alias
+ MyQmlObject *v2 = new MyQmlObject();
+ v2->setParent(object);
+ object->setProperty("aliasObject", qVariantFromValue(v2));
+ MyQmlObject *v3 =
+ qvariant_cast<MyQmlObject *>(object->property("aliasObject"));
+ QVERIFY(v3 != 0);
+ QCOMPARE(v3, v2);
+
+ delete object;
+ }
+
+ // Nested aliases
+ {
+ QmlComponent component(&engine, TEST_FILE("alias.3.qml"));
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("value").toInt(), 1892);
+ QCOMPARE(object->property("value2").toInt(), 1892);
+
+ object->setProperty("value", QVariant(1313));
+ QCOMPARE(object->property("value").toInt(), 1313);
+ QCOMPARE(object->property("value2").toInt(), 1313);
+
+ object->setProperty("value2", QVariant(8080));
+ QCOMPARE(object->property("value").toInt(), 8080);
+ QCOMPARE(object->property("value2").toInt(), 8080);
+
+ delete object;
+ }
+
+ // Enum aliases
+ {
+ QmlComponent component(&engine, TEST_FILE("alias.4.qml"));
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("enumAlias").toInt(), 1);
+
+ delete object;
+ }
+
+ // Id aliases
+ {
+ QmlComponent component(&engine, TEST_FILE("alias.5.qml"));
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ QVariant v = object->property("otherAlias");
+ QCOMPARE(v.userType(), qMetaTypeId<MyQmlObject*>());
+ MyQmlObject *o = qvariant_cast<MyQmlObject*>(v);
+ QCOMPARE(o->value(), 10);
+
+ delete o;
+
+ v = object->property("otherAlias");
+ QCOMPARE(v.userType(), qMetaTypeId<MyQmlObject*>());
+ o = qvariant_cast<MyQmlObject*>(v);
+ QVERIFY(o == 0);
+
+ delete object;
+ }
+
+ // Nested aliases - this used to cause a crash
+ {
+ QmlComponent component(&engine, TEST_FILE("alias.6.qml"));
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("a").toInt(), 1923);
+ }
+}
+
+// Test that the root element in a composite type can be a Component
+void tst_qmllanguage::componentCompositeType()
+{
+ QmlComponent component(&engine, TEST_FILE("componentCompositeType.qml"));
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+}
+
+class TestType : public QObject {
+ Q_OBJECT
+public:
+ TestType(QObject *p=0) : QObject(p) {}
+};
+
+class TestType2 : public QObject {
+ Q_OBJECT
+public:
+ TestType2(QObject *p=0) : QObject(p) {}
+};
+
+void tst_qmllanguage::i18n_data()
+{
+ QTest::addColumn<QString>("file");
+ QTest::addColumn<QString>("stringProperty");
+ QTest::newRow("i18nStrings") << "i18nStrings.qml" << QString::fromUtf8("Test \303\241\303\242\303\243\303\244\303\245 (5 accented 'a' letters)");
+ QTest::newRow("i18nDeclaredPropertyNames") << "i18nDeclaredPropertyNames.qml" << QString::fromUtf8("Test \303\241\303\242\303\243\303\244\303\245: 10");
+ QTest::newRow("i18nDeclaredPropertyUse") << "i18nDeclaredPropertyUse.qml" << QString::fromUtf8("Test \303\241\303\242\303\243\303\244\303\245: 15");
+ QTest::newRow("i18nScript") << "i18nScript.qml" << QString::fromUtf8("Test \303\241\303\242\303\243\303\244\303\245: 20");
+ QTest::newRow("i18nType") << "i18nType.qml" << QString::fromUtf8("Test \303\241\303\242\303\243\303\244\303\245: 30");
+ QTest::newRow("i18nNameSpace") << "i18nNameSpace.qml" << QString::fromUtf8("Test \303\241\303\242\303\243\303\244\303\245: 40");
+}
+
+void tst_qmllanguage::i18n()
+{
+ QFETCH(QString, file);
+ QFETCH(QString, stringProperty);
+ QmlComponent component(&engine, TEST_FILE(file));
+ VERIFY_ERRORS(0);
+ MyTypeObject *object = qobject_cast<MyTypeObject *>(component.create());
+ QVERIFY(object != 0);
+ QCOMPARE(object->stringProperty(), stringProperty);
+
+ delete object;
+}
+
+// Check that the Component::onCompleted attached property works
+void tst_qmllanguage::onCompleted()
+{
+ QmlComponent component(&engine, TEST_FILE("onCompleted.qml"));
+ VERIFY_ERRORS(0);
+ QTest::ignoreMessage(QtDebugMsg, "Completed 6 10");
+ QTest::ignoreMessage(QtDebugMsg, "Completed 6 10");
+ QTest::ignoreMessage(QtDebugMsg, "Completed 10 11");
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+}
+
+// Check that assignments to QmlScriptString properties work
+void tst_qmllanguage::scriptString()
+{
+ QmlComponent component(&engine, TEST_FILE("scriptString.qml"));
+ VERIFY_ERRORS(0);
+
+ MyTypeObject *object = qobject_cast<MyTypeObject*>(component.create());
+ QVERIFY(object != 0);
+ QCOMPARE(object->scriptProperty().script(), QString("foo + bar"));
+ QCOMPARE(object->scriptProperty().scopeObject(), object);
+ QCOMPARE(object->scriptProperty().context(), qmlContext(object));
+
+ QVERIFY(object->grouped() != 0);
+ QCOMPARE(object->grouped()->script().script(), QString("print(1921)"));
+ QCOMPARE(object->grouped()->script().scopeObject(), object);
+ QCOMPARE(object->grouped()->script().context(), qmlContext(object));
+}
+
+// Check that first child of qml is of given type. Empty type insists on error.
+void tst_qmllanguage::testType(const QString& qml, const QString& type)
+{
+ QmlComponent component(&engine, qml.toUtf8(), TEST_FILE("empty.qml")); // just a file for relative local imports
+
+ if (type.isEmpty()) {
+ QVERIFY(component.isError());
+ } else {
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+ QCOMPARE(QString(object->metaObject()->className()), type);
+ }
+}
+
+QML_DECLARE_TYPE(TestType)
+QML_DECLARE_TYPE(TestType2)
+
+QML_DEFINE_TYPE(com.nokia.Test, 1, 0, 3, Test, TestType)
+QML_DEFINE_TYPE(com.nokia.Test, 1, 5, 7, Test, TestType)
+QML_DEFINE_TYPE(com.nokia.Test, 1, 8, 9, Test, TestType2)
+QML_DEFINE_TYPE(com.nokia.Test, 1, 12, 13, Test, TestType2)
+QML_DEFINE_TYPE(com.nokia.Test, 1, 9, 11, OldTest, TestType)
+
+void tst_qmllanguage::importsBuiltin_data()
+{
+ QTest::addColumn<QString>("qml");
+ QTest::addColumn<QString>("type");
+
+ // import built-ins
+ QTest::newRow("missing import")
+ << "Test {}"
+ << "";
+ QTest::newRow("not in version 0.0")
+ << "import com.nokia.Test 0.0\n"
+ "Test {}"
+ << "";
+ QTest::newRow("in version 1.0")
+ << "import com.nokia.Test 1.0\n"
+ "Test {}"
+ << "TestType";
+ QTest::newRow("qualified wrong")
+ << "import com.nokia.Test 1.0 as T\n"
+ "Test {}"
+ << "";
+ QTest::newRow("qualified right")
+ << "import com.nokia.Test 1.0 as T\n"
+ "T.Test {}"
+ << "TestType";
+ QTest::newRow("qualified right but not in version 0.0")
+ << "import com.nokia.Test 0.0 as T\n"
+ "T.Test {}"
+ << "";
+ QTest::newRow("in version 1.1")
+ << "import com.nokia.Test 1.1\n"
+ "Test {}"
+ << "TestType";
+ QTest::newRow("in version 1.3")
+ << "import com.nokia.Test 1.3\n"
+ "Test {}"
+ << "TestType";
+ QTest::newRow("not in version 1.4")
+ << "import com.nokia.Test 1.4\n"
+ "Test {}"
+ << "";
+ QTest::newRow("in version 1.5")
+ << "import com.nokia.Test 1.5\n"
+ "Test {}"
+ << "TestType";
+ QTest::newRow("changed in version 1.8")
+ << "import com.nokia.Test 1.8\n"
+ "Test {}"
+ << "TestType2";
+ QTest::newRow("not in version 1.10")
+ << "import com.nokia.Test 1.10\n"
+ "Test {}"
+ << "";
+ QTest::newRow("back in version 1.12")
+ << "import com.nokia.Test 1.12\n"
+ "Test {}"
+ << "TestType2";
+ QTest::newRow("old in version 1.9")
+ << "import com.nokia.Test 1.9\n"
+ "OldTest {}"
+ << "TestType";
+ QTest::newRow("old in version 1.11")
+ << "import com.nokia.Test 1.11\n"
+ "OldTest {}"
+ << "TestType";
+ QTest::newRow("no old in version 1.12")
+ << "import com.nokia.Test 1.12\n"
+ "OldTest {}"
+ << "";
+ QTest::newRow("multiversion 1")
+ << "import com.nokia.Test 1.11\n"
+ "import com.nokia.Test 1.12\n"
+ "Test {}"
+ << "TestType2";
+ QTest::newRow("multiversion 2")
+ << "import com.nokia.Test 1.11\n"
+ "import com.nokia.Test 1.12\n"
+ "OldTest {}"
+ << "TestType";
+ QTest::newRow("qualified multiversion 3")
+ << "import com.nokia.Test 1.0 as T0\n"
+ "import com.nokia.Test 1.8 as T8\n"
+ "T0.Test {}"
+ << "TestType";
+ QTest::newRow("qualified multiversion 4")
+ << "import com.nokia.Test 1.0 as T0\n"
+ "import com.nokia.Test 1.8 as T8\n"
+ "T8.Test {}"
+ << "TestType2";
+ QTest::newRow("qualified multiversion 5")
+ << "import com.nokia.Test 1.0 as T0\n"
+ "import com.nokia.Test 1.10 as T10\n"
+ "T10.Test {}"
+ << "";
+}
+
+void tst_qmllanguage::importsBuiltin()
+{
+ QFETCH(QString, qml);
+ QFETCH(QString, type);
+ testType(qml,type);
+}
+
+void tst_qmllanguage::importsLocal_data()
+{
+ QTest::addColumn<QString>("qml");
+ QTest::addColumn<QString>("type");
+
+ // import locals
+ QTest::newRow("local import")
+ << "import \"subdir\"\n"
+ "Test {}"
+ << "QFxRect";
+ QTest::newRow("local import as")
+ << "import \"subdir\" as T\n"
+ "T.Test {}"
+ << "QFxRect";
+ QTest::newRow("wrong local import as")
+ << "import \"subdir\" as T\n"
+ "Test {}"
+ << "";
+ QTest::newRow("library precedence over local import")
+ << "import \"subdir\"\n"
+ "import com.nokia.Test 1.0\n"
+ "Test {}"
+ << "TestType";
+}
+
+void tst_qmllanguage::importsLocal()
+{
+ QFETCH(QString, qml);
+ QFETCH(QString, type);
+ testType(qml,type);
+}
+
+void tst_qmllanguage::importsInstalled_data()
+{
+ QTest::addColumn<QString>("qml");
+ QTest::addColumn<QString>("type");
+
+ // import installed
+ QTest::newRow("installed import")
+ << "import com.nokia.installedtest 1.0\n"
+ "InstalledTest {}"
+ << "QFxRect";
+ QTest::newRow("installed import")
+ << "import com.nokia.installedtest 1.4\n"
+ "InstalledTest {}"
+ << "QFxText";
+}
+
+void tst_qmllanguage::importsInstalled()
+{
+ QFETCH(QString, qml);
+ QFETCH(QString, type);
+ testType(qml,type);
+}
+
+
+void tst_qmllanguage::importsOrder_data()
+{
+ QTest::addColumn<QString>("qml");
+ QTest::addColumn<QString>("type");
+
+ QTest::newRow("installed import overrides 1") <<
+ "import com.nokia.installedtest 1.0\n"
+ "import com.nokia.installedtest 1.4\n"
+ "InstalledTest {}"
+ << "QFxText";
+ QTest::newRow("installed import overrides 2") <<
+ "import com.nokia.installedtest 1.4\n"
+ "import com.nokia.installedtest 1.0\n"
+ "InstalledTest {}"
+ << "QFxRect";
+ QTest::newRow("installed import re-overrides 1") <<
+ "import com.nokia.installedtest 1.4\n"
+ "import com.nokia.installedtest 1.0\n"
+ "import com.nokia.installedtest 1.4\n"
+ "InstalledTest {}"
+ << "QFxText";
+ QTest::newRow("installed import re-overrides 2") <<
+ "import com.nokia.installedtest 1.4\n"
+ "import com.nokia.installedtest 1.0\n"
+ "import com.nokia.installedtest 1.4\n"
+ "import com.nokia.installedtest 1.0\n"
+ "InstalledTest {}"
+ << "QFxRect";
+
+ QTest::newRow("installed import versus builtin 1") <<
+ "import com.nokia.installedtest 1.5\n"
+ "import Qt 4.6\n"
+ "Rectangle {}"
+ << "QFxRect";
+ QTest::newRow("installed import versus builtin 2") <<
+ "import Qt 4.6\n"
+ "import com.nokia.installedtest 1.5\n"
+ "Rectangle {}"
+ << "QFxText";
+ QTest::newRow("namespaces cannot be overridden by types 1") <<
+ "import Qt 4.6 as Rectangle\n"
+ "import com.nokia.installedtest 1.5\n"
+ "Rectangle {}"
+ << "";
+ QTest::newRow("namespaces cannot be overridden by types 2") <<
+ "import Qt 4.6 as Rectangle\n"
+ "import com.nokia.installedtest 1.5\n"
+ "Rectangle.Image {}"
+ << "QFxImage";
+}
+
+void tst_qmllanguage::importsOrder()
+{
+ QFETCH(QString, qml);
+ QFETCH(QString, type);
+ testType(qml,type);
+}
+
+void tst_qmllanguage::crash1()
+{
+ QmlComponent component(&engine, "Component {}");
+}
+
+QTEST_MAIN(tst_qmllanguage)
+
+#include "tst_qmllanguage.moc"
diff --git a/tests/auto/declarative/qmllist/qmllist.pro b/tests/auto/declarative/qmllist/qmllist.pro
new file mode 100644
index 0000000..e5558f1
--- /dev/null
+++ b/tests/auto/declarative/qmllist/qmllist.pro
@@ -0,0 +1,3 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_qmllist.cpp
diff --git a/tests/auto/declarative/qmllist/tst_qmllist.cpp b/tests/auto/declarative/qmllist/tst_qmllist.cpp
new file mode 100644
index 0000000..541ca64
--- /dev/null
+++ b/tests/auto/declarative/qmllist/tst_qmllist.cpp
@@ -0,0 +1,38 @@
+#include <qtest.h>
+#include <QtDeclarative/qml.h>
+#include <QtDeclarative/qmlprivate.h>
+
+class tst_QmlList : public QObject
+{
+ Q_OBJECT
+public:
+ tst_QmlList() {}
+
+private slots:
+ void interface();
+};
+
+void tst_QmlList::interface()
+{
+ QmlConcreteList<QObject*> list;
+ QObject *obj = new QObject;
+ obj->setObjectName("foo");
+ list.append(obj);
+ QVERIFY(list.count() == 1);
+ QCOMPARE(list.at(0), obj);
+
+ QmlPrivate::ListInterface *li = (QmlPrivate::ListInterface*)&list;
+
+ void *ptr[1];
+ li->at(0, ptr);
+ QVERIFY(li->count() == 1);
+ QCOMPARE(ptr[0], obj);
+
+ li->removeAt(0);
+ QVERIFY(li->count() == 0);
+ QVERIFY(list.count() == 0);
+}
+
+QTEST_MAIN(tst_QmlList)
+
+#include "tst_qmllist.moc"
diff --git a/tests/auto/declarative/qmllistaccessor/qmllistaccessor.pro b/tests/auto/declarative/qmllistaccessor/qmllistaccessor.pro
new file mode 100644
index 0000000..4aa0450
--- /dev/null
+++ b/tests/auto/declarative/qmllistaccessor/qmllistaccessor.pro
@@ -0,0 +1,3 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_qmllistaccessor.cpp
diff --git a/tests/auto/declarative/qmllistaccessor/tst_qmllistaccessor.cpp b/tests/auto/declarative/qmllistaccessor/tst_qmllistaccessor.cpp
new file mode 100644
index 0000000..f5b57ea
--- /dev/null
+++ b/tests/auto/declarative/qmllistaccessor/tst_qmllistaccessor.cpp
@@ -0,0 +1,61 @@
+#include <qtest.h>
+#include <QtDeclarative/qml.h>
+#include <QtDeclarative/qmllistaccessor.h>
+
+class tst_QmlListAccessor : public QObject
+{
+ Q_OBJECT
+public:
+ tst_QmlListAccessor() {}
+
+private slots:
+ void qmllist();
+ //void qlist();
+ //void qstringlist();
+};
+
+void tst_QmlListAccessor::qmllist()
+{
+ QmlConcreteList<QObject*> list;
+ QObject *obj = new QObject;
+ list.append(obj);
+ QVERIFY(list.count() == 1);
+ QCOMPARE(list.at(0), obj);
+
+ QmlListAccessor accessor;
+ accessor.setList(qVariantFromValue((QmlList<QObject*>*)&list));
+
+ QVERIFY(accessor.isValid());
+ QVERIFY(accessor.count() == 1);
+
+ QVariant v = accessor.at(0);
+ QCOMPARE(qvariant_cast<QObject*>(v), obj);
+
+ accessor.removeAt(3);
+ QVERIFY(accessor.count() == 1);
+
+ accessor.removeAt(0);
+ QVERIFY(accessor.count() == 0);
+
+ accessor.insert(4, qVariantFromValue(obj));
+ QVERIFY(accessor.count() == 1);
+
+ v = accessor.at(0);
+ QCOMPARE(qvariant_cast<QObject*>(v), obj);
+
+ QObject *obj2 = new QObject;
+ accessor.append(qVariantFromValue(obj2));
+ QVERIFY(accessor.count() == 2);
+
+ v = accessor.at(1);
+ QCOMPARE(qvariant_cast<QObject*>(v), obj2);
+
+ accessor.clear();
+ QVERIFY(accessor.count() == 0);
+
+ QVERIFY(accessor.isValid());
+}
+
+QTEST_MAIN(tst_QmlListAccessor)
+
+#include "tst_qmllistaccessor.moc"
diff --git a/tests/auto/declarative/qmlmetaproperty/qmlmetaproperty.pro b/tests/auto/declarative/qmlmetaproperty/qmlmetaproperty.pro
new file mode 100644
index 0000000..af67373
--- /dev/null
+++ b/tests/auto/declarative/qmlmetaproperty/qmlmetaproperty.pro
@@ -0,0 +1,3 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_qmlmetaproperty.cpp
diff --git a/tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp b/tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp
new file mode 100644
index 0000000..65d061e
--- /dev/null
+++ b/tests/auto/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp
@@ -0,0 +1,104 @@
+#include <qtest.h>
+#include <QtDeclarative/qmlengine.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtDeclarative/qmlmetaproperty.h>
+#include <QtGui/QLineEdit>
+
+class MyQmlObject : public QObject
+{
+ Q_OBJECT
+public:
+ MyQmlObject() {}
+};
+
+QML_DECLARE_TYPE(MyQmlObject);
+QML_DEFINE_TYPE(Test,1,0,0,MyQmlObject,MyQmlObject);
+
+class MyContainer : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(QList<MyQmlObject*>* children READ children)
+ Q_PROPERTY(QmlList<MyQmlObject*>* qmlChildren READ qmlChildren)
+public:
+ MyContainer() {}
+
+ QList<MyQmlObject*> *children() { return &m_children; }
+ QmlConcreteList<MyQmlObject *> *qmlChildren() { return &m_qmlChildren; }
+
+private:
+ QList<MyQmlObject*> m_children;
+ QmlConcreteList<MyQmlObject *> m_qmlChildren;
+};
+
+QML_DECLARE_TYPE(MyContainer);
+QML_DEFINE_TYPE(Test,1,0,0,MyContainer,MyContainer);
+
+class tst_QmlMetaProperty : public QObject
+{
+ Q_OBJECT
+public:
+ tst_QmlMetaProperty() {}
+
+private slots:
+ void writeObjectToList();
+ void writeListToList();
+ void writeObjectToQmlList();
+
+ //writeToReadOnly();
+
+private:
+ QmlEngine engine;
+};
+
+void tst_QmlMetaProperty::writeObjectToList()
+{
+ QmlComponent containerComponent(&engine, "import Test 1.0\nMyContainer { children: MyQmlObject {} }", QUrl());
+ MyContainer *container = qobject_cast<MyContainer*>(containerComponent.create());
+ QVERIFY(container != 0);
+ QVERIFY(container->children()->size() == 1);
+
+ MyQmlObject *object = new MyQmlObject;
+ QmlMetaProperty prop(container, "children");
+ prop.write(qVariantFromValue(object));
+ QCOMPARE(container->children()->size(), 2);
+ QCOMPARE(container->children()->at(1), object);
+}
+
+Q_DECLARE_METATYPE(QList<QObject *>);
+void tst_QmlMetaProperty::writeListToList()
+{
+ QmlComponent containerComponent(&engine, "import Test 1.0\nMyContainer { children: MyQmlObject {} }", QUrl());
+ MyContainer *container = qobject_cast<MyContainer*>(containerComponent.create());
+ QVERIFY(container != 0);
+ QVERIFY(container->children()->size() == 1);
+
+ QList<QObject*> objList;
+ objList << new MyQmlObject() << new MyQmlObject() << new MyQmlObject() << new MyQmlObject();
+ QmlMetaProperty prop(container, "children");
+ prop.write(qVariantFromValue(objList));
+ QCOMPARE(container->children()->size(), 4);
+
+ //XXX need to try this with read/write prop (for read-only it correctly doesn't write)
+ /*QList<MyQmlObject*> typedObjList;
+ typedObjList << new MyQmlObject();
+ prop.write(qVariantFromValue(&typedObjList));
+ QCOMPARE(container->children()->size(), 1);*/
+}
+
+void tst_QmlMetaProperty::writeObjectToQmlList()
+{
+ QmlComponent containerComponent(&engine, "import Test 1.0\nMyContainer { qmlChildren: MyQmlObject {} }", QUrl());
+ MyContainer *container = qobject_cast<MyContainer*>(containerComponent.create());
+ QVERIFY(container != 0);
+ QVERIFY(container->qmlChildren()->size() == 1);
+
+ MyQmlObject *object = new MyQmlObject;
+ QmlMetaProperty prop(container, "qmlChildren");
+ prop.write(qVariantFromValue(object));
+ QCOMPARE(container->qmlChildren()->size(), 2);
+ QCOMPARE(container->qmlChildren()->at(1), object);
+}
+
+QTEST_MAIN(tst_QmlMetaProperty)
+
+#include "tst_qmlmetaproperty.moc"
diff --git a/tests/auto/declarative/qmlpropertymap/qmlpropertymap.pro b/tests/auto/declarative/qmlpropertymap/qmlpropertymap.pro
new file mode 100644
index 0000000..94f138f
--- /dev/null
+++ b/tests/auto/declarative/qmlpropertymap/qmlpropertymap.pro
@@ -0,0 +1,3 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_qmlpropertymap.cpp
diff --git a/tests/auto/declarative/qmlpropertymap/tst_qmlpropertymap.cpp b/tests/auto/declarative/qmlpropertymap/tst_qmlpropertymap.cpp
new file mode 100644
index 0000000..7d3cc43
--- /dev/null
+++ b/tests/auto/declarative/qmlpropertymap/tst_qmlpropertymap.cpp
@@ -0,0 +1,110 @@
+#include <qtest.h>
+#include <QtDeclarative/qmlengine.h>
+#include <QtDeclarative/qmlcontext.h>
+#include <QtDeclarative/qmlpropertymap.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtDeclarative/qfxtext.h>
+#include <QSignalSpy>
+
+class tst_QmlPropertyMap : public QObject
+{
+ Q_OBJECT
+public:
+ tst_QmlPropertyMap() {}
+
+private slots:
+ void insert();
+ void operatorInsert();
+ void clear();
+ void changed();
+ void count();
+};
+
+void tst_QmlPropertyMap::insert()
+{
+ QmlPropertyMap map;
+ map.insert(QLatin1String("key1"),100);
+ map.insert(QLatin1String("key2"),200);
+ QVERIFY(map.keys().count() == 2);
+
+ QCOMPARE(map.value(QLatin1String("key1")), QVariant(100));
+ QCOMPARE(map.value(QLatin1String("key2")), QVariant(200));
+
+ map.insert(QLatin1String("key1"),"Hello World");
+ QCOMPARE(map.value(QLatin1String("key1")), QVariant("Hello World"));
+}
+
+void tst_QmlPropertyMap::operatorInsert()
+{
+ QmlPropertyMap map;
+ map[QLatin1String("key1")] = 100;
+ map[QLatin1String("key2")] = 200;
+ QVERIFY(map.keys().count() == 2);
+
+ QCOMPARE(map.value(QLatin1String("key1")), QVariant(100));
+ QCOMPARE(map.value(QLatin1String("key2")), QVariant(200));
+
+ map[QLatin1String("key1")] = "Hello World";
+ QCOMPARE(map.value(QLatin1String("key1")), QVariant("Hello World"));
+}
+
+void tst_QmlPropertyMap::clear()
+{
+ QmlPropertyMap map;
+ map.insert(QLatin1String("key1"),100);
+ QVERIFY(map.keys().count() == 1);
+
+ QCOMPARE(map.value(QLatin1String("key1")), QVariant(100));
+
+ map.clear(QLatin1String("key1"));
+ QVERIFY(map.keys().count() == 1);
+ QCOMPARE(map.value(QLatin1String("key1")), QVariant());
+}
+
+void tst_QmlPropertyMap::changed()
+{
+ QmlPropertyMap map;
+ QSignalSpy spy(&map, SIGNAL(valueChanged(const QString&)));
+ map.insert(QLatin1String("key1"),100);
+ map.insert(QLatin1String("key2"),200);
+ QCOMPARE(spy.count(), 0);
+
+ map.clear(QLatin1String("key1"));
+ QCOMPARE(spy.count(), 0);
+
+ //make changes in QML
+ QmlEngine engine;
+ QmlContext *ctxt = engine.rootContext();
+ ctxt->setContextProperty(QLatin1String("testdata"), &map);
+ QmlComponent component(&engine, "import Qt 4.6\nText { text: { testdata.key1 = 'Hello World'; 'X' } }",
+ QUrl("file://"));
+ QVERIFY(component.isReady());
+ QFxText *txt = qobject_cast<QFxText*>(component.create());
+ QVERIFY(txt);
+ QCOMPARE(txt->text(), QString('X'));
+ QCOMPARE(spy.count(), 1);
+ QList<QVariant> arguments = spy.takeFirst();
+ QCOMPARE(arguments.at(0).toString(),QLatin1String("key1"));
+ QCOMPARE(map.value(QLatin1String("key1")), QVariant("Hello World"));
+}
+
+void tst_QmlPropertyMap::count()
+{
+ QmlPropertyMap map;
+ QCOMPARE(map.isEmpty(), true);
+ map.insert(QLatin1String("key1"),100);
+ map.insert(QLatin1String("key2"),200);
+ QCOMPARE(map.count(), 2);
+ QCOMPARE(map.isEmpty(), false);
+
+ map.insert(QLatin1String("key3"),"Hello World");
+ QCOMPARE(map.count(), 3);
+
+ //clearing doesn't remove the key
+ map.clear(QLatin1String("key3"));
+ QCOMPARE(map.count(), 3);
+}
+
+QTEST_MAIN(tst_QmlPropertyMap)
+
+#include "tst_qmlpropertymap.moc"
diff --git a/tests/auto/declarative/qmltimer/qmltimer.pro b/tests/auto/declarative/qmltimer/qmltimer.pro
new file mode 100644
index 0000000..e7edd96
--- /dev/null
+++ b/tests/auto/declarative/qmltimer/qmltimer.pro
@@ -0,0 +1,5 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative gui
+SOURCES += tst_qmltimer.cpp
+
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/qmltimer/tst_qmltimer.cpp b/tests/auto/declarative/qmltimer/tst_qmltimer.cpp
new file mode 100644
index 0000000..15b558f
--- /dev/null
+++ b/tests/auto/declarative/qmltimer/tst_qmltimer.cpp
@@ -0,0 +1,141 @@
+#include <qtest.h>
+#include <QtDeclarative/qmlengine.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtDeclarative/qmltimer.h>
+
+class tst_qmltimer : public QObject
+{
+ Q_OBJECT
+public:
+ tst_qmltimer();
+
+private slots:
+ void notRepeating();
+ void notRepeatingStart();
+ void repeat();
+ void triggeredOnStart();
+ void triggeredOnStartRepeat();
+};
+
+class TimerHelper : public QObject
+{
+ Q_OBJECT
+public:
+ TimerHelper() : QObject(), count(0)
+ {
+ }
+
+ int count;
+
+public slots:
+ void timeout() {
+ ++count;
+ }
+};
+
+#if defined(Q_OS_SYMBIAN) && defined(Q_CC_NOKIAX86)
+// Increase wait as emulator startup can cause unexpected delays
+#define TIMEOUT_TIMEOUT 2000
+#else
+#define TIMEOUT_TIMEOUT 200
+#endif
+
+tst_qmltimer::tst_qmltimer()
+{
+}
+
+void tst_qmltimer::notRepeating()
+{
+ QmlEngine engine;
+ QmlComponent component(&engine, QByteArray("import Qt 4.6\nTimer { interval: 100; running: true }"), QUrl("file://"));
+ QmlTimer *timer = qobject_cast<QmlTimer*>(component.create());
+ QVERIFY(timer != 0);
+
+ TimerHelper helper;
+ connect(timer, SIGNAL(triggered()), &helper, SLOT(timeout()));
+
+ QTest::qWait(TIMEOUT_TIMEOUT);
+ QCOMPARE(helper.count, 1);
+ QTest::qWait(TIMEOUT_TIMEOUT);
+ QCOMPARE(helper.count, 1);
+}
+
+void tst_qmltimer::notRepeatingStart()
+{
+ QmlEngine engine;
+ QmlComponent component(&engine, QByteArray("import Qt 4.6\nTimer { interval: 100 }"), QUrl("file://"));
+ QmlTimer *timer = qobject_cast<QmlTimer*>(component.create());
+ QVERIFY(timer != 0);
+
+ TimerHelper helper;
+ connect(timer, SIGNAL(triggered()), &helper, SLOT(timeout()));
+
+ QTest::qWait(TIMEOUT_TIMEOUT);
+ QCOMPARE(helper.count, 0);
+
+ timer->start();
+ QTest::qWait(TIMEOUT_TIMEOUT);
+ QCOMPARE(helper.count, 1);
+ QTest::qWait(TIMEOUT_TIMEOUT);
+ QCOMPARE(helper.count, 1);
+}
+
+void tst_qmltimer::repeat()
+{
+ QmlEngine engine;
+ QmlComponent component(&engine, QByteArray("import Qt 4.6\nTimer { interval: 100; repeat: true; running: true }"), QUrl("file://"));
+ QmlTimer *timer = qobject_cast<QmlTimer*>(component.create());
+ QVERIFY(timer != 0);
+
+ TimerHelper helper;
+ connect(timer, SIGNAL(triggered()), &helper, SLOT(timeout()));
+ QCOMPARE(helper.count, 0);
+
+ QTest::qWait(TIMEOUT_TIMEOUT);
+ QVERIFY(helper.count > 0);
+ int oldCount = helper.count;
+
+ QTest::qWait(TIMEOUT_TIMEOUT);
+ QVERIFY(helper.count > oldCount);
+}
+
+void tst_qmltimer::triggeredOnStart()
+{
+ QmlEngine engine;
+ QmlComponent component(&engine, QByteArray("import Qt 4.6\nTimer { interval: 100; running: true; triggeredOnStart: true }"), QUrl("file://"));
+ QmlTimer *timer = qobject_cast<QmlTimer*>(component.create());
+ QVERIFY(timer != 0);
+
+ TimerHelper helper;
+ connect(timer, SIGNAL(triggered()), &helper, SLOT(timeout()));
+ QTest::qWait(1);
+ QCOMPARE(helper.count, 1);
+
+ QTest::qWait(TIMEOUT_TIMEOUT);
+ QCOMPARE(helper.count, 2);
+ QTest::qWait(TIMEOUT_TIMEOUT);
+ QCOMPARE(helper.count, 2);
+}
+
+void tst_qmltimer::triggeredOnStartRepeat()
+{
+ QmlEngine engine;
+ QmlComponent component(&engine, QByteArray("import Qt 4.6\nTimer { interval: 100; running: true; triggeredOnStart: true; repeat: true }"), QUrl("file://"));
+ QmlTimer *timer = qobject_cast<QmlTimer*>(component.create());
+ QVERIFY(timer != 0);
+
+ TimerHelper helper;
+ connect(timer, SIGNAL(triggered()), &helper, SLOT(timeout()));
+ QTest::qWait(1);
+ QCOMPARE(helper.count, 1);
+
+ QTest::qWait(TIMEOUT_TIMEOUT);
+ QVERIFY(helper.count > 1);
+ int oldCount = helper.count;
+ QTest::qWait(TIMEOUT_TIMEOUT);
+ QVERIFY(helper.count > oldCount);
+}
+
+QTEST_MAIN(tst_qmltimer)
+
+#include "tst_qmltimer.moc"
diff --git a/tests/auto/declarative/repeater/data/repeater.qml b/tests/auto/declarative/repeater/data/repeater.qml
new file mode 100644
index 0000000..7d83230
--- /dev/null
+++ b/tests/auto/declarative/repeater/data/repeater.qml
@@ -0,0 +1,28 @@
+import Qt 4.6
+
+Rectangle {
+ id: container
+ objectName: "container"
+ width: 240
+ height: 320
+ color: "white"
+ Text {
+ text: "Zero"
+ }
+ Repeater {
+ id: repeater
+ objectName: "repeater"
+ width: 240
+ height: 320
+ model: testData
+ Component {
+ Text {
+ y: index*20
+ text: modelData
+ }
+ }
+ }
+ Text {
+ text: "Last"
+ }
+}
diff --git a/tests/auto/declarative/repeater/repeater.pro b/tests/auto/declarative/repeater/repeater.pro
new file mode 100644
index 0000000..1d30b7b
--- /dev/null
+++ b/tests/auto/declarative/repeater/repeater.pro
@@ -0,0 +1,7 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_repeater.cpp
+macx:CONFIG -= app_bundle
+
+# Define SRCDIR equal to test's source directory
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/repeater/tst_repeater.cpp b/tests/auto/declarative/repeater/tst_repeater.cpp
new file mode 100644
index 0000000..68007a6
--- /dev/null
+++ b/tests/auto/declarative/repeater/tst_repeater.cpp
@@ -0,0 +1,115 @@
+#include <QtTest/QtTest>
+#include <qlistmodelinterface.h>
+#include <qmlview.h>
+#include <qfxrepeater.h>
+#include <qfxtext.h>
+#include <qmlcontext.h>
+
+class tst_QFxRepeater : public QObject
+{
+ Q_OBJECT
+public:
+ tst_QFxRepeater();
+
+private slots:
+ void stringList();
+
+private:
+ QmlView *createView(const QString &filename);
+ template<typename T>
+ T *findItem(QObject *parent, const QString &id);
+};
+
+tst_QFxRepeater::tst_QFxRepeater()
+{
+}
+
+/*
+The Repeater element creates children at its own position in its parent's
+stacking order. In this test we insert a repeater between two other Text
+elements to test this.
+*/
+void tst_QFxRepeater::stringList()
+{
+ QmlView *canvas = createView(SRCDIR "/data/repeater.qml");
+
+ QStringList data;
+ data << "One";
+ data << "Two";
+ data << "Three";
+ data << "Four";
+
+ QmlContext *ctxt = canvas->rootContext();
+ ctxt->setContextProperty("testData", data);
+
+ canvas->execute();
+ qApp->processEvents();
+
+ QFxRepeater *repeater = findItem<QFxRepeater>(canvas->root(), "repeater");
+ QVERIFY(repeater != 0);
+
+ QFxItem *container = findItem<QFxItem>(canvas->root(), "container");
+ QVERIFY(container != 0);
+
+ QCOMPARE(container->childItems().count(), data.count() + 3);
+
+ bool saw_repeater = false;
+ for (int i = 0; i < container->childItems().count(); ++i) {
+
+ if (i == 0) {
+ QFxText *name = qobject_cast<QFxText*>(container->childItems().at(i));
+ QVERIFY(name != 0);
+ QCOMPARE(name->text(), QLatin1String("Zero"));
+ } else if (i == container->childItems().count() - 2) {
+ // The repeater itself
+ QFxRepeater *rep = qobject_cast<QFxRepeater*>(container->childItems().at(i));
+ QCOMPARE(rep, repeater);
+ saw_repeater = true;
+ continue;
+ } else if (i == container->childItems().count() - 1) {
+ QFxText *name = qobject_cast<QFxText*>(container->childItems().at(i));
+ QVERIFY(name != 0);
+ QCOMPARE(name->text(), QLatin1String("Last"));
+ } else {
+ QFxText *name = qobject_cast<QFxText*>(container->childItems().at(i));
+ QVERIFY(name != 0);
+ QCOMPARE(name->text(), data.at(i-1));
+ }
+ }
+ QVERIFY(saw_repeater);
+
+ delete canvas;
+}
+
+
+QmlView *tst_QFxRepeater::createView(const QString &filename)
+{
+ QmlView *canvas = new QmlView(0);
+ canvas->setFixedSize(240,320);
+
+ QFile file(filename);
+ file.open(QFile::ReadOnly);
+ QString qml = file.readAll();
+ canvas->setQml(qml, filename);
+
+ return canvas;
+}
+
+template<typename T>
+T *tst_QFxRepeater::findItem(QObject *parent, const QString &objectName)
+{
+ const QMetaObject &mo = T::staticMetaObject;
+ if (mo.cast(parent) && (objectName.isEmpty() || parent->objectName() == objectName))
+ return static_cast<T*>(parent);
+ for (int i = 0; i < parent->children().count(); ++i) {
+ QFxItem *item = findItem<T>(parent->children().at(i), objectName);
+ if (item)
+ return static_cast<T*>(item);
+ }
+
+ return 0;
+}
+
+QTEST_MAIN(tst_QFxRepeater)
+
+#include "tst_repeater.moc"
diff --git a/tests/auto/declarative/sql/data/1-creation.js b/tests/auto/declarative/sql/data/1-creation.js
new file mode 100644
index 0000000..95fa99e
--- /dev/null
+++ b/tests/auto/declarative/sql/data/1-creation.js
@@ -0,0 +1,20 @@
+var db = openDatabase("QmlTestDB", "", "Test database from Qt autotests", 1000000);
+var r="transaction_not_finished";
+
+// Asynchronous in WebKit, so must wait before calling test()
+db.transaction(
+ function(tx) {
+ tx.executeSql('CREATE TABLE IF NOT EXISTS Greeting(salutation TEXT, salutee TEXT)', [],
+ function(tx, rs) { }, function(tx, error) { r="CREATE FAILED: "+error.message });
+ tx.executeSql('INSERT INTO Greeting VALUES(?, ?)', [ 'hello', 'world' ],
+ function(tx, rs) { }, function(tx, error) { r="INSERT FAILED: "+error.message });
+ },
+ function(tx, error) { r="TRANSACTION FAILED: "+error.message },
+ function(tx, result) { if (r=="transaction_not_finished") r="passed" }
+);
+
+
+function test()
+{
+ return r;
+}
diff --git a/tests/auto/declarative/sql/data/2-selection.js b/tests/auto/declarative/sql/data/2-selection.js
new file mode 100644
index 0000000..3acf686
--- /dev/null
+++ b/tests/auto/declarative/sql/data/2-selection.js
@@ -0,0 +1,30 @@
+var db = openDatabase("QmlTestDB", "", "Test database from Qt autotests", 1000000);
+var r=0;
+
+db.transaction(
+ function(tx) {
+ tx.executeSql('INSERT INTO Greeting VALUES(?, ?)', [ 'hello', 'world' ],
+ function(tx, rs) { }, function(tx, error) { if (r==0) r="INSERT 1 FAILED: "+error.message });
+ tx.executeSql('INSERT INTO Greeting VALUES(?, ?)', [ 'hello', 'world' ],
+ function(tx, rs) { }, function(tx, error) { if (r==0) r="INSERT 2 FAILED: "+error.message });
+ tx.executeSql('INSERT INTO Greeting VALUES(?, ?)', [ 'hello', 'world' ],
+ function(tx, rs) { }, function(tx, error) { if (r==0) r="INSERT 3 FAILED: "+error.message });
+ tx.executeSql('SELECT * FROM Greeting', [],
+ function(tx, rs) {
+ if ( rs.rows.length != 4 ) { // 1 from test1, 3 from this test.
+ if (r==0) r = "SELECT RETURNED WRONG VALUE "+rs.rows.length+rs.rows[0]+rs.rows[1]
+ }
+ },
+ function(tx, error) { if (r==0) r="SELECT FAILED: "+error.message }
+ );
+ },
+ function(tx, error) { if (r==0) r="TRANSACTION FAILED: "+error.message },
+ function(tx, result) { if (r==0) r="passed" }
+);
+
+
+function test()
+{
+ if (r == 0) r = "transaction_not_finished";
+ return r;
+}
diff --git a/tests/auto/declarative/sql/data/3-iteration-item-function.js b/tests/auto/declarative/sql/data/3-iteration-item-function.js
new file mode 100644
index 0000000..bad9b82
--- /dev/null
+++ b/tests/auto/declarative/sql/data/3-iteration-item-function.js
@@ -0,0 +1,27 @@
+var db = openDatabase("QmlTestDB", "", "Test database from Qt autotests", 1000000);
+var r=0;
+
+db.transaction(
+ function(tx) {
+ tx.executeSql('SELECT * FROM Greeting', [],
+ function(tx, rs) {
+ var r1=""
+ for(var i = 0; i < rs.rows.length; i++) {
+ r1 += rs.rows.item(i).salutation + ", " + rs.rows.item(i).salutee + ";"
+ }
+ if (r1 != "hello, world;hello, world;hello, world;hello, world;")
+ r = "SELECTED DATA WRONG: "+r1;
+ },
+ function(tx, error) { if (r==0) r="SELECT FAILED: "+error.message }
+ );
+ },
+ function(tx, error) { if (r==0) r="TRANSACTION FAILED: "+error.message },
+ function(tx, result) { if (r==0) r="passed" }
+);
+
+
+function test()
+{
+ if (r == 0) r = "transaction_not_finished";
+ return r;
+}
diff --git a/tests/auto/declarative/sql/data/5-iteration-iterator.js b/tests/auto/declarative/sql/data/5-iteration-iterator.js
new file mode 100644
index 0000000..51f0504
--- /dev/null
+++ b/tests/auto/declarative/sql/data/5-iteration-iterator.js
@@ -0,0 +1,27 @@
+var db = openDatabase("QmlTestDB", "", "Test database from Qt autotests", 1000000);
+var r=0;
+
+db.transaction(
+ function(tx) {
+ tx.executeSql('SELECT * FROM Greeting', [],
+ function(tx, rs) {
+ var r1=""
+ for(var i in rs.rows) {
+ r1 += rs.rows[i].salutation + ", " + rs.rows[i].salutee + ";"
+ }
+ if (r1 != "hello, world;hello, world;hello, world;hello, world;")
+ r = "SELECTED DATA WRONG: "+r1;
+ },
+ function(tx, error) { if (r==0) r="SELECT FAILED: "+error.message }
+ );
+ },
+ function(tx, error) { if (r==0) r="TRANSACTION FAILED: "+error.message },
+ function(tx, result) { if (r==0) r="passed" }
+);
+
+
+function test()
+{
+ if (r == 0) r = "transaction_not_finished";
+ return r;
+}
diff --git a/tests/auto/declarative/sql/data/6-iteration-efficient.js b/tests/auto/declarative/sql/data/6-iteration-efficient.js
new file mode 100644
index 0000000..2222b8a
--- /dev/null
+++ b/tests/auto/declarative/sql/data/6-iteration-efficient.js
@@ -0,0 +1,28 @@
+var db = openDatabase("QmlTestDB", "", "Test database from Qt autotests", 1000000);
+var r=0;
+
+db.transaction(
+ function(tx) {
+ tx.executeSql('SELECT * FROM Greeting', [],
+ function(tx, rs) {
+ var r1=""
+ rs.rows.forwardOnly = true;
+ for(var i=0; rs.rows[i]; ++i) {
+ r1 += rs.rows[i].salutation + ", " + rs.rows[i].salutee + ";"
+ }
+ if (r1 != "hello, world;hello, world;hello, world;hello, world;")
+ r = "SELECTED DATA WRONG: "+r1;
+ },
+ function(tx, error) { if (r==0) r="SELECT FAILED: "+error.message }
+ );
+ },
+ function(tx, error) { if (r==0) r="TRANSACTION FAILED: "+error.message },
+ function(tx, result) { if (r==0) r="passed" }
+);
+
+
+function test()
+{
+ if (r == 0) r = "transaction_not_finished";
+ return r;
+}
diff --git a/tests/auto/declarative/sql/data/README b/tests/auto/declarative/sql/data/README
new file mode 100644
index 0000000..7efca3a
--- /dev/null
+++ b/tests/auto/declarative/sql/data/README
@@ -0,0 +1,3 @@
+These tests are executed in sequence - the database persist until the end of the
+testing. This is done to better exercise the persistence of the database, since
+that is how it is used.
diff --git a/tests/auto/declarative/sql/sql.pro b/tests/auto/declarative/sql/sql.pro
new file mode 100644
index 0000000..36a867f
--- /dev/null
+++ b/tests/auto/declarative/sql/sql.pro
@@ -0,0 +1,6 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_sql.cpp
+
+# Define SRCDIR equal to test's source directory
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/sql/tst_sql.cpp b/tests/auto/declarative/sql/tst_sql.cpp
new file mode 100644
index 0000000..22e9ba4
--- /dev/null
+++ b/tests/auto/declarative/sql/tst_sql.cpp
@@ -0,0 +1,168 @@
+#include <qtest.h>
+#include "../../../shared/util.h"
+#include <QtDeclarative/qmlengine.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtDeclarative/qfxtext.h>
+#include <QtWebKit/qwebpage.h>
+#include <QtWebKit/qwebframe.h>
+#include <QtWebKit/qwebdatabase.h>
+#include <QtWebKit/qwebsecurityorigin.h>
+#include <QtCore/qdir.h>
+#include <QtCore/qfile.h>
+
+class tst_sql : public QObject
+{
+ Q_OBJECT
+public:
+ tst_sql()
+ {
+ qApp->setApplicationName("tst_sql");
+ qApp->setOrganizationName("Nokia");
+ qApp->setOrganizationDomain("nokia.com");
+ engine = new QmlEngine;
+ }
+
+ ~tst_sql()
+ {
+ delete engine;
+ }
+
+private slots:
+ void initTestCase();
+
+ void checkDatabasePath();
+
+ void validateAgainstWebkit_data();
+ void validateAgainstWebkit();
+
+ void testQml_data();
+ void testQml();
+
+ void cleanupTestCase();
+
+private:
+ QString dbDir() const;
+ QmlEngine *engine;
+};
+
+class QWebPageWithJavaScriptConsoleMessages : public QWebPage {
+public:
+ void javaScriptConsoleMessage(const QString& message, int lineNumber, const QString& sourceID)
+ {
+ qWarning() << sourceID << ":" << lineNumber << ":" << message;
+ }
+};
+
+void removeRecursive(const QString& dirname)
+{
+ QDir dir(dirname);
+ QFileInfoList entries(dir.entryInfoList(QDir::Dirs|QDir::Files|QDir::NoDotAndDotDot));
+ for (int i = 0; i < entries.count(); ++i)
+ if (entries[i].isDir())
+ removeRecursive(entries[i].filePath());
+ else
+ dir.remove(entries[i].fileName());
+ QDir().rmdir(dirname);
+}
+
+void tst_sql::initTestCase()
+{
+ removeRecursive(dbDir());
+ QDir().mkpath(dbDir());
+}
+
+void tst_sql::cleanupTestCase()
+{
+ removeRecursive(dbDir());
+}
+
+QString tst_sql::dbDir() const
+{
+ static QString tmpd = QDir::tempPath()+"/tst_sql_output-"
+ + QDateTime::currentDateTime().toString(QLatin1String("yyyyMMddhhmmss"));
+ return tmpd;
+}
+
+void tst_sql::checkDatabasePath()
+{
+ // Check default storage path (we can't use it since we don't want to mess with user's data)
+ QVERIFY(engine->offlineStoragePath().contains("Nokia"));
+ QVERIFY(engine->offlineStoragePath().contains("OfflineStorage"));
+}
+
+void tst_sql::testQml_data()
+{
+ QTest::addColumn<QString>("jsfile"); // The input file
+ QTest::addColumn<QString>("result"); // The required output from the js test() function
+ QTest::addColumn<int>("databases"); // The number of databases that should have been created
+ QTest::addColumn<bool>("qmlextension"); // Things WebKit can't do
+
+ QTest::newRow("creation") << "data/1-creation.js" << "passed" << 1 << false;
+ QTest::newRow("selection") << "data/2-selection.js" << "passed" << 1 << false;
+ QTest::newRow("iteration-item-function") << "data/3-iteration-item-function.js" << "passed" << 1 << false;
+ QTest::newRow("iteration-index") << "data/4-iteration-index.js" << "passed" << 1 << true;
+ QTest::newRow("iteration-iterator") << "data/5-iteration-iterator.js" << "passed" << 1 << true;
+ QTest::newRow("iteration-efficient") << "data/6-iteration-efficient.js" << "passed" << 1 << true;
+}
+
+void tst_sql::validateAgainstWebkit_data()
+{
+ testQml_data();
+}
+
+void tst_sql::validateAgainstWebkit()
+{
+ // Validates tests against WebKit (HTML5) support.
+ //
+ // WebKit SQL is asynchronous, so tests are divided into code plus a test()
+ // function which is executed "later" (via QTRY_).
+ //
+ QFETCH(QString, jsfile);
+ QFETCH(QString, result);
+ QFETCH(int, databases);
+ QFETCH(bool, qmlextension);
+
+ if (qmlextension) // WebKit can't do it (yet?)
+ return;
+
+ QFile f(jsfile);
+ QVERIFY(f.open(QIODevice::ReadOnly));
+ QString js=f.readAll();
+
+ QWebPageWithJavaScriptConsoleMessages webpage;
+ webpage.settings()->setOfflineStoragePath(dbDir());
+ webpage.settings()->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, true);
+
+ webpage.mainFrame()->evaluateJavaScript(js);
+ QTest::qWait(200); // WebKit db access is asynchronous
+ QTRY_COMPARE(webpage.mainFrame()->evaluateJavaScript("test()").toString(),result);
+
+ QWebSecurityOrigin origin = webpage.mainFrame()->securityOrigin();
+ QList<QWebDatabase> dbs = origin.databases();
+ QCOMPARE(dbs.count(), databases);
+}
+
+void tst_sql::testQml()
+{
+ // Tests QML SQL Database support with tests
+ // that have been validated against Webkit.
+ //
+ QFETCH(QString, jsfile);
+ QFETCH(QString, result);
+ QFETCH(int, databases);
+
+ QString qml=
+ "import Qt 4.6\n"
+ "Text { Script { source: \""+jsfile+"\" } text: test() }";
+
+ engine->setOfflineStoragePath(dbDir());
+ QmlComponent component(engine, qml.toUtf8(), QUrl::fromLocalFile(SRCDIR "/empty.qml")); // just a file for relative local imports
+ QFxText *text = qobject_cast<QFxText*>(component.create());
+ QVERIFY(text != 0);
+ QCOMPARE(text->text(),result);
+ QCOMPARE(QDir(dbDir()+"/Databases").entryInfoList(QDir::Files|QDir::NoDotAndDotDot).count(), databases*2); // *2 = .ini file + .sqlite file
+}
+
+QTEST_MAIN(tst_sql)
+
+#include "tst_sql.moc"
diff --git a/tests/auto/declarative/states/data/ExtendedRectangle.qml b/tests/auto/declarative/states/data/ExtendedRectangle.qml
new file mode 100644
index 0000000..8d64663
--- /dev/null
+++ b/tests/auto/declarative/states/data/ExtendedRectangle.qml
@@ -0,0 +1,19 @@
+import Qt 4.6
+Rectangle {
+ id: extendedRect
+ objectName: "extendedRect"
+ property color extendedColor: "orange"
+
+ width: 100; height: 100
+ color: "red"
+ states: State {
+ name: "green"
+ PropertyChanges {
+ target: rect
+ onDidSomething: {
+ extendedRect.color = "green"
+ extendedColor = "green"
+ }
+ }
+ }
+}
diff --git a/tests/auto/declarative/states/data/basicBinding.qml b/tests/auto/declarative/states/data/basicBinding.qml
new file mode 100644
index 0000000..930a6b2
--- /dev/null
+++ b/tests/auto/declarative/states/data/basicBinding.qml
@@ -0,0 +1,12 @@
+import Qt 4.6
+Rectangle {
+ id: MyRectangle
+
+ property color sourceColor: "blue"
+ width: 100; height: 100
+ color: "red"
+ states: State {
+ name: "blue"
+ PropertyChanges { target: MyRectangle; color: sourceColor }
+ }
+}
diff --git a/tests/auto/declarative/states/data/basicBinding2.qml b/tests/auto/declarative/states/data/basicBinding2.qml
new file mode 100644
index 0000000..6bfaf5a
--- /dev/null
+++ b/tests/auto/declarative/states/data/basicBinding2.qml
@@ -0,0 +1,12 @@
+import Qt 4.6
+Rectangle {
+ id: MyRectangle
+
+ property color sourceColor: "red"
+ width: 100; height: 100
+ color: sourceColor
+ states: State {
+ name: "blue"
+ PropertyChanges { target: MyRectangle; color: "blue" }
+ }
+} \ No newline at end of file
diff --git a/tests/auto/declarative/states/data/basicBinding3.qml b/tests/auto/declarative/states/data/basicBinding3.qml
new file mode 100644
index 0000000..344bfae
--- /dev/null
+++ b/tests/auto/declarative/states/data/basicBinding3.qml
@@ -0,0 +1,13 @@
+import Qt 4.6
+Rectangle {
+ id: MyRectangle
+
+ property color sourceColor: "red"
+ property color sourceColor2: "blue"
+ width: 100; height: 100
+ color: sourceColor
+ states: State {
+ name: "blue"
+ PropertyChanges { target: MyRectangle; color: sourceColor2 }
+ }
+} \ No newline at end of file
diff --git a/tests/auto/declarative/states/data/basicBinding4.qml b/tests/auto/declarative/states/data/basicBinding4.qml
new file mode 100644
index 0000000..f0b72bd
--- /dev/null
+++ b/tests/auto/declarative/states/data/basicBinding4.qml
@@ -0,0 +1,17 @@
+import Qt 4.6
+Rectangle {
+ id: MyRectangle
+
+ property color sourceColor: "blue"
+ width: 100; height: 100
+ color: "red"
+ states: [
+ State {
+ name: "blue"
+ PropertyChanges { target: MyRectangle; color: sourceColor }
+ },
+ State {
+ name: "green"
+ PropertyChanges { target: MyRectangle; color: "green" }
+ }]
+}
diff --git a/tests/auto/declarative/states/data/basicChanges.qml b/tests/auto/declarative/states/data/basicChanges.qml
new file mode 100644
index 0000000..8d560c6
--- /dev/null
+++ b/tests/auto/declarative/states/data/basicChanges.qml
@@ -0,0 +1,10 @@
+import Qt 4.6
+Rectangle {
+ id: MyRectangle
+ width: 100; height: 100
+ color: "red"
+ states: State {
+ name: "blue"
+ PropertyChanges { target: MyRectangle; color: "blue" }
+ }
+} \ No newline at end of file
diff --git a/tests/auto/declarative/states/data/basicChanges2.qml b/tests/auto/declarative/states/data/basicChanges2.qml
new file mode 100644
index 0000000..0f8783a
--- /dev/null
+++ b/tests/auto/declarative/states/data/basicChanges2.qml
@@ -0,0 +1,15 @@
+import Qt 4.6
+Rectangle {
+ id: MyRectangle
+ width: 100; height: 100
+ color: "red"
+ states: [
+ State {
+ name: "blue"
+ PropertyChanges { target: MyRectangle; color: "blue" }
+ },
+ State {
+ name: "green"
+ PropertyChanges { target: MyRectangle; color: "green" }
+ }]
+} \ No newline at end of file
diff --git a/tests/auto/declarative/states/data/basicChanges3.qml b/tests/auto/declarative/states/data/basicChanges3.qml
new file mode 100644
index 0000000..2a5ca5d
--- /dev/null
+++ b/tests/auto/declarative/states/data/basicChanges3.qml
@@ -0,0 +1,15 @@
+import Qt 4.6
+Rectangle {
+ id: MyRectangle
+ width: 100; height: 100
+ color: "red"
+ states: [
+ State {
+ name: "blue"
+ PropertyChanges { target: MyRectangle; color: "blue" }
+ },
+ State {
+ name: "bordered"
+ PropertyChanges { target: MyRectangle; border.width: 2 }
+ }]
+}
diff --git a/tests/auto/declarative/states/data/basicExtension.qml b/tests/auto/declarative/states/data/basicExtension.qml
new file mode 100644
index 0000000..230e00b
--- /dev/null
+++ b/tests/auto/declarative/states/data/basicExtension.qml
@@ -0,0 +1,16 @@
+import Qt 4.6
+Rectangle {
+ id: MyRectangle
+ width: 100; height: 100
+ color: "red"
+ states: [
+ State {
+ name: "blue"
+ PropertyChanges { target: MyRectangle; color: "blue" }
+ },
+ State {
+ name: "bordered"
+ extend: "blue"
+ PropertyChanges { target: MyRectangle; border.width: 2 }
+ }]
+} \ No newline at end of file
diff --git a/tests/auto/declarative/states/data/fakeExtension.qml b/tests/auto/declarative/states/data/fakeExtension.qml
new file mode 100644
index 0000000..3d85c4f
--- /dev/null
+++ b/tests/auto/declarative/states/data/fakeExtension.qml
@@ -0,0 +1,16 @@
+import Qt 4.6
+Rectangle {
+ id: MyRectangle
+ width: 100; height: 100
+ color: "red"
+ states: [
+ State {
+ name: "blue"
+ PropertyChanges { target: MyRectangle; color: "blue" }
+ },
+ State {
+ name: "green"
+ extend: "blue"
+ PropertyChanges { target: MyRectangle; color: "green" }
+ }]
+} \ No newline at end of file
diff --git a/tests/auto/declarative/states/data/signalOverride.qml b/tests/auto/declarative/states/data/signalOverride.qml
new file mode 100644
index 0000000..5ba1566
--- /dev/null
+++ b/tests/auto/declarative/states/data/signalOverride.qml
@@ -0,0 +1,18 @@
+import Qt 4.6
+import Qt.test 1.0
+
+MyRectangle {
+ id: rect
+
+ onDidSomething: color = "blue"
+
+ width: 100; height: 100
+ color: "red"
+ states: State {
+ name: "green"
+ PropertyChanges {
+ target: rect
+ onDidSomething: color = "green"
+ }
+ }
+}
diff --git a/tests/auto/declarative/states/data/signalOverride2.qml b/tests/auto/declarative/states/data/signalOverride2.qml
new file mode 100644
index 0000000..527e165
--- /dev/null
+++ b/tests/auto/declarative/states/data/signalOverride2.qml
@@ -0,0 +1,9 @@
+import Qt 4.6
+import Qt.test 1.0
+
+MyRectangle {
+ id: rect
+ onDidSomething: color = "blue"
+ width: 100; height: 100
+ ExtendedRectangle {}
+}
diff --git a/tests/auto/declarative/states/states.pro b/tests/auto/declarative/states/states.pro
new file mode 100644
index 0000000..0474ea5
--- /dev/null
+++ b/tests/auto/declarative/states/states.pro
@@ -0,0 +1,6 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_states.cpp
+
+# Define SRCDIR equal to test's source directory
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/states/tst_states.cpp b/tests/auto/declarative/states/tst_states.cpp
new file mode 100644
index 0000000..b2532a2
--- /dev/null
+++ b/tests/auto/declarative/states/tst_states.cpp
@@ -0,0 +1,318 @@
+#include <qtest.h>
+#include <QtDeclarative/qmlengine.h>
+#include <QtDeclarative/qmlcomponent.h>
+#include <QtDeclarative/qfxrect.h>
+
+class tst_states : public QObject
+{
+ Q_OBJECT
+public:
+ tst_states() {}
+
+private slots:
+ void basicChanges();
+ void basicExtension();
+ void basicBinding();
+ void signalOverride();
+};
+
+void tst_states::basicChanges()
+{
+ QmlEngine engine;
+
+ {
+ QmlComponent rectComponent(&engine, SRCDIR "/data/basicChanges.qml");
+ QFxRect *rect = qobject_cast<QFxRect*>(rectComponent.create());
+ QVERIFY(rect != 0);
+
+ QCOMPARE(rect->color(),QColor("red"));
+
+ rect->setState("blue");
+ QCOMPARE(rect->color(),QColor("blue"));
+
+ rect->setState("");
+ QCOMPARE(rect->color(),QColor("red"));
+ }
+
+ {
+ QmlComponent rectComponent(&engine, SRCDIR "/data/basicChanges2.qml");
+ QFxRect *rect = qobject_cast<QFxRect*>(rectComponent.create());
+ QVERIFY(rect != 0);
+
+ QCOMPARE(rect->color(),QColor("red"));
+
+ rect->setState("blue");
+ QCOMPARE(rect->color(),QColor("blue"));
+
+ rect->setState("green");
+ QCOMPARE(rect->color(),QColor("green"));
+
+ rect->setState("");
+ QCOMPARE(rect->color(),QColor("red"));
+
+ rect->setState("green");
+ QCOMPARE(rect->color(),QColor("green"));
+ }
+
+ {
+ QmlComponent rectComponent(&engine, SRCDIR "/data/basicChanges3.qml");
+ QFxRect *rect = qobject_cast<QFxRect*>(rectComponent.create());
+ QVERIFY(rect != 0);
+
+ QCOMPARE(rect->color(),QColor("red"));
+ QCOMPARE(rect->border()->width(),1);
+
+ rect->setState("blue");
+ QCOMPARE(rect->color(),QColor("blue"));
+ QCOMPARE(rect->border()->width(),1);
+
+ rect->setState("bordered");
+ QCOMPARE(rect->color(),QColor("red"));
+ QCOMPARE(rect->border()->width(),2);
+
+ rect->setState("");
+ QCOMPARE(rect->color(),QColor("red"));
+ QCOMPARE(rect->border()->width(),1);
+ //### we should be checking that this is an implicit rather than explicit 1 (which currently fails)
+
+ rect->setState("bordered");
+ QCOMPARE(rect->color(),QColor("red"));
+ QCOMPARE(rect->border()->width(),2);
+
+ rect->setState("blue");
+ QCOMPARE(rect->color(),QColor("blue"));
+ QCOMPARE(rect->border()->width(),1);
+
+ }
+}
+
+void tst_states::basicExtension()
+{
+ QmlEngine engine;
+
+ {
+ QmlComponent rectComponent(&engine, SRCDIR "/data/basicExtension.qml");
+ QFxRect *rect = qobject_cast<QFxRect*>(rectComponent.create());
+ QVERIFY(rect != 0);
+
+ QCOMPARE(rect->color(),QColor("red"));
+ QCOMPARE(rect->border()->width(),1);
+
+ rect->setState("blue");
+ QCOMPARE(rect->color(),QColor("blue"));
+ QCOMPARE(rect->border()->width(),1);
+
+ rect->setState("bordered");
+ QCOMPARE(rect->color(),QColor("blue"));
+ QCOMPARE(rect->border()->width(),2);
+
+ rect->setState("blue");
+ QCOMPARE(rect->color(),QColor("blue"));
+ QCOMPARE(rect->border()->width(),1);
+
+ rect->setState("");
+ QCOMPARE(rect->color(),QColor("red"));
+ QCOMPARE(rect->border()->width(),1);
+
+ rect->setState("bordered");
+ QCOMPARE(rect->color(),QColor("blue"));
+ QCOMPARE(rect->border()->width(),2);
+
+ rect->setState("");
+ QCOMPARE(rect->color(),QColor("red"));
+ QCOMPARE(rect->border()->width(),1);
+ }
+
+ {
+ QmlComponent rectComponent(&engine, SRCDIR "/data/fakeExtension.qml");
+ QFxRect *rect = qobject_cast<QFxRect*>(rectComponent.create());
+ QVERIFY(rect != 0);
+
+ QCOMPARE(rect->color(),QColor("red"));
+
+ rect->setState("blue");
+ QCOMPARE(rect->color(),QColor("blue"));
+
+ rect->setState("green");
+ QCOMPARE(rect->color(),QColor("green"));
+
+ rect->setState("blue");
+ QCOMPARE(rect->color(),QColor("blue"));
+
+ rect->setState("green");
+ QCOMPARE(rect->color(),QColor("green"));
+
+ rect->setState("");
+ QCOMPARE(rect->color(),QColor("red"));
+
+ rect->setState("green");
+ QCOMPARE(rect->color(),QColor("green"));
+ }
+}
+
+void tst_states::basicBinding()
+{
+ QmlEngine engine;
+
+ {
+ QmlComponent rectComponent(&engine, SRCDIR "/data/basicBinding.qml");
+ QFxRect *rect = qobject_cast<QFxRect*>(rectComponent.create());
+ QVERIFY(rect != 0);
+
+ QCOMPARE(rect->color(),QColor("red"));
+
+ rect->setState("blue");
+ QCOMPARE(rect->color(),QColor("blue"));
+
+ rect->setState("");
+ QCOMPARE(rect->color(),QColor("red"));
+
+ rect->setState("blue");
+ QCOMPARE(rect->color(),QColor("blue"));
+ rect->setProperty("sourceColor", QColor("green"));
+ QCOMPARE(rect->color(),QColor("green"));
+
+ rect->setState("");
+ QCOMPARE(rect->color(),QColor("red"));
+ rect->setProperty("sourceColor", QColor("yellow"));
+ QCOMPARE(rect->color(),QColor("red"));
+
+ rect->setState("blue");
+ QCOMPARE(rect->color(),QColor("yellow"));
+ }
+
+ {
+ QmlComponent rectComponent(&engine, SRCDIR "/data/basicBinding2.qml");
+ QFxRect *rect = qobject_cast<QFxRect*>(rectComponent.create());
+ QVERIFY(rect != 0);
+
+ QCOMPARE(rect->color(),QColor("red"));
+
+ rect->setState("blue");
+ QCOMPARE(rect->color(),QColor("blue"));
+
+ rect->setState("");
+ QCOMPARE(rect->color(),QColor("red"));
+
+ rect->setState("blue");
+ QCOMPARE(rect->color(),QColor("blue"));
+ rect->setProperty("sourceColor", QColor("green"));
+ QCOMPARE(rect->color(),QColor("blue"));
+
+ rect->setState("");
+ QCOMPARE(rect->color(),QColor("green"));
+ rect->setProperty("sourceColor", QColor("yellow"));
+ QCOMPARE(rect->color(),QColor("yellow"));
+
+ rect->setState("blue");
+ QCOMPARE(rect->color(),QColor("blue"));
+
+ rect->setState("");
+ QCOMPARE(rect->color(),QColor("yellow"));
+ }
+
+ {
+ QmlComponent rectComponent(&engine, SRCDIR "/data/basicBinding3.qml");
+ QFxRect *rect = qobject_cast<QFxRect*>(rectComponent.create());
+ QVERIFY(rect != 0);
+
+ QCOMPARE(rect->color(),QColor("red"));
+ rect->setProperty("sourceColor", QColor("green"));
+ QCOMPARE(rect->color(),QColor("green"));
+
+ rect->setState("blue");
+ QCOMPARE(rect->color(),QColor("blue"));
+ rect->setProperty("sourceColor", QColor("red"));
+ QCOMPARE(rect->color(),QColor("blue"));
+ rect->setProperty("sourceColor2", QColor("yellow"));
+ QCOMPARE(rect->color(),QColor("yellow"));
+
+ rect->setState("");
+ QCOMPARE(rect->color(),QColor("red"));
+ rect->setProperty("sourceColor2", QColor("green"));
+ QCOMPARE(rect->color(),QColor("red"));
+ rect->setProperty("sourceColor", QColor("yellow"));
+ QCOMPARE(rect->color(),QColor("yellow"));
+ }
+
+ {
+ QmlComponent rectComponent(&engine, SRCDIR "/data/basicBinding4.qml");
+ QFxRect *rect = qobject_cast<QFxRect*>(rectComponent.create());
+ QVERIFY(rect != 0);
+
+ QCOMPARE(rect->color(),QColor("red"));
+
+ rect->setState("blue");
+ QCOMPARE(rect->color(),QColor("blue"));
+ rect->setProperty("sourceColor", QColor("yellow"));
+ QCOMPARE(rect->color(),QColor("yellow"));
+
+ rect->setState("green");
+ QCOMPARE(rect->color(),QColor("green"));
+ rect->setProperty("sourceColor", QColor("purple"));
+ QCOMPARE(rect->color(),QColor("green"));
+
+ rect->setState("blue");
+ QCOMPARE(rect->color(),QColor("purple"));
+
+ rect->setState("green");
+ QCOMPARE(rect->color(),QColor("green"));
+
+ rect->setState("");
+ QCOMPARE(rect->color(),QColor("red"));
+ }
+}
+
+class MyRect : public QFxRect
+{
+ Q_OBJECT
+public:
+ MyRect() {}
+ void doSomething() { emit didSomething(); }
+Q_SIGNALS:
+ void didSomething();
+};
+
+QML_DECLARE_TYPE(MyRect)
+QML_DEFINE_TYPE(Qt.test, 1, 0, 0, MyRectangle,MyRect);
+
+void tst_states::signalOverride()
+{
+ QmlEngine engine;
+
+ {
+ QmlComponent rectComponent(&engine, SRCDIR "/data/signalOverride.qml");
+ MyRect *rect = qobject_cast<MyRect*>(rectComponent.create());
+ QVERIFY(rect != 0);
+
+ QCOMPARE(rect->color(),QColor("red"));
+ rect->doSomething();
+ QCOMPARE(rect->color(),QColor("blue"));
+
+ rect->setState("green");
+ rect->doSomething();
+ QCOMPARE(rect->color(),QColor("green"));
+ }
+
+ {
+ QmlComponent rectComponent(&engine, SRCDIR "/data/signalOverride2.qml");
+ MyRect *rect = qobject_cast<MyRect*>(rectComponent.create());
+ QVERIFY(rect != 0);
+
+ QCOMPARE(rect->color(),QColor("white"));
+ rect->doSomething();
+ QCOMPARE(rect->color(),QColor("blue"));
+
+ QFxRect *innerRect = qobject_cast<QFxRect*>(rect->findChild<QFxRect*>("extendedRect"));
+
+ innerRect->setState("green");
+ rect->doSomething();
+ QCOMPARE(rect->color(),QColor("blue"));
+ QCOMPARE(innerRect->color(),QColor("green"));
+ QCOMPARE(innerRect->property("extendedColor").value<QColor>(),QColor("green"));
+ }
+}
+
+QTEST_MAIN(tst_states)
+
+#include "tst_states.moc"
diff --git a/tests/auto/declarative/visual/ListView/basic1.qml b/tests/auto/declarative/visual/ListView/basic1.qml
new file mode 100644
index 0000000..85934dc
--- /dev/null
+++ b/tests/auto/declarative/visual/ListView/basic1.qml
@@ -0,0 +1,27 @@
+import Qt 4.6
+
+Rectangle {
+ color: "blue"
+ width: 200
+ height: 300
+ id: Page
+ ListView {
+ anchors.fill: parent
+ delegate: Rectangle {
+ color: "red"
+ width: 100
+ height: 100
+ Text {
+ text: name
+ }
+ }
+ model: ListModel {
+ ListElement {
+ name: "January"
+ }
+ ListElement {
+ name: "February"
+ }
+ }
+ }
+}
diff --git a/tests/auto/declarative/visual/ListView/basic2.qml b/tests/auto/declarative/visual/ListView/basic2.qml
new file mode 100644
index 0000000..4fe63ac
--- /dev/null
+++ b/tests/auto/declarative/visual/ListView/basic2.qml
@@ -0,0 +1,31 @@
+import Qt 4.6
+
+Rectangle {
+ color: "blue"
+ width: 200
+ height: 300
+ id: Page
+ Component {
+ id: Delegate
+ Rectangle {
+ color: "red"
+ width: 100
+ height: 100
+ Text {
+ text: name
+ }
+ }
+ }
+ ListView {
+ anchors.fill: parent
+ delegate: Delegate
+ model: ListModel {
+ ListElement {
+ name: "January"
+ }
+ ListElement {
+ name: "February"
+ }
+ }
+ }
+}
diff --git a/tests/auto/declarative/visual/ListView/basic3.qml b/tests/auto/declarative/visual/ListView/basic3.qml
new file mode 100644
index 0000000..c0705e9
--- /dev/null
+++ b/tests/auto/declarative/visual/ListView/basic3.qml
@@ -0,0 +1,29 @@
+import Qt 4.6
+
+Rectangle {
+ color: "blue"
+ width: 200
+ height: 300
+ id: Page
+ ListModel {
+ id: Model
+ ListElement {
+ name: "January"
+ }
+ ListElement {
+ name: "February"
+ }
+ }
+ ListView {
+ anchors.fill: parent
+ model: Model
+ delegate: Rectangle {
+ color: "red"
+ width: 100
+ height: 100
+ Text {
+ text: name
+ }
+ }
+ }
+}
diff --git a/tests/auto/declarative/visual/ListView/basic4.qml b/tests/auto/declarative/visual/ListView/basic4.qml
new file mode 100644
index 0000000..c8e1bcc
--- /dev/null
+++ b/tests/auto/declarative/visual/ListView/basic4.qml
@@ -0,0 +1,33 @@
+import Qt 4.6
+
+Rectangle {
+ color: "blue"
+ width: 200
+ height: 300
+ id: Page
+ ListModel {
+ id: Model
+ ListElement {
+ name: "January"
+ }
+ ListElement {
+ name: "February"
+ }
+ }
+ Component {
+ id: Delegate
+ Rectangle {
+ color: "red"
+ width: 100
+ height: 100
+ Text {
+ text: name
+ }
+ }
+ }
+ ListView {
+ anchors.fill: parent
+ model: Model
+ delegate: Delegate
+ }
+}
diff --git a/tests/auto/declarative/visual/ListView/data-X11/basic1.qml b/tests/auto/declarative/visual/ListView/data-X11/basic1.qml
new file mode 100644
index 0000000..ae59b14
--- /dev/null
+++ b/tests/auto/declarative/visual/ListView/data-X11/basic1.qml
@@ -0,0 +1,159 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 32
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 48
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 64
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 80
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 96
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 112
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 128
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 144
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 160
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 176
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 192
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 208
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 224
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 240
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 256
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 272
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 288
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 304
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 320
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 336
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 352
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 368
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 384
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 400
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 416
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 432
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 448
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 464
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 480
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 496
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 512
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 528
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 0
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 544
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 560
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 576
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+}
diff --git a/tests/auto/declarative/visual/ListView/data-X11/basic2.qml b/tests/auto/declarative/visual/ListView/data-X11/basic2.qml
new file mode 100644
index 0000000..ff19d22
--- /dev/null
+++ b/tests/auto/declarative/visual/ListView/data-X11/basic2.qml
@@ -0,0 +1,187 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 32
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 48
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 64
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 80
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 96
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 112
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 128
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 144
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 160
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 176
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 192
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 208
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 224
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 240
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 256
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 272
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 288
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 304
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 320
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 336
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 352
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 368
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 384
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 400
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 416
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 432
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 448
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 464
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 480
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 496
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 512
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 528
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 544
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 560
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 576
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 592
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 608
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 624
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 640
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 0
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 656
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 672
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 688
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+}
diff --git a/tests/auto/declarative/visual/ListView/data-X11/basic3.qml b/tests/auto/declarative/visual/ListView/data-X11/basic3.qml
new file mode 100644
index 0000000..2f33cae
--- /dev/null
+++ b/tests/auto/declarative/visual/ListView/data-X11/basic3.qml
@@ -0,0 +1,147 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 32
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 48
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 64
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 80
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 96
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 112
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 128
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 144
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 160
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 176
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 192
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 208
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 224
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 240
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 256
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 272
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 288
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 304
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 320
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 336
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 352
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 368
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 384
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 400
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 416
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 432
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 448
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 464
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 0
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 480
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 496
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 512
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 528
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+}
diff --git a/tests/auto/declarative/visual/ListView/data-X11/basic4.qml b/tests/auto/declarative/visual/ListView/data-X11/basic4.qml
new file mode 100644
index 0000000..4b1c5cf
--- /dev/null
+++ b/tests/auto/declarative/visual/ListView/data-X11/basic4.qml
@@ -0,0 +1,171 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 32
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 48
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 64
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 80
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 96
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 112
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 128
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 144
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 160
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 176
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 192
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 208
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 224
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 240
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 256
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 272
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 288
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 304
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 320
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 336
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 352
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 368
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 384
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 400
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 416
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 432
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 448
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 464
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 480
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 496
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 512
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 528
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 0
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 544
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 560
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 576
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 592
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 608
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+ Frame {
+ msec: 624
+ hash: "c0dc2737283d8dfa62631e0cbb948b99"
+ }
+}
diff --git a/tests/auto/declarative/visual/ListView/data/basic1.qml b/tests/auto/declarative/visual/ListView/data/basic1.qml
new file mode 100644
index 0000000..4cd44fc
--- /dev/null
+++ b/tests/auto/declarative/visual/ListView/data/basic1.qml
@@ -0,0 +1,159 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 32
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 48
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 64
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 80
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 96
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 112
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 128
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 144
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 160
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 176
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 192
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 208
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 224
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 240
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 256
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 272
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 288
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 304
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 320
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 336
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 352
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 368
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 384
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 400
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 416
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 432
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 448
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 464
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 480
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 496
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 512
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 528
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 67108864
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 544
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 560
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 576
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+}
diff --git a/tests/auto/declarative/visual/ListView/data/basic2.qml b/tests/auto/declarative/visual/ListView/data/basic2.qml
new file mode 100644
index 0000000..34ad5ed
--- /dev/null
+++ b/tests/auto/declarative/visual/ListView/data/basic2.qml
@@ -0,0 +1,187 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 32
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 48
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 64
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 80
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 96
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 112
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 128
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 144
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 160
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 176
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 192
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 208
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 224
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 240
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 256
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 272
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 288
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 304
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 320
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 336
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 352
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 368
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 384
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 400
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 416
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 432
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 448
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 464
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 480
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 496
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 512
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 528
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 544
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 560
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 576
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 592
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 608
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 624
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 640
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 67108864
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 656
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 672
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 688
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+}
diff --git a/tests/auto/declarative/visual/ListView/data/basic3.qml b/tests/auto/declarative/visual/ListView/data/basic3.qml
new file mode 100644
index 0000000..1c5ddb0
--- /dev/null
+++ b/tests/auto/declarative/visual/ListView/data/basic3.qml
@@ -0,0 +1,147 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 32
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 48
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 64
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 80
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 96
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 112
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 128
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 144
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 160
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 176
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 192
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 208
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 224
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 240
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 256
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 272
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 288
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 304
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 320
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 336
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 352
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 368
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 384
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 400
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 416
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 432
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 448
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 464
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 67108864
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 480
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 496
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 512
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 528
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+}
diff --git a/tests/auto/declarative/visual/ListView/data/basic4.qml b/tests/auto/declarative/visual/ListView/data/basic4.qml
new file mode 100644
index 0000000..d121d91
--- /dev/null
+++ b/tests/auto/declarative/visual/ListView/data/basic4.qml
@@ -0,0 +1,171 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 32
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 48
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 64
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 80
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 96
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 112
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 128
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 144
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 160
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 176
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 192
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 208
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 224
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 240
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 256
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 272
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 288
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 304
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 320
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 336
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 352
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 368
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 384
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 400
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 416
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 432
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 448
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 464
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 480
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 496
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 512
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 528
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 67108864
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 544
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 560
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 576
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 592
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 608
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+ Frame {
+ msec: 624
+ hash: "c0ec1bac5550efaa1f8ce7b46c2fed94"
+ }
+}
diff --git a/tests/auto/declarative/visual/bindinganimation/bindinganimation.qml b/tests/auto/declarative/visual/bindinganimation/bindinganimation.qml
new file mode 100644
index 0000000..90ef1e5
--- /dev/null
+++ b/tests/auto/declarative/visual/bindinganimation/bindinganimation.qml
@@ -0,0 +1,40 @@
+import Qt 4.6
+
+Rectangle {
+ color: "blue"
+ width: 320
+ height: 240
+ id: Page
+ Rectangle {
+ id: MyRectangle
+ width: 100
+ height: 100
+ color: "red"
+ x: 10
+ }
+ states: [
+ State {
+ name: "hello"
+ PropertyChanges {
+ target: MyRectangle
+ x: 100
+ }
+ PropertyChanges {
+ target: MyMouseRegion
+ onClicked: "Page.currentState = ''"
+ }
+ }
+ ]
+ transitions: [
+ Transition {
+ NumberAnimation {
+ properties: "x"
+ }
+ }
+ ]
+ MouseRegion {
+ id: MyMouseRegion
+ anchors.fill: parent
+ onClicked: { Page.state= 'hello' }
+ }
+}
diff --git a/tests/auto/declarative/visual/bindinganimation/data/bindinganimation.0.png b/tests/auto/declarative/visual/bindinganimation/data/bindinganimation.0.png
new file mode 100644
index 0000000..1b08c81
--- /dev/null
+++ b/tests/auto/declarative/visual/bindinganimation/data/bindinganimation.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/bindinganimation/data/bindinganimation.1.png b/tests/auto/declarative/visual/bindinganimation/data/bindinganimation.1.png
new file mode 100644
index 0000000..f3074fc
--- /dev/null
+++ b/tests/auto/declarative/visual/bindinganimation/data/bindinganimation.1.png
Binary files differ
diff --git a/tests/auto/declarative/visual/bindinganimation/data/bindinganimation.qml b/tests/auto/declarative/visual/bindinganimation/data/bindinganimation.qml
new file mode 100644
index 0000000..2501797
--- /dev/null
+++ b/tests/auto/declarative/visual/bindinganimation/data/bindinganimation.qml
@@ -0,0 +1,659 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 32
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 48
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 64
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 80
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 96
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 112
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 128
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 144
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 160
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 176
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 192
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 208
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 224
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 240
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 256
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 272
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 288
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 304
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 320
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 336
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 352
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 368
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 384
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 400
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 416
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 432
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 448
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 464
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 480
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 496
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 512
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 528
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 544
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 560
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 576
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 592
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 608
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 624
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 640
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 656
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 672
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 688
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 704
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 720
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 736
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 752
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 768
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 784
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 800
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 816
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 832
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 848
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 864
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 880
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 896
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 912
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 928
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 944
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 960
+ image: "bindinganimation.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 992
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1008
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1024
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1040
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1056
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1072
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1088
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1104
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1120
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1136
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1152
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1168
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1184
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1200
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1216
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1232
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1248
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1264
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1280
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1296
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1312
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1328
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1344
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1360
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1376
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1392
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1408
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1424
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1440
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1456
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1472
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1488
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Mouse {
+ type: 2
+ button: 1
+ buttons: 1
+ x: 150; y: 158
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 1504
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1520
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1536
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1552
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1568
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Mouse {
+ type: 3
+ button: 1
+ buttons: 0
+ x: 150; y: 158
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 1584
+ hash: "7cb5fc371040e587de9f06ce14a4b29a"
+ }
+ Frame {
+ msec: 1600
+ hash: "a78c9394bf3b81f192f42710cd7218b1"
+ }
+ Frame {
+ msec: 1616
+ hash: "7f08e8170feb1d02373c9ab42b6e882d"
+ }
+ Frame {
+ msec: 1632
+ hash: "967fbad8ac664400a3efbe66617d62aa"
+ }
+ Frame {
+ msec: 1648
+ hash: "abc2ec0bc7a93e75b5823310e6284db1"
+ }
+ Frame {
+ msec: 1664
+ hash: "afbd5b24e2f86646f5ec2aa22f3a4b5b"
+ }
+ Frame {
+ msec: 1680
+ hash: "9413dffb7ee853ba0125ac22ab22abbd"
+ }
+ Frame {
+ msec: 1696
+ hash: "fcae0317f81a3ddd713f4db1349a9da0"
+ }
+ Frame {
+ msec: 1712
+ hash: "37739777a5979f3ebf85e47e63341660"
+ }
+ Frame {
+ msec: 1728
+ hash: "72731478d80f024076ea639b55152360"
+ }
+ Frame {
+ msec: 1744
+ hash: "69058485ced6bc992a1a7c5ee34add4c"
+ }
+ Frame {
+ msec: 1760
+ hash: "391ad7ff2362e059f6170dfe306f94a7"
+ }
+ Frame {
+ msec: 1776
+ hash: "f9f74a2e38b52c9266f33e428b6acd9d"
+ }
+ Frame {
+ msec: 1792
+ hash: "25152412c4ea2aec6caf89486c073484"
+ }
+ Frame {
+ msec: 1808
+ hash: "ba403842ba3128b1cdf6a9cb28c90751"
+ }
+ Frame {
+ msec: 1824
+ hash: "e90cd68490cf3ce6ef9fe4e8f92feaa9"
+ }
+ Frame {
+ msec: 1840
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 1856
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 1872
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 1888
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 1904
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 1920
+ image: "bindinganimation.1.png"
+ }
+ Frame {
+ msec: 1936
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 1952
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 1968
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 1984
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2000
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2016
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2032
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2048
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2064
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2080
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2096
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2112
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2128
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2144
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2160
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2176
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2192
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2208
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2224
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2240
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2256
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2272
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2288
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2304
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2320
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2336
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2352
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2368
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2384
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2400
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2416
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 67108864
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2432
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2448
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2464
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2480
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2496
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+ Frame {
+ msec: 2512
+ hash: "383ba6b9efcc58fca512982a207631f6"
+ }
+}
diff --git a/tests/auto/declarative/visual/colorAnimation/colorAnimation.qml b/tests/auto/declarative/visual/colorAnimation/colorAnimation.qml
new file mode 100644
index 0000000..0e98d7e
--- /dev/null
+++ b/tests/auto/declarative/visual/colorAnimation/colorAnimation.qml
@@ -0,0 +1,41 @@
+import Qt 4.6
+
+Rectangle {
+ id: mainrect
+ width: 200; height: 200
+ state: "first"
+ states: [
+ State {
+ name: "first"
+ PropertyChanges {
+ target: mainrect
+ color: "red"
+ }
+ },
+ State {
+ name: "second"
+ PropertyChanges {
+ target: mainrect
+ color: "blue"
+ }
+ }
+ ]
+ transitions: [
+ Transition {
+ from: "first"
+ to: "second"
+ reversible: true
+ SequentialAnimation {
+ ColorAnimation {
+ duration: 2000
+ target: mainrect
+ property: "color"
+ }
+ }
+ }
+ ]
+ MouseRegion {
+ anchors.fill: parent
+ onClicked: { mainrect.state = 'second' }
+ }
+}
diff --git a/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.0.png b/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.0.png
new file mode 100644
index 0000000..6419082
--- /dev/null
+++ b/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.1.png b/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.1.png
new file mode 100644
index 0000000..adf62e7
--- /dev/null
+++ b/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.1.png
Binary files differ
diff --git a/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.2.png b/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.2.png
new file mode 100644
index 0000000..f4a6cfd
--- /dev/null
+++ b/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.2.png
Binary files differ
diff --git a/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.qml b/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.qml
new file mode 100644
index 0000000..6654021
--- /dev/null
+++ b/tests/auto/declarative/visual/colorAnimation/data/colorAnimation.qml
@@ -0,0 +1,951 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 32
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 48
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 64
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 80
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 96
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 112
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 128
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 144
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 160
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 176
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 192
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 208
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 224
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 240
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 256
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 272
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 288
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 304
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 320
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 336
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 352
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 368
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 384
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 400
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 416
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 432
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 448
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 464
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 480
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 496
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 512
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Mouse {
+ type: 2
+ button: 1
+ buttons: 1
+ x: 93; y: 136
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 528
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 544
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 560
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 576
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 592
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Mouse {
+ type: 3
+ button: 1
+ buttons: 0
+ x: 93; y: 136
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 608
+ hash: "acc736435c9f84aa82941ba561bc5dbc"
+ }
+ Frame {
+ msec: 624
+ hash: "e5bda0daf98288ce18db6ce06eda3ba0"
+ }
+ Frame {
+ msec: 640
+ hash: "d35008f75b8c992f80fb16ba7203649d"
+ }
+ Frame {
+ msec: 656
+ hash: "14f43e0784ddf42ea8550db88c501bf1"
+ }
+ Frame {
+ msec: 672
+ hash: "02276e158b5391480b1bdeaadf1fb903"
+ }
+ Frame {
+ msec: 688
+ hash: "35d9513eb97a2c482b7cd197de910934"
+ }
+ Frame {
+ msec: 704
+ hash: "faf0fd681e60bb2489099f5df772b6cd"
+ }
+ Frame {
+ msec: 720
+ hash: "a863d3e346f94785a3a392fdc91526eb"
+ }
+ Frame {
+ msec: 736
+ hash: "fdf328d3f6eb8410da59a91345e41a44"
+ }
+ Frame {
+ msec: 752
+ hash: "83514a3b10d5be8f6c3b128d0f3e0b1c"
+ }
+ Frame {
+ msec: 768
+ hash: "ead0eae76cd00189075964671effbaea"
+ }
+ Frame {
+ msec: 784
+ hash: "24d2457fcd51490fda23071bf9929d12"
+ }
+ Frame {
+ msec: 800
+ hash: "1478683446cf543dacbe31d0b76a98a6"
+ }
+ Frame {
+ msec: 816
+ hash: "99f7da1f31fe920f6c02add4042ae925"
+ }
+ Frame {
+ msec: 832
+ hash: "22def892006cf66667770b0f17baf6c0"
+ }
+ Frame {
+ msec: 848
+ hash: "6a36d5a77099bfd58baf285478ff04e4"
+ }
+ Frame {
+ msec: 864
+ hash: "6258150666b59b20ab476724c07fc20c"
+ }
+ Frame {
+ msec: 880
+ hash: "f1636315bc950a6dd400d9c7ed263b88"
+ }
+ Frame {
+ msec: 896
+ hash: "18447ea8dc2e8da956788e5b3cf3790a"
+ }
+ Frame {
+ msec: 912
+ hash: "1d2a6e65997a73e9e670356c8e8b63b2"
+ }
+ Frame {
+ msec: 928
+ hash: "bed0242c0f9ef229d1392835286d5782"
+ }
+ Frame {
+ msec: 944
+ hash: "88923c190e9e5beadef8a409c06df9d6"
+ }
+ Frame {
+ msec: 960
+ image: "colorAnimation.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "85b1821cc50f2a9f3ed6944f792b7a2f"
+ }
+ Frame {
+ msec: 992
+ hash: "395195716d76bc0be7b2033ed37a7a1c"
+ }
+ Frame {
+ msec: 1008
+ hash: "243dbffcf416926242bbcb7348974c4c"
+ }
+ Frame {
+ msec: 1024
+ hash: "a755068679616d8ac65c2aa7431f2a19"
+ }
+ Frame {
+ msec: 1040
+ hash: "e8249b35a47eb492cbdf2d91cc8426f0"
+ }
+ Frame {
+ msec: 1056
+ hash: "15f3da1c0e6f0779b96859d51171dd27"
+ }
+ Frame {
+ msec: 1072
+ hash: "258c0c756aac3de743b43051f2aace6b"
+ }
+ Frame {
+ msec: 1088
+ hash: "a58b9fdf301d72b2cc5c93934cc8927b"
+ }
+ Frame {
+ msec: 1104
+ hash: "a9181d30870d472521f8904818ce520f"
+ }
+ Frame {
+ msec: 1120
+ hash: "7f9e94069ccf3897c26a71bd7becd903"
+ }
+ Frame {
+ msec: 1136
+ hash: "bdf305c2f46cdb86dbf57b1e0cc5a65b"
+ }
+ Frame {
+ msec: 1152
+ hash: "fe5b6865d7e4fc7d1d42c1e74f8666f7"
+ }
+ Frame {
+ msec: 1168
+ hash: "734f0de45a6e34c9eab7ef606196f96a"
+ }
+ Frame {
+ msec: 1184
+ hash: "02a361c4534fdf7f286dc3e6dc23275c"
+ }
+ Frame {
+ msec: 1200
+ hash: "e649155ad69999c14b92f6561e4d1185"
+ }
+ Frame {
+ msec: 1216
+ hash: "01af177084fab755d622973f64b92018"
+ }
+ Frame {
+ msec: 1232
+ hash: "097cc4a082dfab995d213a3a73883c97"
+ }
+ Frame {
+ msec: 1248
+ hash: "d7b4239a3280b1eb8e885e3f422df8e9"
+ }
+ Frame {
+ msec: 1264
+ hash: "59893977994e34e83f91e7ce3ad65d6d"
+ }
+ Frame {
+ msec: 1280
+ hash: "b68e3fbb5cdcd6bd96df7dec558db42b"
+ }
+ Frame {
+ msec: 1296
+ hash: "94ad0580648f36a1e18a9ea7e249b04d"
+ }
+ Frame {
+ msec: 1312
+ hash: "750a4c01d2f5806a89a1c6cc6a9b9a68"
+ }
+ Frame {
+ msec: 1328
+ hash: "4f109f50f388f1bfa4bc6b03b3e6e514"
+ }
+ Frame {
+ msec: 1344
+ hash: "c6168d5cf27a533e8ee636637667be47"
+ }
+ Frame {
+ msec: 1360
+ hash: "f8120547bed987aa34c00da5a01a4d1e"
+ }
+ Frame {
+ msec: 1376
+ hash: "cbff526136fa2c128c8b898fbbef9e5c"
+ }
+ Frame {
+ msec: 1392
+ hash: "f29e52398fab1a239a63df4c32f2fc69"
+ }
+ Frame {
+ msec: 1408
+ hash: "7178bfe86fd2fd513218b33760460f8d"
+ }
+ Frame {
+ msec: 1424
+ hash: "ca83285bc8ac633403896fe976896eb0"
+ }
+ Frame {
+ msec: 1440
+ hash: "96ba486c09cc69d5aa38c46c00df1181"
+ }
+ Frame {
+ msec: 1456
+ hash: "b88eab335842787869f4a14824c19dd8"
+ }
+ Frame {
+ msec: 1472
+ hash: "065aa59012729e1e1a246a2083142690"
+ }
+ Frame {
+ msec: 1488
+ hash: "dd0e98c8398861002c5f178c5f9f612d"
+ }
+ Frame {
+ msec: 1504
+ hash: "04192c2b545948048eccf4d81bbde198"
+ }
+ Frame {
+ msec: 1520
+ hash: "bb7502c7208281ef9fd41714ab88a1a8"
+ }
+ Frame {
+ msec: 1536
+ hash: "5397195471890d08b703dca101e5bc7c"
+ }
+ Frame {
+ msec: 1552
+ hash: "4c678cdbebb2ffd2cbf012ca77800cde"
+ }
+ Frame {
+ msec: 1568
+ hash: "0d7a34ecd0c7f52b2c015037bf1902c6"
+ }
+ Frame {
+ msec: 1584
+ hash: "fd9d5048be749ac4369fda2d018b43ae"
+ }
+ Frame {
+ msec: 1600
+ hash: "93ee03795cd57ae6f7fe3a020b039ad4"
+ }
+ Frame {
+ msec: 1616
+ hash: "5e1118963f219c39761ca7fbf564a9ca"
+ }
+ Frame {
+ msec: 1632
+ hash: "8f40038741903150136170503649d941"
+ }
+ Frame {
+ msec: 1648
+ hash: "b087b7d0aa6224821f8e18718ff5e77d"
+ }
+ Frame {
+ msec: 1664
+ hash: "aa46b04a3c67dc772265ed2901955565"
+ }
+ Frame {
+ msec: 1680
+ hash: "ac024bf2aeb4becdf31a09fe0a6db8f3"
+ }
+ Frame {
+ msec: 1696
+ hash: "13745a174e4d06e2108a5bf125ba50cc"
+ }
+ Frame {
+ msec: 1712
+ hash: "bd972f0d8e230eca0b3fea1b8c960c08"
+ }
+ Frame {
+ msec: 1728
+ hash: "cbdbec802a58e7ced0cf45b3ab0bc0ba"
+ }
+ Frame {
+ msec: 1744
+ hash: "5128584c50305c7d218b81b8367fa3d5"
+ }
+ Frame {
+ msec: 1760
+ hash: "a71461d3593f3685620668916de870bd"
+ }
+ Frame {
+ msec: 1776
+ hash: "74ebac8f32cf044b58d9883dbcd9a722"
+ }
+ Frame {
+ msec: 1792
+ hash: "fedc5b638f339b90fe59b478721e65b7"
+ }
+ Frame {
+ msec: 1808
+ hash: "bcb8c7159f54c353551dd3bff3203966"
+ }
+ Frame {
+ msec: 1824
+ hash: "4e9b083075bc5e9287a8abc982778b56"
+ }
+ Frame {
+ msec: 1840
+ hash: "1d6f02aa99afa47d77fc49ab894b365a"
+ }
+ Frame {
+ msec: 1856
+ hash: "a204feec783b3b05de4c209c21745826"
+ }
+ Frame {
+ msec: 1872
+ hash: "665a2a8ff00b9663157802767f504754"
+ }
+ Frame {
+ msec: 1888
+ hash: "624fb09ebe60cb87d767faf8d2420b1e"
+ }
+ Frame {
+ msec: 1904
+ hash: "e5af0cdc33f3275a25abb09e9165f310"
+ }
+ Frame {
+ msec: 1920
+ image: "colorAnimation.1.png"
+ }
+ Frame {
+ msec: 1936
+ hash: "e7aa6374c73832e57ceb2427a1e258aa"
+ }
+ Frame {
+ msec: 1952
+ hash: "b5abd0dff1ab076faac7cc226e83f5d0"
+ }
+ Frame {
+ msec: 1968
+ hash: "b759acc35bccff8efc2e6fe276ddc0f7"
+ }
+ Frame {
+ msec: 1984
+ hash: "ce52e18c1f7732768779863b45314ff5"
+ }
+ Frame {
+ msec: 2000
+ hash: "99d30652559dd6931e0c95543eeaa149"
+ }
+ Frame {
+ msec: 2016
+ hash: "ffbd9a00e05e085b89296d19d5caec57"
+ }
+ Frame {
+ msec: 2032
+ hash: "9c9d658b9c25602816b8066bf19105db"
+ }
+ Frame {
+ msec: 2048
+ hash: "2b7fd058e6601e22a30bb7106b1c683b"
+ }
+ Frame {
+ msec: 2064
+ hash: "f4c7e26b19ee0a3e7c9688685eb7bd05"
+ }
+ Frame {
+ msec: 2080
+ hash: "0dc6d593bceff56b7f81f2a49d37fefb"
+ }
+ Frame {
+ msec: 2096
+ hash: "9bfd7ad5091ccbdde43c593e133a7b10"
+ }
+ Frame {
+ msec: 2112
+ hash: "2703b617937914a90ea42ebf249d79ee"
+ }
+ Frame {
+ msec: 2128
+ hash: "b77e2983138254016c4cca53100f46fa"
+ }
+ Frame {
+ msec: 2144
+ hash: "60c4dd24187d1281081479e586f02b37"
+ }
+ Frame {
+ msec: 2160
+ hash: "62f2511abd99ef1231c9fa4b91d4abfe"
+ }
+ Frame {
+ msec: 2176
+ hash: "e309b3353fd174e883d309571caddc98"
+ }
+ Frame {
+ msec: 2192
+ hash: "1e2d6a134c7b12dde551b148ef4f088c"
+ }
+ Frame {
+ msec: 2208
+ hash: "e5dc5450604a491cc24a0dcf5c278b58"
+ }
+ Frame {
+ msec: 2224
+ hash: "c8dae97c10e1962c1e6a51ab3ab8579e"
+ }
+ Frame {
+ msec: 2240
+ hash: "4e1b7e06f55fb084080689b474f1fe1d"
+ }
+ Frame {
+ msec: 2256
+ hash: "b4639c907fa937bf15fac62421170cd8"
+ }
+ Frame {
+ msec: 2272
+ hash: "c250208a0caeb5f6cb4d3aac3d7d350b"
+ }
+ Frame {
+ msec: 2288
+ hash: "a73351eabecf0d71149efe31f197413e"
+ }
+ Frame {
+ msec: 2304
+ hash: "479425f1b7aff79e4dfb7fca534af018"
+ }
+ Frame {
+ msec: 2320
+ hash: "046d0f0040a52d1f26ba9f7c5de06ef4"
+ }
+ Frame {
+ msec: 2336
+ hash: "655778bf13c6080903150b0eb43a7edc"
+ }
+ Frame {
+ msec: 2352
+ hash: "72da0bbe81514870655fdd3354adac60"
+ }
+ Frame {
+ msec: 2368
+ hash: "defe0bdf675c65fff55aaaced1e4dae7"
+ }
+ Frame {
+ msec: 2384
+ hash: "c988628b6c3d3780e9a865c7694926cd"
+ }
+ Frame {
+ msec: 2400
+ hash: "5ab17563655231089edd986ff13d6012"
+ }
+ Frame {
+ msec: 2416
+ hash: "c1adff1d2e5800ed466d1691d3b17382"
+ }
+ Frame {
+ msec: 2432
+ hash: "70129ba01fbb19592b9dc0d0a3b3e7df"
+ }
+ Frame {
+ msec: 2448
+ hash: "0000829ef7ed908bf430d42904d59cc2"
+ }
+ Frame {
+ msec: 2464
+ hash: "843d2927f50ab87b4a86b7a6aaeed91f"
+ }
+ Frame {
+ msec: 2480
+ hash: "da86d21756025e7de8050586d5e2a1f8"
+ }
+ Frame {
+ msec: 2496
+ hash: "48dd1bd6580133b0793fee327ea4f1e6"
+ }
+ Frame {
+ msec: 2512
+ hash: "f0618193dcd0ba2837249515a1898b1c"
+ }
+ Frame {
+ msec: 2528
+ hash: "a530184e57251065286c0cbba7301e9c"
+ }
+ Frame {
+ msec: 2544
+ hash: "64a1d7203973d65dd342793007a61c58"
+ }
+ Frame {
+ msec: 2560
+ hash: "5b830dfc6ba442772de87d75d5a578de"
+ }
+ Frame {
+ msec: 2576
+ hash: "5563b056b0409b65f60dd16dd0dd890e"
+ }
+ Frame {
+ msec: 2592
+ hash: "b8bcf9ad2ca8720c11563a23d8280804"
+ }
+ Frame {
+ msec: 2608
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2624
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2640
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2656
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2672
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2688
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2704
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2720
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2736
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2752
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2768
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2784
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2800
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2816
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2832
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2848
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2864
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2880
+ image: "colorAnimation.2.png"
+ }
+ Frame {
+ msec: 2896
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2912
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2928
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2944
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2960
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2976
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 2992
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3008
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3024
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3040
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3056
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3072
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3088
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3104
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3120
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3136
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3152
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3168
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3184
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3200
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3216
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3232
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3248
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3264
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3280
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3296
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3312
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3328
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3344
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3360
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3376
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3392
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3408
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3424
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3440
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3456
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3472
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3488
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3504
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3520
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3536
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3552
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3568
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3584
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3600
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3616
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3632
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 67108864
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 3648
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3664
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+ Frame {
+ msec: 3680
+ hash: "8c0fcda4f8956394c53fc4ba18caa850"
+ }
+}
diff --git a/tests/auto/declarative/visual/easing/data/easing.0.png b/tests/auto/declarative/visual/easing/data/easing.0.png
new file mode 100644
index 0000000..2f1b5f6
--- /dev/null
+++ b/tests/auto/declarative/visual/easing/data/easing.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/easing/data/easing.1.png b/tests/auto/declarative/visual/easing/data/easing.1.png
new file mode 100644
index 0000000..59083bd
--- /dev/null
+++ b/tests/auto/declarative/visual/easing/data/easing.1.png
Binary files differ
diff --git a/tests/auto/declarative/visual/easing/data/easing.2.png b/tests/auto/declarative/visual/easing/data/easing.2.png
new file mode 100644
index 0000000..20c73c8
--- /dev/null
+++ b/tests/auto/declarative/visual/easing/data/easing.2.png
Binary files differ
diff --git a/tests/auto/declarative/visual/easing/data/easing.3.png b/tests/auto/declarative/visual/easing/data/easing.3.png
new file mode 100644
index 0000000..c68e0fa
--- /dev/null
+++ b/tests/auto/declarative/visual/easing/data/easing.3.png
Binary files differ
diff --git a/tests/auto/declarative/visual/easing/data/easing.qml b/tests/auto/declarative/visual/easing/data/easing.qml
new file mode 100644
index 0000000..d5beeef
--- /dev/null
+++ b/tests/auto/declarative/visual/easing/data/easing.qml
@@ -0,0 +1,779 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 32
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 48
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 64
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 80
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 96
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 112
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 128
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 144
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 160
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 176
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 192
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 208
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 224
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 240
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 256
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 272
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Mouse {
+ type: 2
+ button: 1
+ buttons: 1
+ x: 111; y: 419
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 288
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 304
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 320
+ hash: "8f4c40d2e2b4f064bcb77c5ae43928c6"
+ }
+ Frame {
+ msec: 336
+ hash: "8b65094a9b7d5394fc67f92ea058627f"
+ }
+ Frame {
+ msec: 352
+ hash: "da450826b471a60ba98dabc581631ba1"
+ }
+ Frame {
+ msec: 368
+ hash: "e820fb4f1bc97152aa940b07db549f1b"
+ }
+ Frame {
+ msec: 384
+ hash: "b7d8186beca2fa0e37099f72419350f4"
+ }
+ Frame {
+ msec: 400
+ hash: "8500b93774f214e5e4789e25500262b8"
+ }
+ Frame {
+ msec: 416
+ hash: "277e1dff70285cca536b3e1fc2590688"
+ }
+ Frame {
+ msec: 432
+ hash: "b05b18f92c2089c681661566117ae0f5"
+ }
+ Frame {
+ msec: 448
+ hash: "6fec9c6b6ac3e3ea4126e3824a8d7566"
+ }
+ Frame {
+ msec: 464
+ hash: "53c6c90dd1eb7ca47721fc116474aebf"
+ }
+ Frame {
+ msec: 480
+ hash: "cf729c4a31414af3d2705878ba615738"
+ }
+ Frame {
+ msec: 496
+ hash: "f146b8a68960d507f893ef001189220e"
+ }
+ Frame {
+ msec: 512
+ hash: "18ff56b870bb048af246f928ee42a9b0"
+ }
+ Frame {
+ msec: 528
+ hash: "beee98f73fe7e878ada37b3070fa0c1d"
+ }
+ Frame {
+ msec: 544
+ hash: "435d389082912950a0be2b5dff480319"
+ }
+ Frame {
+ msec: 560
+ hash: "dc39b080eaddeaf4e309b90b7d97a835"
+ }
+ Frame {
+ msec: 576
+ hash: "666b1cde53f78d7db9c81e21adbe406a"
+ }
+ Frame {
+ msec: 592
+ hash: "c5c9627f4329e48aa96ebfbc982b6ba6"
+ }
+ Frame {
+ msec: 608
+ hash: "a583042052e5da7e80a4956337d6d1ff"
+ }
+ Frame {
+ msec: 624
+ hash: "a4a5df787e15da6f28275a12898e7620"
+ }
+ Frame {
+ msec: 640
+ hash: "02cacec2ccc803ebc03c5540484cbcaa"
+ }
+ Frame {
+ msec: 656
+ hash: "00600df1f006f358feaf43bfae9d32a5"
+ }
+ Frame {
+ msec: 672
+ hash: "737c884ba0d6d38b66252f4b97a36c33"
+ }
+ Frame {
+ msec: 688
+ hash: "7eeeade8100c84a6b56efa51cf597baf"
+ }
+ Frame {
+ msec: 704
+ hash: "18ab79d495097f0103dcf14db1897a88"
+ }
+ Frame {
+ msec: 720
+ hash: "21d3b0da00c46a101e09048928cd8027"
+ }
+ Frame {
+ msec: 736
+ hash: "a5995b0341872c275ffbc5aaee6eb853"
+ }
+ Frame {
+ msec: 752
+ hash: "bb4a37c1bd5e412ebce54d9539017723"
+ }
+ Frame {
+ msec: 768
+ hash: "63dcde9e2751ca94ed7d739feb359221"
+ }
+ Frame {
+ msec: 784
+ hash: "5790c8407e2e4d1a6a937d86d57d8edb"
+ }
+ Frame {
+ msec: 800
+ hash: "3a1c77abf6822030db60a036027dc86e"
+ }
+ Frame {
+ msec: 816
+ hash: "2a13c573ab9846cce60384dd7138b2b4"
+ }
+ Frame {
+ msec: 832
+ hash: "98983c2525265830033495b61071a5aa"
+ }
+ Frame {
+ msec: 848
+ hash: "26d2bba3d77053b410715afb497d4063"
+ }
+ Frame {
+ msec: 864
+ hash: "fd65d954c16acee425d9de65af68ef40"
+ }
+ Frame {
+ msec: 880
+ hash: "094fcc18d28b19ac6b452dd8106d813b"
+ }
+ Frame {
+ msec: 896
+ hash: "160105f6f99a960763535e4d51990ef6"
+ }
+ Frame {
+ msec: 912
+ hash: "0d5d1e6a66fc1f49f1106f01fb5a1c52"
+ }
+ Frame {
+ msec: 928
+ hash: "f6abc32680865783a4d94ecb738f9ff6"
+ }
+ Frame {
+ msec: 944
+ hash: "350509eceb134d5b18647e5ad07dbb47"
+ }
+ Frame {
+ msec: 960
+ image: "/home/wallison/qt/kinetic/tests/auto/declarative/visual/easing/data/easing.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "4c9de74276d32c5b2787cf75e612f97d"
+ }
+ Frame {
+ msec: 992
+ hash: "efcc5ae79da3fa2f4c7d6eaa35e32d33"
+ }
+ Frame {
+ msec: 1008
+ hash: "ff4afce604c8ecb4f08d1ddef8552534"
+ }
+ Frame {
+ msec: 1024
+ hash: "e2e63e12e9a5f8459720dd8b023ed17b"
+ }
+ Frame {
+ msec: 1040
+ hash: "991a01f92bcfa9cd9fe98e3f39d192fc"
+ }
+ Frame {
+ msec: 1056
+ hash: "bc3d2f0f3fac650c981457f3694c2518"
+ }
+ Frame {
+ msec: 1072
+ hash: "ee39fc9b1a602bf813d9118aa21901ac"
+ }
+ Frame {
+ msec: 1088
+ hash: "42120d098f2adf1e331332b33442dd3e"
+ }
+ Frame {
+ msec: 1104
+ hash: "1660c69b77b800d1ab57b93f0fc12aa5"
+ }
+ Frame {
+ msec: 1120
+ hash: "0630a3d6b8cb5dece5dc660f05036ec6"
+ }
+ Frame {
+ msec: 1136
+ hash: "9163f0bd9c5888794d7a09d3359bf1e5"
+ }
+ Frame {
+ msec: 1152
+ hash: "e0b7ad4883f679948c852ff152ba7907"
+ }
+ Frame {
+ msec: 1168
+ hash: "f748fc44f99b706e42b899cb18dbaaf7"
+ }
+ Frame {
+ msec: 1184
+ hash: "c84442f0cb1cf0bb50dae7d1c701aaf8"
+ }
+ Frame {
+ msec: 1200
+ hash: "d7b41567e3f3aa9576fe2793872134b7"
+ }
+ Frame {
+ msec: 1216
+ hash: "a1d10ff1adb85000902486fc8e4faa8d"
+ }
+ Frame {
+ msec: 1232
+ hash: "44b7b5d77068e360ead3af84e7d80232"
+ }
+ Frame {
+ msec: 1248
+ hash: "486c0b19c1379d9eefdf575a085e2875"
+ }
+ Frame {
+ msec: 1264
+ hash: "1d474472856d4740d960eb2f788ca5a6"
+ }
+ Frame {
+ msec: 1280
+ hash: "c74082553ab0f4ee00f5044e3369580b"
+ }
+ Frame {
+ msec: 1296
+ hash: "89fcd5514f336075ad32cae69518c1e5"
+ }
+ Frame {
+ msec: 1312
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1328
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1344
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1360
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1376
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1392
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1408
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1424
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1440
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1456
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1472
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1488
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1504
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1520
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1536
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1552
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1568
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1584
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1600
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Mouse {
+ type: 3
+ button: 1
+ buttons: 0
+ x: 111; y: 419
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 1616
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1632
+ hash: "9dd235eb98998d9bdd92e01300297257"
+ }
+ Frame {
+ msec: 1648
+ hash: "b77240f32e83d4f332d815c626f1e560"
+ }
+ Frame {
+ msec: 1664
+ hash: "7d89669231224cf8e02d75338c37c278"
+ }
+ Frame {
+ msec: 1680
+ hash: "a8cf7c179011ee8187a8e1111683e52e"
+ }
+ Frame {
+ msec: 1696
+ hash: "3e87a57e05da09a8260801320431b922"
+ }
+ Frame {
+ msec: 1712
+ hash: "a2b0d99c8a232715fe03e8772a36634c"
+ }
+ Frame {
+ msec: 1728
+ hash: "5b4634cd495ae7bb9c69a5c9c346189e"
+ }
+ Frame {
+ msec: 1744
+ hash: "492f8f2b84af355ef41c1a7cda3a8a73"
+ }
+ Frame {
+ msec: 1760
+ hash: "88e4eb08520fb5acc3d88ac4f0900542"
+ }
+ Frame {
+ msec: 1776
+ hash: "0c09cdcb906b4ce9840fd7502c39e5b9"
+ }
+ Frame {
+ msec: 1792
+ hash: "b054083bdd212cc03167a90df2d7eac5"
+ }
+ Frame {
+ msec: 1808
+ hash: "83971c2d37616ab92680364d6ac288a6"
+ }
+ Frame {
+ msec: 1824
+ hash: "a73951d25e2cb7c1d04c88c86dfa0e4d"
+ }
+ Frame {
+ msec: 1840
+ hash: "31fc8b20302abac97e506c37a14bbb7e"
+ }
+ Frame {
+ msec: 1856
+ hash: "f760ccd7339e01a9423da7b592498291"
+ }
+ Frame {
+ msec: 1872
+ hash: "24dfcd5553f854908396de751fb15b88"
+ }
+ Frame {
+ msec: 1888
+ hash: "1daf38a6e6199f980e9494a3eb480047"
+ }
+ Frame {
+ msec: 1904
+ hash: "a39e2de1090209e5dbc8cc26577ec97d"
+ }
+ Frame {
+ msec: 1920
+ image: "/home/wallison/qt/kinetic/tests/auto/declarative/visual/easing/data/easing.1.png"
+ }
+ Frame {
+ msec: 1936
+ hash: "2d2ce71a074f045916a207044abd055a"
+ }
+ Frame {
+ msec: 1952
+ hash: "a19b0353604491f56f72be0d20d76955"
+ }
+ Frame {
+ msec: 1968
+ hash: "9a70f109eebfcede2311ef77ceb50a44"
+ }
+ Frame {
+ msec: 1984
+ hash: "7b28313d6860aeefd4a4e136d38d62f8"
+ }
+ Frame {
+ msec: 2000
+ hash: "95d84f38473159fe6b38f84ffe371714"
+ }
+ Frame {
+ msec: 2016
+ hash: "07f91261794edb0ac1fde9bb4ff36011"
+ }
+ Frame {
+ msec: 2032
+ hash: "f9a4a6b92a9c2d265688f1bfac18fa0a"
+ }
+ Frame {
+ msec: 2048
+ hash: "cdec7cc00380fde4f73be997a992251a"
+ }
+ Frame {
+ msec: 2064
+ hash: "a52b34f84e98fcd8babb1d39979fc9c7"
+ }
+ Frame {
+ msec: 2080
+ hash: "bf05b3c79a9616f2e6c33d348b30e0ba"
+ }
+ Frame {
+ msec: 2096
+ hash: "c5931785685b4f4854d3ddfff5dd5466"
+ }
+ Frame {
+ msec: 2112
+ hash: "bae163e02b860a9ca19d1bcb60ac1f8e"
+ }
+ Frame {
+ msec: 2128
+ hash: "a36295a1ebb35e538f8899ae3ae3b36a"
+ }
+ Frame {
+ msec: 2144
+ hash: "b6448d61803d9b2c05b438aa8ce8bcd5"
+ }
+ Frame {
+ msec: 2160
+ hash: "631bf4caff2d93ef96a426100ffc5b32"
+ }
+ Frame {
+ msec: 2176
+ hash: "a8777c84a03996493f719f5fcfc80d00"
+ }
+ Frame {
+ msec: 2192
+ hash: "86e1759df103ef776bb03f24941f49da"
+ }
+ Frame {
+ msec: 2208
+ hash: "01a790ea60adeaf368c66bd53aa8fcb3"
+ }
+ Frame {
+ msec: 2224
+ hash: "79e5aca8ef6b9764f7f99cdfb51222ae"
+ }
+ Frame {
+ msec: 2240
+ hash: "82d10cc01b9be4683c5aa76096bd462c"
+ }
+ Frame {
+ msec: 2256
+ hash: "95d961a92c597e432611947f7480796a"
+ }
+ Frame {
+ msec: 2272
+ hash: "e8ee89b5313c7e2c66741fe1c2090029"
+ }
+ Frame {
+ msec: 2288
+ hash: "2e3e8cf25dc1a3f09e7bf2a086f8e3bb"
+ }
+ Frame {
+ msec: 2304
+ hash: "68ca8ad381f48db23d2bc5da9da0c17a"
+ }
+ Frame {
+ msec: 2320
+ hash: "e29f2411667049e8fae6c080f61c5869"
+ }
+ Frame {
+ msec: 2336
+ hash: "5b0a6fadedf3024e8ecb7f2c73a2277d"
+ }
+ Frame {
+ msec: 2352
+ hash: "af2eac625ef1fd928093ccd60bc0058e"
+ }
+ Frame {
+ msec: 2368
+ hash: "8a1ff780ebdc9e416e60ea0940e8f2d6"
+ }
+ Frame {
+ msec: 2384
+ hash: "7eb316c51cfd8ad972b7040247a651eb"
+ }
+ Frame {
+ msec: 2400
+ hash: "1bac7075c10c87a69e71c3859f0db41d"
+ }
+ Frame {
+ msec: 2416
+ hash: "0f16f40567729065cf9ecfcc15395a7b"
+ }
+ Frame {
+ msec: 2432
+ hash: "719f4e776776f0db5c68ae7c6177e9b7"
+ }
+ Frame {
+ msec: 2448
+ hash: "75172dbf31fd8d706f54748c59099845"
+ }
+ Frame {
+ msec: 2464
+ hash: "d730b550e05167b05350e0e6636dd97d"
+ }
+ Frame {
+ msec: 2480
+ hash: "e1f33eb5f023d9d42a99f8bc23223c45"
+ }
+ Frame {
+ msec: 2496
+ hash: "8a4b0df5bed6c7be73c194ce2bb6a271"
+ }
+ Frame {
+ msec: 2512
+ hash: "44a9ea371f12d4ac3a569121a995ae16"
+ }
+ Frame {
+ msec: 2528
+ hash: "14747e2e9e072210b9d6db50b4f704a1"
+ }
+ Frame {
+ msec: 2544
+ hash: "eea52abf430f8cc1adc37e7180036584"
+ }
+ Frame {
+ msec: 2560
+ hash: "0a9f6b14bc02e929a45bf4ebb736f9d3"
+ }
+ Frame {
+ msec: 2576
+ hash: "a68a6eef0fc8754564c47c88b60d9a2a"
+ }
+ Frame {
+ msec: 2592
+ hash: "eeb469e2fbda131d83538055e88ecdf7"
+ }
+ Frame {
+ msec: 2608
+ hash: "0f7b673472050e807c9d935fde5afd83"
+ }
+ Frame {
+ msec: 2624
+ hash: "80c90cce66bdd2324ca98bc591c22b44"
+ }
+ Frame {
+ msec: 2640
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2656
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2672
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2688
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2704
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2720
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2736
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2752
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2768
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2784
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2800
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2816
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2832
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2848
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2864
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2880
+ image: "/home/wallison/qt/kinetic/tests/auto/declarative/visual/easing/data/easing.2.png"
+ }
+ Frame {
+ msec: 2896
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2912
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2928
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2944
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2960
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2976
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 2992
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 3008
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+ Frame {
+ msec: 3024
+ hash: "bb8e2ba14526dc5ad74f74e8ff3d96a5"
+ }
+}
diff --git a/tests/auto/declarative/visual/easing/easing.qml b/tests/auto/declarative/visual/easing/easing.qml
new file mode 100644
index 0000000..f81400b
--- /dev/null
+++ b/tests/auto/declarative/visual/easing/easing.qml
@@ -0,0 +1,193 @@
+import Qt 4.6
+
+Rectangle {
+ id: item
+ width: 600
+ height: layout.height
+ color: "white"
+ resources: [
+ ListModel {
+ id: easingtypes
+ ListElement {
+ type: "easeLinear"
+ }
+ ListElement {
+ type: "easeInQuad"
+ }
+ ListElement {
+ type: "easeOutQuad"
+ }
+ ListElement {
+ type: "easeInOutQuad"
+ }
+ ListElement {
+ type: "easeOutInQuad"
+ }
+ ListElement {
+ type: "easeInCubic"
+ }
+ ListElement {
+ type: "easeOutCubic"
+ }
+ ListElement {
+ type: "easeInOutCubic"
+ }
+ ListElement {
+ type: "easeOutInCubic"
+ }
+ ListElement {
+ type: "easeInQuart"
+ }
+ ListElement {
+ type: "easeOutQuart"
+ }
+ ListElement {
+ type: "easeInOutQuart"
+ }
+ ListElement {
+ type: "easeOutInQuart"
+ }
+ ListElement {
+ type: "easeInQuint"
+ }
+ ListElement {
+ type: "easeOutQuint"
+ }
+ ListElement {
+ type: "easeInOutQuint"
+ }
+ ListElement {
+ type: "easeOutInQuint"
+ }
+ ListElement {
+ type: "easeInSine"
+ }
+ ListElement {
+ type: "easeOutSine"
+ }
+ ListElement {
+ type: "easeInOutSine"
+ }
+ ListElement {
+ type: "easeOutInSine"
+ }
+ ListElement {
+ type: "easeInExpo"
+ }
+ ListElement {
+ type: "easeOutExpo"
+ }
+ ListElement {
+ type: "easeInOutExpo"
+ }
+ ListElement {
+ type: "easeOutInExpo"
+ }
+ ListElement {
+ type: "easeInCirc"
+ }
+ ListElement {
+ type: "easeOutCirc"
+ }
+ ListElement {
+ type: "easeInOutCirc"
+ }
+ ListElement {
+ type: "easeOutInCirc"
+ }
+ ListElement {
+ type: "easeInElastic"
+ }
+ ListElement {
+ type: "easeOutElastic"
+ }
+ ListElement {
+ type: "easeInOutElastic"
+ }
+ ListElement {
+ type: "easeOutInElastic"
+ }
+ ListElement {
+ type: "easeInBack"
+ }
+ ListElement {
+ type: "easeOutBack"
+ }
+ ListElement {
+ type: "easeInOutBack"
+ }
+ ListElement {
+ type: "easeOutInBack"
+ }
+ ListElement {
+ type: "easeOutBounce"
+ }
+ ListElement {
+ type: "easeInBounce"
+ }
+ ListElement {
+ type: "easeInOutBounce"
+ }
+ ListElement {
+ type: "easeOutInBounce"
+ }
+ }
+ ]
+ Column {
+ id: layout
+ anchors.left: item.left
+ anchors.right: item.right
+ Repeater {
+ model: easingtypes
+ Component {
+ Rectangle {
+ id: block
+ Text {
+ text: type
+ anchors.centerIn: parent
+ font.italic: true
+ color: index & 1 ? "black" : "white"
+ opacity: 0 // 1 for debugging
+ }
+ width: 120
+ height: 18
+ color: index & 1 ? "red" : "blue"
+ states: [
+ State {
+ name: "from"
+ when: !mouse.pressed
+ PropertyChanges {
+ target: block
+ x: 0
+ }
+ },
+ State {
+ name: "to"
+ when: mouse.pressed
+ PropertyChanges {
+ target: block
+ x: item.width-block.width
+ }
+ }
+ ]
+ transitions: [
+ Transition {
+ from: "*"
+ to: "to"
+ reversible: true
+ NumberAnimation {
+ properties: "x"
+ easing: type
+ duration: 1000
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ MouseRegion {
+ id: mouse
+ anchors.fill: layout
+ }
+}
diff --git a/tests/auto/declarative/visual/easing/pics/qtlogo.png b/tests/auto/declarative/visual/easing/pics/qtlogo.png
new file mode 100644
index 0000000..399bd0b
--- /dev/null
+++ b/tests/auto/declarative/visual/easing/pics/qtlogo.png
Binary files differ
diff --git a/tests/auto/declarative/visual/flickable/Day.qml b/tests/auto/declarative/visual/flickable/Day.qml
new file mode 100644
index 0000000..8416724
--- /dev/null
+++ b/tests/auto/declarative/visual/flickable/Day.qml
@@ -0,0 +1,26 @@
+import Qt 4.6
+
+Rectangle {
+ property string day
+
+ width: 200
+ height: 300
+ radius: 7
+ border.color: "black"
+ id: Page
+ Image {
+ x: 10
+ y: 10
+ source: "cork.jpg"
+ }
+ Text {
+ x: 20
+ y: 20
+ height: 40
+ font.pixelSize: 14
+ font.bold: true
+ text: day
+ style: "Outline"
+ styleColor: "#dedede"
+ }
+}
diff --git a/tests/auto/declarative/visual/flickable/cork.jpg b/tests/auto/declarative/visual/flickable/cork.jpg
new file mode 100644
index 0000000..6dc3a3f
--- /dev/null
+++ b/tests/auto/declarative/visual/flickable/cork.jpg
Binary files differ
diff --git a/tests/auto/declarative/visual/flickable/data-X11/flickable.0.png b/tests/auto/declarative/visual/flickable/data-X11/flickable.0.png
new file mode 100644
index 0000000..5da2f2a
--- /dev/null
+++ b/tests/auto/declarative/visual/flickable/data-X11/flickable.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/flickable/data-X11/flickable.1.png b/tests/auto/declarative/visual/flickable/data-X11/flickable.1.png
new file mode 100644
index 0000000..1c33ca6
--- /dev/null
+++ b/tests/auto/declarative/visual/flickable/data-X11/flickable.1.png
Binary files differ
diff --git a/tests/auto/declarative/visual/flickable/data-X11/flickable.2.png b/tests/auto/declarative/visual/flickable/data-X11/flickable.2.png
new file mode 100644
index 0000000..67cdf8f
--- /dev/null
+++ b/tests/auto/declarative/visual/flickable/data-X11/flickable.2.png
Binary files differ
diff --git a/tests/auto/declarative/visual/flickable/data-X11/flickable.qml b/tests/auto/declarative/visual/flickable/data-X11/flickable.qml
new file mode 100644
index 0000000..6a60409
--- /dev/null
+++ b/tests/auto/declarative/visual/flickable/data-X11/flickable.qml
@@ -0,0 +1,791 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 32
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 48
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 64
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 80
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 96
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 112
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 128
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 144
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 160
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 176
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 192
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 208
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 224
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 240
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 256
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 272
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 288
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 304
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 320
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 336
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 352
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 368
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 384
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 400
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 416
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 432
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 448
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 464
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 480
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 496
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 512
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 528
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 544
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 560
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 576
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 592
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 608
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 624
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 640
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 656
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 672
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 688
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 704
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Frame {
+ msec: 720
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Mouse {
+ type: 2
+ button: 1
+ buttons: 1
+ x: 517; y: 154
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 736
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Mouse {
+ type: 5
+ button: 1
+ buttons: 1
+ x: 514; y: 154
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 752
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Mouse {
+ type: 5
+ button: 1
+ buttons: 1
+ x: 509; y: 155
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 768
+ hash: "2a07f4ab51ed6ac07c2efecfd561cdff"
+ }
+ Mouse {
+ type: 5
+ button: 1
+ buttons: 1
+ x: 497; y: 155
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 784
+ hash: "4f30ebc802a38cd4ad05018b6bc429a4"
+ }
+ Mouse {
+ type: 5
+ button: 1
+ buttons: 1
+ x: 480; y: 155
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 800
+ hash: "8d2e349b2aad07d98f11a30a33a5b409"
+ }
+ Mouse {
+ type: 5
+ button: 1
+ buttons: 1
+ x: 443; y: 155
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 816
+ hash: "09647796906da54345fffa18eb1b1f91"
+ }
+ Mouse {
+ type: 3
+ button: 1
+ buttons: 0
+ x: 443; y: 155
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 832
+ hash: "09647796906da54345fffa18eb1b1f91"
+ }
+ Frame {
+ msec: 848
+ hash: "4a7dd2931129756437e38b3516474aa1"
+ }
+ Frame {
+ msec: 864
+ hash: "bbec3d9d7ca38599b03e44ed3c2b68b6"
+ }
+ Frame {
+ msec: 880
+ hash: "07214f888dba9ea84eae306cf92a0f7f"
+ }
+ Frame {
+ msec: 896
+ hash: "0feac7c874f8caf11db319c13ed2250e"
+ }
+ Frame {
+ msec: 912
+ hash: "7de76db129b4e9d17836d17fff687b99"
+ }
+ Frame {
+ msec: 928
+ hash: "7f3414d54148afd7b01ed0fe54b60ba2"
+ }
+ Frame {
+ msec: 944
+ hash: "692cde1197a0f37bee5a4e57160bff8b"
+ }
+ Frame {
+ msec: 960
+ image: "flickable.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "d0b879cb63d003c0fd00c14160e7d1a4"
+ }
+ Frame {
+ msec: 992
+ hash: "9a0879e4e9b23ad3c9340d7c28eb6386"
+ }
+ Frame {
+ msec: 1008
+ hash: "2b6f4cb48284a835f77bc6368566c187"
+ }
+ Frame {
+ msec: 1024
+ hash: "53c094e3aa4f841195b2ce4e0fa34fae"
+ }
+ Frame {
+ msec: 1040
+ hash: "3ef7530199a136d339adf677cf98f035"
+ }
+ Frame {
+ msec: 1056
+ hash: "1a707788b43773ffa05d0ad88e6f156d"
+ }
+ Frame {
+ msec: 1072
+ hash: "e51dc6702e59c68e6a34f4a8f6c5b5c5"
+ }
+ Frame {
+ msec: 1088
+ hash: "1fe6d9b517ad1b9aaf16d005577ab45d"
+ }
+ Frame {
+ msec: 1104
+ hash: "fac02bdb63d4aa7749a66f6aa91a7035"
+ }
+ Frame {
+ msec: 1120
+ hash: "4bad8d93cee30c76a4b263981adc0c2f"
+ }
+ Frame {
+ msec: 1136
+ hash: "8bcee1ab8a1ab66b22d59d975a265906"
+ }
+ Frame {
+ msec: 1152
+ hash: "a68fa84e32d4ba44d4d53b476505ff6e"
+ }
+ Frame {
+ msec: 1168
+ hash: "d7258071d6673ef22a8836a8fdc6c5a6"
+ }
+ Frame {
+ msec: 1184
+ hash: "c708f62342663a4a879c86cd97448b75"
+ }
+ Frame {
+ msec: 1200
+ hash: "2e28d213283f4791d051177f468d9246"
+ }
+ Frame {
+ msec: 1216
+ hash: "beb36da1d54eedc62b65c47ba7c43f59"
+ }
+ Frame {
+ msec: 1232
+ hash: "2cea7b5571c563a709e211fbb5684a9d"
+ }
+ Frame {
+ msec: 1248
+ hash: "9ef0bafe8a9d52bc2fb7732c02ea9304"
+ }
+ Frame {
+ msec: 1264
+ hash: "7a489611578c9590aaf1b85763d8ae2c"
+ }
+ Frame {
+ msec: 1280
+ hash: "31b8e33b788821922d6d437f40c7811c"
+ }
+ Frame {
+ msec: 1296
+ hash: "421ae01b4d757996aefb35641f167c2d"
+ }
+ Frame {
+ msec: 1312
+ hash: "175c93fde4cb520881802a57bf10be5f"
+ }
+ Frame {
+ msec: 1328
+ hash: "11602a6ca746c83c857524eafc4d9570"
+ }
+ Frame {
+ msec: 1344
+ hash: "4f10b74a1bb8d65f3d371cc613a1641a"
+ }
+ Frame {
+ msec: 1360
+ hash: "d8505ce7ad73683817ed4e3a7f3ab610"
+ }
+ Frame {
+ msec: 1376
+ hash: "a800684370e06817e1a2a34ceb2fc651"
+ }
+ Frame {
+ msec: 1392
+ hash: "267e184af16c63eefe290c6659917b34"
+ }
+ Frame {
+ msec: 1408
+ hash: "354c5b04c0ed2288c23064debb4e261e"
+ }
+ Frame {
+ msec: 1424
+ hash: "67d300a0f15f0642c4ba0c8bd7662c01"
+ }
+ Frame {
+ msec: 1440
+ hash: "2fe12d1625140c2da1f0af17e1bf548b"
+ }
+ Frame {
+ msec: 1456
+ hash: "fef2140a272d78f5c0e93ec3a4c6e6c9"
+ }
+ Frame {
+ msec: 1472
+ hash: "b9331a586bad1619e51794bc66bf36fc"
+ }
+ Frame {
+ msec: 1488
+ hash: "8ba04c015ca8c150e0bbb09769955b5d"
+ }
+ Frame {
+ msec: 1504
+ hash: "09f573e1465533e67fa0d504e5481c8b"
+ }
+ Frame {
+ msec: 1520
+ hash: "fe3e919aa08ddd51ee7b81ef405b10f4"
+ }
+ Frame {
+ msec: 1536
+ hash: "e5d85427a2e02dd83d2932205e7aa6ac"
+ }
+ Frame {
+ msec: 1552
+ hash: "4e97fda26cbb0273dd69e50cf134a147"
+ }
+ Frame {
+ msec: 1568
+ hash: "7e13b494b5397b747eb6065f7555acce"
+ }
+ Frame {
+ msec: 1584
+ hash: "fe9567c08f776bed903a74c9c21a18bb"
+ }
+ Frame {
+ msec: 1600
+ hash: "086dd974228d51513e732c96c69dd07f"
+ }
+ Frame {
+ msec: 1616
+ hash: "b43d5b4f44df55b1099c7ba339df1799"
+ }
+ Frame {
+ msec: 1632
+ hash: "ce0e82fc42ff0017b40278e323682348"
+ }
+ Frame {
+ msec: 1648
+ hash: "e28b9cee2047774d70df6510c83e9dfe"
+ }
+ Frame {
+ msec: 1664
+ hash: "568d97ff98ac2d867981eb7330b831b1"
+ }
+ Frame {
+ msec: 1680
+ hash: "10f38a5f95a91bc7380a13f5aa30f22f"
+ }
+ Frame {
+ msec: 1696
+ hash: "2f9ec9b1843f2970fa8225f313781404"
+ }
+ Frame {
+ msec: 1712
+ hash: "bdd8405a889ff9a6e33cce65416bdc43"
+ }
+ Frame {
+ msec: 1728
+ hash: "9f57f8460ade9e6ff3db7a0a8d044f07"
+ }
+ Frame {
+ msec: 1744
+ hash: "36d1e95a006c00b183b24a05c2acf12f"
+ }
+ Frame {
+ msec: 1760
+ hash: "78d7f8b056c0341b442c0eabbf6da90b"
+ }
+ Frame {
+ msec: 1776
+ hash: "f5786d9a77a28796908fcb376af2cc1f"
+ }
+ Frame {
+ msec: 1792
+ hash: "38cfaf7a356163f8ff9708ba625907b7"
+ }
+ Frame {
+ msec: 1808
+ hash: "989922a8c5e3c000811a994bfe183d7f"
+ }
+ Frame {
+ msec: 1824
+ hash: "989922a8c5e3c000811a994bfe183d7f"
+ }
+ Frame {
+ msec: 1840
+ hash: "989922a8c5e3c000811a994bfe183d7f"
+ }
+ Frame {
+ msec: 1856
+ hash: "f5786d9a77a28796908fcb376af2cc1f"
+ }
+ Frame {
+ msec: 1872
+ hash: "014cfc6573eb0a89acacd6f154098202"
+ }
+ Frame {
+ msec: 1888
+ hash: "247fead2e4139421cb6e5f7a97fa1768"
+ }
+ Frame {
+ msec: 1904
+ hash: "bdd8405a889ff9a6e33cce65416bdc43"
+ }
+ Frame {
+ msec: 1920
+ image: "flickable.1.png"
+ }
+ Frame {
+ msec: 1936
+ hash: "d64f65edf900912158634c88b5c0b5ca"
+ }
+ Frame {
+ msec: 1952
+ hash: "d714183774f603269335b0675e0656f8"
+ }
+ Frame {
+ msec: 1968
+ hash: "24f9e90f7789a7c5db65d59312d49fe1"
+ }
+ Frame {
+ msec: 1984
+ hash: "ce0e82fc42ff0017b40278e323682348"
+ }
+ Frame {
+ msec: 2000
+ hash: "f564293ff63ccc952597ac228c6437dc"
+ }
+ Frame {
+ msec: 2016
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2032
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2048
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2064
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2080
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2096
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2112
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2128
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2144
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2160
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2176
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2192
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2208
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2224
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2240
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2256
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2272
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2288
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2304
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2320
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2336
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2352
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2368
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2384
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2400
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2416
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2432
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2448
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2464
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2480
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2496
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2512
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2528
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2544
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2560
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2576
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2592
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2608
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2624
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2640
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2656
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2672
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2688
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2704
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2720
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2736
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2752
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2768
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2784
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2800
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2816
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 0
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2832
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2848
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2864
+ hash: "555d97eac7e8b06cb81f4af74098ce65"
+ }
+ Frame {
+ msec: 2880
+ image: "flickable.2.png"
+ }
+}
diff --git a/tests/auto/declarative/visual/flickable/data/flickable.0.png b/tests/auto/declarative/visual/flickable/data/flickable.0.png
new file mode 100644
index 0000000..b7ddf5a
--- /dev/null
+++ b/tests/auto/declarative/visual/flickable/data/flickable.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/flickable/data/flickable.1.png b/tests/auto/declarative/visual/flickable/data/flickable.1.png
new file mode 100644
index 0000000..ef48b85
--- /dev/null
+++ b/tests/auto/declarative/visual/flickable/data/flickable.1.png
Binary files differ
diff --git a/tests/auto/declarative/visual/flickable/data/flickable.2.png b/tests/auto/declarative/visual/flickable/data/flickable.2.png
new file mode 100644
index 0000000..60c357b
--- /dev/null
+++ b/tests/auto/declarative/visual/flickable/data/flickable.2.png
Binary files differ
diff --git a/tests/auto/declarative/visual/flickable/data/flickable.qml b/tests/auto/declarative/visual/flickable/data/flickable.qml
new file mode 100644
index 0000000..730c128
--- /dev/null
+++ b/tests/auto/declarative/visual/flickable/data/flickable.qml
@@ -0,0 +1,791 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 32
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 48
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 64
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 80
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 96
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 112
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 128
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 144
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 160
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 176
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 192
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 208
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 224
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 240
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 256
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 272
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 288
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 304
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 320
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 336
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 352
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 368
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 384
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 400
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 416
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 432
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 448
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 464
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 480
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 496
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 512
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 528
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 544
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 560
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 576
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 592
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 608
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 624
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 640
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 656
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 672
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 688
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 704
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Frame {
+ msec: 720
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Mouse {
+ type: 2
+ button: 1
+ buttons: 1
+ x: 517; y: 154
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 736
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Mouse {
+ type: 5
+ button: 1
+ buttons: 1
+ x: 514; y: 154
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 752
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Mouse {
+ type: 5
+ button: 1
+ buttons: 1
+ x: 509; y: 155
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 768
+ hash: "eceae327c367ccc69c5133d027df77c2"
+ }
+ Mouse {
+ type: 5
+ button: 1
+ buttons: 1
+ x: 497; y: 155
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 784
+ hash: "6a0f0d49abe4b5c2f3347bb0912c46bd"
+ }
+ Mouse {
+ type: 5
+ button: 1
+ buttons: 1
+ x: 480; y: 155
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 800
+ hash: "c7c13b23ac20eaee2a0fca45a03495d3"
+ }
+ Mouse {
+ type: 5
+ button: 1
+ buttons: 1
+ x: 443; y: 155
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 816
+ hash: "50559226ce0e0d94d330f34b0dfdaf48"
+ }
+ Mouse {
+ type: 3
+ button: 1
+ buttons: 0
+ x: 443; y: 155
+ modifiers: 0
+ sendToViewport: true
+ }
+ Frame {
+ msec: 832
+ hash: "50559226ce0e0d94d330f34b0dfdaf48"
+ }
+ Frame {
+ msec: 848
+ hash: "dda302c698e909c7bf4cffdedf68fffb"
+ }
+ Frame {
+ msec: 864
+ hash: "d2ef86c4e840e22f27b9d5806d2685c1"
+ }
+ Frame {
+ msec: 880
+ hash: "6a38ab0c8e4e6687b1922d1ab30c5193"
+ }
+ Frame {
+ msec: 896
+ hash: "ddec5e9353017ae5d12f3efb9a15327c"
+ }
+ Frame {
+ msec: 912
+ hash: "e383591b6ce172ef86e2f1a90c5988db"
+ }
+ Frame {
+ msec: 928
+ hash: "3cd848d258775f50cbb668490b7cebf6"
+ }
+ Frame {
+ msec: 944
+ hash: "348f9bb0282edbe99947e72f234c0c72"
+ }
+ Frame {
+ msec: 960
+ image: "flickable.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "f7744a4f78b6791ce5f5184834f1798e"
+ }
+ Frame {
+ msec: 992
+ hash: "c4014a38bf59218e0673519c5bab0f74"
+ }
+ Frame {
+ msec: 1008
+ hash: "2a6b3d050b0f854b8f71d77b58dd9d8f"
+ }
+ Frame {
+ msec: 1024
+ hash: "30f25f6dcbad9e495d869943a8d83eee"
+ }
+ Frame {
+ msec: 1040
+ hash: "b5d6d395c94a19e9776ff1162c64993f"
+ }
+ Frame {
+ msec: 1056
+ hash: "2ce75b60f41f4b6b0c421788effd4be8"
+ }
+ Frame {
+ msec: 1072
+ hash: "cda31ad2f65d7d6cc1c9974748243904"
+ }
+ Frame {
+ msec: 1088
+ hash: "ffa1e5a479e60304570d89465e8898b1"
+ }
+ Frame {
+ msec: 1104
+ hash: "d8c984c1e00056cdfd1814f96fc04125"
+ }
+ Frame {
+ msec: 1120
+ hash: "0e855b0616b1c837c22ea34bbff76f10"
+ }
+ Frame {
+ msec: 1136
+ hash: "d2189d6dc8f635f9df5889e6825d11fc"
+ }
+ Frame {
+ msec: 1152
+ hash: "4086f2213831f0c616e7e02f58b17c46"
+ }
+ Frame {
+ msec: 1168
+ hash: "40b216eb2b7a0025123fa2374215644a"
+ }
+ Frame {
+ msec: 1184
+ hash: "236edf2f7da209cb5bf3efe334977e7f"
+ }
+ Frame {
+ msec: 1200
+ hash: "c2a9242b261988b58e58dc764aac7fca"
+ }
+ Frame {
+ msec: 1216
+ hash: "a6b707c16d0b72552403a518a27e40c8"
+ }
+ Frame {
+ msec: 1232
+ hash: "e0800659c30618417c56e5a8b6de0eeb"
+ }
+ Frame {
+ msec: 1248
+ hash: "3006d6af221e50eef60f67cc32d45e30"
+ }
+ Frame {
+ msec: 1264
+ hash: "7deab264af55709f25d22a10a83f2595"
+ }
+ Frame {
+ msec: 1280
+ hash: "11e2c733f48c02e8b1c66c0e9cc7f4b0"
+ }
+ Frame {
+ msec: 1296
+ hash: "a1242c3ea085838371fa1f31e11b4cc4"
+ }
+ Frame {
+ msec: 1312
+ hash: "3cba18358c3db55a585095733a914b31"
+ }
+ Frame {
+ msec: 1328
+ hash: "45dde70b0436f365f1711005321fbc1a"
+ }
+ Frame {
+ msec: 1344
+ hash: "29a9c57bb78c41e89d5db19b54a4f760"
+ }
+ Frame {
+ msec: 1360
+ hash: "3ec8e579f2ee49da0bf384f4b688e70e"
+ }
+ Frame {
+ msec: 1376
+ hash: "e6b7d3147b213ed2cddc81ee784b275b"
+ }
+ Frame {
+ msec: 1392
+ hash: "77a82e5d657b32b6f7f1681139c83b83"
+ }
+ Frame {
+ msec: 1408
+ hash: "623bcf513f95f6ca3052dc6f1fb13fb5"
+ }
+ Frame {
+ msec: 1424
+ hash: "d10b5fac984040899790273cd9246f71"
+ }
+ Frame {
+ msec: 1440
+ hash: "7b48417ae3627fed645b804ea24b376a"
+ }
+ Frame {
+ msec: 1456
+ hash: "5e5eb1fdc7fdf34f3df46b187544b9d5"
+ }
+ Frame {
+ msec: 1472
+ hash: "e4f08871f3dcb355c267fc27654c5704"
+ }
+ Frame {
+ msec: 1488
+ hash: "e8d82fee9fb5b2bb2fd6149a12947ea6"
+ }
+ Frame {
+ msec: 1504
+ hash: "a54e845480bed6b16c120a59a2bb07c3"
+ }
+ Frame {
+ msec: 1520
+ hash: "a96ae1a5ca2d04d7b330c4e1d5e2594a"
+ }
+ Frame {
+ msec: 1536
+ hash: "d1a4c4b1864581bad005392dd3c54d8a"
+ }
+ Frame {
+ msec: 1552
+ hash: "5bd3ae538de83151f90a40c800c081a5"
+ }
+ Frame {
+ msec: 1568
+ hash: "be5adfb11a6ad52d432fb96c0526d2ee"
+ }
+ Frame {
+ msec: 1584
+ hash: "2ea08dda212fa9839e0183d2b742c64f"
+ }
+ Frame {
+ msec: 1600
+ hash: "ba0d9014b7e30a49c51196807809368b"
+ }
+ Frame {
+ msec: 1616
+ hash: "e6cfdc4688cc7e49842a58bc39a6a1b3"
+ }
+ Frame {
+ msec: 1632
+ hash: "3aca4ba1d6bd38cdc278ff5d19e37693"
+ }
+ Frame {
+ msec: 1648
+ hash: "41acb4e8cddfa8371446bef580d420b4"
+ }
+ Frame {
+ msec: 1664
+ hash: "4860e0bf80bfd01b9e7e1d3b11152ac4"
+ }
+ Frame {
+ msec: 1680
+ hash: "85806f7e41725a35cb20b3ca07a2b3be"
+ }
+ Frame {
+ msec: 1696
+ hash: "07a0af6f784b91838d1ed23c326c29ce"
+ }
+ Frame {
+ msec: 1712
+ hash: "d4d0c0e65861dbce8992d714f5b18f0b"
+ }
+ Frame {
+ msec: 1728
+ hash: "ebcc280d376fed1bb45588992ad777e3"
+ }
+ Frame {
+ msec: 1744
+ hash: "2d8c183189c0a9234d6ff1e663503853"
+ }
+ Frame {
+ msec: 1760
+ hash: "5e3bec7de667175a7bd89aa5eb704003"
+ }
+ Frame {
+ msec: 1776
+ hash: "709b890b1939261377537f7bddb45a60"
+ }
+ Frame {
+ msec: 1792
+ hash: "c95dfd0259048e27a98b4676957e5183"
+ }
+ Frame {
+ msec: 1808
+ hash: "bfff5f9e90e280a3684f46967e8cb73f"
+ }
+ Frame {
+ msec: 1824
+ hash: "bfff5f9e90e280a3684f46967e8cb73f"
+ }
+ Frame {
+ msec: 1840
+ hash: "bfff5f9e90e280a3684f46967e8cb73f"
+ }
+ Frame {
+ msec: 1856
+ hash: "709b890b1939261377537f7bddb45a60"
+ }
+ Frame {
+ msec: 1872
+ hash: "a7ca5f1053393486cf48d5a83d89d1a7"
+ }
+ Frame {
+ msec: 1888
+ hash: "d9c34a6fe59ed8f9ff7b792301f80f52"
+ }
+ Frame {
+ msec: 1904
+ hash: "d4d0c0e65861dbce8992d714f5b18f0b"
+ }
+ Frame {
+ msec: 1920
+ image: "flickable.1.png"
+ }
+ Frame {
+ msec: 1936
+ hash: "cc7228edac6583cab5b186cd9bbb2233"
+ }
+ Frame {
+ msec: 1952
+ hash: "6a6af6de32f68f85c902140bc40071d3"
+ }
+ Frame {
+ msec: 1968
+ hash: "43b6b548eb145f79fa655c270abaac32"
+ }
+ Frame {
+ msec: 1984
+ hash: "3aca4ba1d6bd38cdc278ff5d19e37693"
+ }
+ Frame {
+ msec: 2000
+ hash: "184e42b2bcc0e5cf354dc92acdc23cef"
+ }
+ Frame {
+ msec: 2016
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2032
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2048
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2064
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2080
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2096
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2112
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2128
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2144
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2160
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2176
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2192
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2208
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2224
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2240
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2256
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2272
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2288
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2304
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2320
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2336
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2352
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2368
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2384
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2400
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2416
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2432
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2448
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2464
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2480
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2496
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2512
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2528
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2544
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2560
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2576
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2592
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2608
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2624
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2640
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2656
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2672
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2688
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2704
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2720
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2736
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2752
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2768
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2784
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2800
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2816
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 67108864
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2832
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2848
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2864
+ hash: "ca3d2b3643a5c682253a5f6d9a4d7bc6"
+ }
+ Frame {
+ msec: 2880
+ image: "flickable.2.png"
+ }
+}
diff --git a/tests/auto/declarative/visual/flickable/flickable.qml b/tests/auto/declarative/visual/flickable/flickable.qml
new file mode 100644
index 0000000..42bd5b3
--- /dev/null
+++ b/tests/auto/declarative/visual/flickable/flickable.qml
@@ -0,0 +1,55 @@
+import Qt 4.6
+
+Rectangle {
+ color: "lightSteelBlue"
+ width: 600
+ height: 300
+ ListModel {
+ id: List
+ ListElement {
+ name: "Sunday"
+ dayColor: "#808080"
+ }
+ ListElement {
+ name: "Monday"
+ dayColor: "blue"
+ }
+ ListElement {
+ name: "Tuesday"
+ dayColor: "yellow"
+ }
+ ListElement {
+ name: "Wednesday"
+ dayColor: "purple"
+ }
+ ListElement {
+ name: "Thursday"
+ dayColor: "blue"
+ }
+ ListElement {
+ name: "Friday"
+ dayColor: "green"
+ }
+ ListElement {
+ name: "Saturday"
+ dayColor: "orange"
+ }
+ }
+ Flickable {
+ id: Flick
+ anchors.fill: parent
+ viewportWidth: Lay.width
+ Row {
+ id: Lay
+ Repeater {
+ model: List
+ Component {
+ Day {
+ day: name
+ color: dayColor
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test.0.png b/tests/auto/declarative/visual/focusscope/data-X11/test.0.png
new file mode 100644
index 0000000..d0fb8a0
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test.1.png b/tests/auto/declarative/visual/focusscope/data-X11/test.1.png
new file mode 100644
index 0000000..d0fb8a0
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test.1.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test.2.png b/tests/auto/declarative/visual/focusscope/data-X11/test.2.png
new file mode 100644
index 0000000..f25f27c
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test.2.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test.3.png b/tests/auto/declarative/visual/focusscope/data-X11/test.3.png
new file mode 100644
index 0000000..74a9b3f
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test.3.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test.4.png b/tests/auto/declarative/visual/focusscope/data-X11/test.4.png
new file mode 100644
index 0000000..74a9b3f
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test.4.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test.5.png b/tests/auto/declarative/visual/focusscope/data-X11/test.5.png
new file mode 100644
index 0000000..74a9b3f
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test.5.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test.qml b/tests/auto/declarative/visual/focusscope/data-X11/test.qml
new file mode 100644
index 0000000..5c66034
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test.qml
@@ -0,0 +1,1599 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 32
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 48
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 64
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 80
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 96
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 112
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 128
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 144
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 160
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 176
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 192
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 208
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 224
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 240
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 256
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 272
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 288
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 304
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 320
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 336
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 352
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 368
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 384
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 400
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 416
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 432
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 448
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 464
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 480
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 496
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 512
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 528
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 544
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 560
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 576
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 592
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 608
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 624
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 640
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 656
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 672
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 688
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 704
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 720
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 736
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 752
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 768
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 784
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 800
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 816
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 832
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 848
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 864
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 880
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 896
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 912
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 928
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 944
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 960
+ image: "test.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 992
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1008
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1024
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1040
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1056
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1072
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1088
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1104
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1120
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1136
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1152
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1168
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1184
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1200
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1216
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1232
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1248
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1264
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1280
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1296
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1312
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1328
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1344
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1360
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1376
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1392
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1408
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1424
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1440
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1456
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1472
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1488
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1504
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1520
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1536
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1552
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1568
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1584
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1600
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1616
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1632
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1648
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1664
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1680
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1696
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1712
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1728
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1744
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1760
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1776
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1792
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 1808
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Key {
+ type: 6
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1824
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1840
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1856
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1872
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1888
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1904
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1920
+ image: "test.1.png"
+ }
+ Frame {
+ msec: 1936
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1952
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Key {
+ type: 7
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1968
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 1984
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2000
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2016
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2032
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2048
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2064
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2080
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2096
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2112
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2128
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2144
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2160
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2176
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2192
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2208
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2224
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2240
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2256
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2272
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2288
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2304
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2320
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2336
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 2352
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Key {
+ type: 6
+ key: 16777237
+ modifiers: 536870912
+ text: "1f"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2368
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2384
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2400
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2416
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2432
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2448
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2464
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Key {
+ type: 7
+ key: 16777237
+ modifiers: 536870912
+ text: "1f"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2480
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2496
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2512
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2528
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2544
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2560
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2576
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2592
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2608
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2624
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2640
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2656
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2672
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2688
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2704
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2720
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2736
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2752
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2768
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2784
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2800
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2816
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2832
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2848
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2864
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2880
+ image: "test.2.png"
+ }
+ Frame {
+ msec: 2896
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2912
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2928
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2944
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2960
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 2976
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Key {
+ type: 6
+ key: 16777235
+ modifiers: 536870912
+ text: "1e"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2992
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3008
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3024
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3040
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3056
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3072
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3088
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Key {
+ type: 7
+ key: 16777235
+ modifiers: 536870912
+ text: "1e"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 3104
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3120
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3136
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3152
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3168
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3184
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3200
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3216
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3232
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3248
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3264
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3280
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3296
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3312
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3328
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3344
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3360
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3376
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3392
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3408
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3424
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3440
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3456
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3472
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3488
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3504
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3520
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Frame {
+ msec: 3536
+ hash: "e608f3483071562580bf492da25a4104"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 3552
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3568
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3584
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3600
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3616
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3632
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3648
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 3664
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3680
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3696
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3712
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3728
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3744
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3760
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3776
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3792
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3808
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3824
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3840
+ image: "test.3.png"
+ }
+ Frame {
+ msec: 3856
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3872
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3888
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3904
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3920
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3936
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3952
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3968
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 3984
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4000
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4016
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4032
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4048
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4064
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4080
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4096
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4112
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4128
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4144
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4160
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4176
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Key {
+ type: 6
+ key: 16777237
+ modifiers: 536870912
+ text: "1f"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 4192
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4208
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4224
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4240
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4256
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4272
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Key {
+ type: 7
+ key: 16777237
+ modifiers: 536870912
+ text: "1f"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 4288
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4304
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4320
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4336
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4352
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4368
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4384
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4400
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4416
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4432
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4448
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4464
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4480
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4496
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4512
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4528
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4544
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4560
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4576
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4592
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4608
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4624
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4640
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4656
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4672
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4688
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4704
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4720
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4736
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4752
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4768
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Frame {
+ msec: 4784
+ hash: "231a20ad55d5ba3be9baf46a80ec86f4"
+ }
+ Key {
+ type: 6
+ key: 16777235
+ modifiers: 536870912
+ text: "1e"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 4800
+ image: "test.4.png"
+ }
+ Frame {
+ msec: 4816
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4832
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4848
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4864
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4880
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4896
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Key {
+ type: 7
+ key: 16777235
+ modifiers: 536870912
+ text: "1e"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 4912
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4928
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4944
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4960
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4976
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 4992
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5008
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5024
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5040
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5056
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5072
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5088
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5104
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5120
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5136
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5152
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5168
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5184
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5200
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5216
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5232
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5248
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5264
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5280
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5296
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5312
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5328
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5344
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5360
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5376
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5392
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5408
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5424
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5440
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5456
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5472
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5488
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5504
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5520
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5536
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5552
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5568
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5584
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5600
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5616
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5632
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5648
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5664
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5680
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5696
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5712
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5728
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5744
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5760
+ image: "test.5.png"
+ }
+ Frame {
+ msec: 5776
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5792
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 0
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 5808
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5824
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5840
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5856
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5872
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+ Frame {
+ msec: 5888
+ hash: "383edfe8be8621d456162cc1cd88ae1a"
+ }
+}
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test2.0.png b/tests/auto/declarative/visual/focusscope/data-X11/test2.0.png
new file mode 100644
index 0000000..6be7aef
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test2.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test2.1.png b/tests/auto/declarative/visual/focusscope/data-X11/test2.1.png
new file mode 100644
index 0000000..6be7aef
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test2.1.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test2.qml b/tests/auto/declarative/visual/focusscope/data-X11/test2.qml
new file mode 100644
index 0000000..7170907
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test2.qml
@@ -0,0 +1,607 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 32
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 48
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 64
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 80
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 96
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 112
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 128
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 144
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 160
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 176
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 192
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 208
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 224
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 240
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 256
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 272
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 288
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 304
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 320
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 336
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 352
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 368
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 384
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 400
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 416
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 432
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 448
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 464
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 480
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 496
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 512
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 528
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 544
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 560
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 576
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 592
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 608
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 624
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 640
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 656
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 672
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 688
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 704
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 720
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 736
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 752
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 768
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 784
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 800
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 816
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 832
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 848
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 864
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 880
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 896
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 912
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 928
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 944
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 960
+ image: "test2.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 992
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1008
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1024
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1040
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1056
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1072
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1088
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1104
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1120
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1136
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1152
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1168
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1184
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1200
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1216
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1232
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1248
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1264
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1280
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1296
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1312
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1328
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1344
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1360
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1376
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1392
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1408
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1424
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1440
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1456
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1472
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1488
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1504
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1520
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1536
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1552
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1568
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1584
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1600
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1616
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1632
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1648
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1664
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1680
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1696
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1712
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1728
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1744
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1760
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1776
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1792
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1808
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1824
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1840
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1856
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1872
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1888
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1904
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1920
+ image: "test2.1.png"
+ }
+ Frame {
+ msec: 1936
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1952
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1968
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 1984
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2000
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2016
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2032
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2048
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2064
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2080
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2096
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2112
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2128
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2144
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2160
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2176
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2192
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2208
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2224
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2240
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2256
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 0
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2272
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2288
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2304
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2320
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2336
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2352
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+ Frame {
+ msec: 2368
+ hash: "529409797f67656145ea88544bb8cc9f"
+ }
+}
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test3.0.png b/tests/auto/declarative/visual/focusscope/data-X11/test3.0.png
new file mode 100644
index 0000000..2821112
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test3.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test3.1.png b/tests/auto/declarative/visual/focusscope/data-X11/test3.1.png
new file mode 100644
index 0000000..d3aeb93
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test3.1.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test3.2.png b/tests/auto/declarative/visual/focusscope/data-X11/test3.2.png
new file mode 100644
index 0000000..d7b647f
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test3.2.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test3.3.png b/tests/auto/declarative/visual/focusscope/data-X11/test3.3.png
new file mode 100644
index 0000000..551efc8
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test3.3.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test3.4.png b/tests/auto/declarative/visual/focusscope/data-X11/test3.4.png
new file mode 100644
index 0000000..5e59cbe
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test3.4.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test3.5.png b/tests/auto/declarative/visual/focusscope/data-X11/test3.5.png
new file mode 100644
index 0000000..622c768
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test3.5.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test3.6.png b/tests/auto/declarative/visual/focusscope/data-X11/test3.6.png
new file mode 100644
index 0000000..d7b647f
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test3.6.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test3.7.png b/tests/auto/declarative/visual/focusscope/data-X11/test3.7.png
new file mode 100644
index 0000000..d3aeb93
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test3.7.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test3.8.png b/tests/auto/declarative/visual/focusscope/data-X11/test3.8.png
new file mode 100644
index 0000000..891a10a
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test3.8.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test3.9.png b/tests/auto/declarative/visual/focusscope/data-X11/test3.9.png
new file mode 100644
index 0000000..c346260
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test3.9.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data-X11/test3.qml b/tests/auto/declarative/visual/focusscope/data-X11/test3.qml
new file mode 100644
index 0000000..e7cb67c
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data-X11/test3.qml
@@ -0,0 +1,2879 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 32
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 48
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 64
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 80
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 96
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 112
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 128
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 144
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 160
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 176
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 192
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 208
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 224
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 240
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 256
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 272
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 288
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 304
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 320
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 336
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 352
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 368
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 384
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 400
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 416
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 432
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 448
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 464
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 480
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 496
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 512
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 528
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 544
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 560
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 576
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 592
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 608
+ hash: "70404a8e19cee8dad4a7dc16b3b018e2"
+ }
+ Frame {
+ msec: 624
+ hash: "70404a8e19cee8dad4a7dc16b3b018e2"
+ }
+ Frame {
+ msec: 640
+ hash: "42ede0774612c5ce72bcb17c1f8c53fb"
+ }
+ Frame {
+ msec: 656
+ hash: "acbf5d05e87e456b49636a8e533b8819"
+ }
+ Frame {
+ msec: 672
+ hash: "1c3adf6475d5bbf23c83dda77614834f"
+ }
+ Frame {
+ msec: 688
+ hash: "b047088d7d135614c7de5d6b1fe6447c"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 704
+ hash: "59393e79f5571c1b0b54ceb96c570afd"
+ }
+ Frame {
+ msec: 720
+ hash: "2657a9db93dab4180ddf5a3d928fa83c"
+ }
+ Frame {
+ msec: 736
+ hash: "bd012a5b982553780ef81ea273381988"
+ }
+ Frame {
+ msec: 752
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 768
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 784
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 800
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 816
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 832
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 848
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 864
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 880
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 896
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 912
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 928
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 944
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 960
+ image: "test3.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 992
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 1008
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 1024
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 1040
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 1056
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 1072
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 1088
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1104
+ hash: "3ba7daa96383cc7fcd2f3e15b9b46bea"
+ }
+ Frame {
+ msec: 1120
+ hash: "3ba7daa96383cc7fcd2f3e15b9b46bea"
+ }
+ Frame {
+ msec: 1136
+ hash: "c097e88ae5cea1203735aba2de753b35"
+ }
+ Frame {
+ msec: 1152
+ hash: "309058119191341625c797e14b1d68fd"
+ }
+ Frame {
+ msec: 1168
+ hash: "d2d44135892d56e556b6343e0d2177df"
+ }
+ Frame {
+ msec: 1184
+ hash: "8f77166dfb871d1ad3c4b21e9626dcf8"
+ }
+ Frame {
+ msec: 1200
+ hash: "b6bd7476decc62d295414eea18f21ffb"
+ }
+ Frame {
+ msec: 1216
+ hash: "8ca06a6b2787a3e684b6a0614baf057f"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1232
+ hash: "119130d0bde37eb6038e4fbcea54d619"
+ }
+ Frame {
+ msec: 1248
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 1264
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 1280
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 1296
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 1312
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 1328
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 1344
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 1360
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 1376
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 1392
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 1408
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 1424
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 1440
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 1456
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 1472
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 1488
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 1504
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 1520
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1536
+ hash: "d36e8e689b999046f5671cce03ec98b9"
+ }
+ Frame {
+ msec: 1552
+ hash: "d36e8e689b999046f5671cce03ec98b9"
+ }
+ Frame {
+ msec: 1568
+ hash: "1ae470df65b1637dfed5ed330bf6f2cc"
+ }
+ Frame {
+ msec: 1584
+ hash: "fd98bff5f8c97cf0644aca6d205720b3"
+ }
+ Frame {
+ msec: 1600
+ hash: "6c97607356ec22d77da6170de94ed1b8"
+ }
+ Frame {
+ msec: 1616
+ hash: "ee49691989ffada50e3b82df960ec1cb"
+ }
+ Frame {
+ msec: 1632
+ hash: "fba046a966f5ebdc17a73c33fb2fb1af"
+ }
+ Frame {
+ msec: 1648
+ hash: "5031c1c466e14e7daf39be6af1a9c402"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1664
+ hash: "508c31a76bbb9ae50ec44484ea889289"
+ }
+ Frame {
+ msec: 1680
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 1696
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 1712
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 1728
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 1744
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 1760
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 1776
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 1792
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 1808
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 1824
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 1840
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 1856
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 1872
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 1888
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 1904
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 1920
+ image: "test3.1.png"
+ }
+ Frame {
+ msec: 1936
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 1952
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 1968
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 1984
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 2000
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2016
+ hash: "c79134dc4b03885c0c2139e9f1949968"
+ }
+ Frame {
+ msec: 2032
+ hash: "c79134dc4b03885c0c2139e9f1949968"
+ }
+ Frame {
+ msec: 2048
+ hash: "6f29381e25034bcb9177033fdaf1ee4c"
+ }
+ Frame {
+ msec: 2064
+ hash: "e9668338280735ed6cf1e71f02d28f04"
+ }
+ Frame {
+ msec: 2080
+ hash: "ecd5a887981d564c6e40c215ebb867d2"
+ }
+ Frame {
+ msec: 2096
+ hash: "0960f7192633036319aa3500dbf38d2b"
+ }
+ Frame {
+ msec: 2112
+ hash: "22ececdfdd7eb5a8999df153de47c2e6"
+ }
+ Frame {
+ msec: 2128
+ hash: "f77abe52bd76bca4b728415c4dfd52dc"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2144
+ hash: "6d19c9df56ed8037dd5a123945b6fea0"
+ }
+ Frame {
+ msec: 2160
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2176
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2192
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2208
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2224
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2240
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2256
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2272
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2288
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2304
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2320
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2336
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2352
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2368
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2384
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2400
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2416
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2432
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2448
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2464
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2480
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2496
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 2512
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2528
+ hash: "3e0fa3d0d36a4ea51e9e89933d91e58a"
+ }
+ Frame {
+ msec: 2544
+ hash: "3e0fa3d0d36a4ea51e9e89933d91e58a"
+ }
+ Frame {
+ msec: 2560
+ hash: "eea826901b19fb3c7aff8594d8030acb"
+ }
+ Frame {
+ msec: 2576
+ hash: "a673c5dbc0b1b7bf585319a923db6478"
+ }
+ Frame {
+ msec: 2592
+ hash: "c9fa9bdb8c8ad8c1144feb4a7f9ae96e"
+ }
+ Frame {
+ msec: 2608
+ hash: "646601d0aabe76467c3317fb12e785e5"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2624
+ hash: "a88500a959cd4127528a74af4979d83a"
+ }
+ Frame {
+ msec: 2640
+ hash: "ab288556e0bff85a48be364ee7a61b18"
+ }
+ Frame {
+ msec: 2656
+ hash: "db5d053fd16f3bd6e3048f1d7f123027"
+ }
+ Frame {
+ msec: 2672
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 2688
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 2704
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 2720
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 2736
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 2752
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 2768
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 2784
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 2800
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 2816
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 2832
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 2848
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 2864
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 2880
+ image: "test3.2.png"
+ }
+ Frame {
+ msec: 2896
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 2912
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 2928
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 2944
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 2960
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 2976
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2992
+ hash: "dfc6df49c4340429529e88e877940158"
+ }
+ Frame {
+ msec: 3008
+ hash: "dfc6df49c4340429529e88e877940158"
+ }
+ Frame {
+ msec: 3024
+ hash: "e44644da7159bfde1a1cf6148d268c53"
+ }
+ Frame {
+ msec: 3040
+ hash: "f0045733c7f4e799c4ca49ec28c7c652"
+ }
+ Frame {
+ msec: 3056
+ hash: "8b0ded24c343556849ea67d191c03a17"
+ }
+ Frame {
+ msec: 3072
+ hash: "0c50a579850c3eb43c4824bf7e8b1d12"
+ }
+ Frame {
+ msec: 3088
+ hash: "747d2205db14cf72dc5989e92b8076ab"
+ }
+ Frame {
+ msec: 3104
+ hash: "a0a9196cb896eadf411cbcccaa069f10"
+ }
+ Frame {
+ msec: 3120
+ hash: "c682ad7747f7245b4e213fc078d51e8f"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 3136
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3152
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3168
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3184
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3200
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3216
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3232
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3248
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3264
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3280
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3296
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3312
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3328
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3344
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3360
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3376
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3392
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3408
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3424
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3440
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3456
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3472
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 3488
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 3504
+ hash: "115b81c715a58e66c3d1f09bb03fe97f"
+ }
+ Frame {
+ msec: 3520
+ hash: "115b81c715a58e66c3d1f09bb03fe97f"
+ }
+ Frame {
+ msec: 3536
+ hash: "a994e45c41afe0a4ab7d65c27139f3d8"
+ }
+ Frame {
+ msec: 3552
+ hash: "b02ecf8c3413752aa1d2bfa6e08184ca"
+ }
+ Frame {
+ msec: 3568
+ hash: "85ef0bedcb66676ca658068561d8df8e"
+ }
+ Frame {
+ msec: 3584
+ hash: "435bce6119a6542ce9ad743baa70ceb0"
+ }
+ Frame {
+ msec: 3600
+ hash: "5918c9c068ca62795d7b97ac818d79d5"
+ }
+ Frame {
+ msec: 3616
+ hash: "ff3ebc0c6f7eb39bbc10fad07b671d82"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 3632
+ hash: "0426b9666ccd84aa0d095e47a9379bd7"
+ }
+ Frame {
+ msec: 3648
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3664
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3680
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3696
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3712
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3728
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3744
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3760
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3776
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3792
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3808
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3824
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3840
+ image: "test3.3.png"
+ }
+ Frame {
+ msec: 3856
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3872
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3888
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3904
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3920
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3936
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3952
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3968
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 3984
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 4000
+ hash: "30901e72d40975b92c9d96c0f52b458c"
+ }
+ Frame {
+ msec: 4016
+ hash: "30901e72d40975b92c9d96c0f52b458c"
+ }
+ Frame {
+ msec: 4032
+ hash: "f4f84cb8e42e269b121b2ffa9204db38"
+ }
+ Frame {
+ msec: 4048
+ hash: "41e9198277d0d590d176fd9972bfbf58"
+ }
+ Frame {
+ msec: 4064
+ hash: "664bddf12068363afc89f8fc52d133c0"
+ }
+ Frame {
+ msec: 4080
+ hash: "18a12504f09551bd6e3013ef1bbf40f9"
+ }
+ Frame {
+ msec: 4096
+ hash: "95717e24255e442d955d3c64691576e0"
+ }
+ Frame {
+ msec: 4112
+ hash: "7cb9b9a71bfb1cd3061efde86e57ff34"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 4128
+ hash: "a090d2c37080361240769198f1032b7a"
+ }
+ Frame {
+ msec: 4144
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4160
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4176
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4192
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4208
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4224
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4240
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4256
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4272
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4288
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4304
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4320
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4336
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4352
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4368
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4384
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4400
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4416
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4432
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4448
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4464
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4480
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4496
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4512
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4528
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4544
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4560
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4576
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4592
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4608
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4624
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4640
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4656
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4672
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4688
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4704
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4720
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4736
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4752
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4768
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4784
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4800
+ image: "test3.4.png"
+ }
+ Frame {
+ msec: 4816
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4832
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4848
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4864
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4880
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4896
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4912
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4928
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4944
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4960
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4976
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 4992
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 5008
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 5024
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 5040
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 5056
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 5072
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 5088
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Frame {
+ msec: 5104
+ hash: "c37a8dc01901eb4a1fb0d6ac3c91fca0"
+ }
+ Key {
+ type: 6
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 5120
+ hash: "0a524f53903aa1651152fd4a6068c14c"
+ }
+ Frame {
+ msec: 5136
+ hash: "0a524f53903aa1651152fd4a6068c14c"
+ }
+ Frame {
+ msec: 5152
+ hash: "bbef86b80161702653b88f6cfa88528c"
+ }
+ Frame {
+ msec: 5168
+ hash: "26de302dde8fb22e509c0b3c8cb37abd"
+ }
+ Frame {
+ msec: 5184
+ hash: "9f3ec01bf5ae12383a58a716d462d479"
+ }
+ Frame {
+ msec: 5200
+ hash: "cbfa90ccd871ba1ab12f75e8e5f2e11e"
+ }
+ Frame {
+ msec: 5216
+ hash: "c5ba4fd178429a1cb44ec96da8a1a404"
+ }
+ Frame {
+ msec: 5232
+ hash: "fb87133ef012abe68491be1cc627d580"
+ }
+ Key {
+ type: 7
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 5248
+ hash: "0f8147bf9cd92eec88ea6f8b9f2ad5eb"
+ }
+ Frame {
+ msec: 5264
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5280
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5296
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5312
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5328
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5344
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5360
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5376
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5392
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5408
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5424
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5440
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5456
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5472
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5488
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5504
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5520
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5536
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5552
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5568
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5584
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5600
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5616
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5632
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5648
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5664
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5680
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5696
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Frame {
+ msec: 5712
+ hash: "f2ca9897c874faa97f2d959964da4bd1"
+ }
+ Key {
+ type: 6
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 5728
+ hash: "f78a62f7143dbf86e0b153fe08a9bf6e"
+ }
+ Frame {
+ msec: 5744
+ hash: "f78a62f7143dbf86e0b153fe08a9bf6e"
+ }
+ Frame {
+ msec: 5760
+ image: "test3.5.png"
+ }
+ Frame {
+ msec: 5776
+ hash: "e89f6d4727cf92ce87e4c48eb34074a6"
+ }
+ Frame {
+ msec: 5792
+ hash: "eb7761ac018dbb93b72acd3126a7eace"
+ }
+ Frame {
+ msec: 5808
+ hash: "a70638789eeaada677afa68a7dcc1f97"
+ }
+ Frame {
+ msec: 5824
+ hash: "bb709f17058d1f41b34831d1055195cc"
+ }
+ Frame {
+ msec: 5840
+ hash: "3b459f10eb299712180fed277c75ca22"
+ }
+ Frame {
+ msec: 5856
+ hash: "8f77a04a3690f7cbfae4858c8fff1a24"
+ }
+ Key {
+ type: 7
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 5872
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 5888
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 5904
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 5920
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 5936
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 5952
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 5968
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 5984
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 6000
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 6016
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 6032
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 6048
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 6064
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 6080
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 6096
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 6112
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 6128
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 6144
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 6160
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 6176
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 6192
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 6208
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 6224
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 6240
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 6256
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Frame {
+ msec: 6272
+ hash: "0d20e56256c2aa305c487c7875249c45"
+ }
+ Key {
+ type: 6
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 6288
+ hash: "80a729efc25a86d09977f6abe4b96e77"
+ }
+ Frame {
+ msec: 6304
+ hash: "80a729efc25a86d09977f6abe4b96e77"
+ }
+ Frame {
+ msec: 6320
+ hash: "75e57461badc3fd9c38548c751a86b62"
+ }
+ Frame {
+ msec: 6336
+ hash: "b0f49c8a67bdf1285334514d78a6b613"
+ }
+ Frame {
+ msec: 6352
+ hash: "564bca050cfc30f19b77989a1e3a26d8"
+ }
+ Frame {
+ msec: 6368
+ hash: "caca4855c581f42b26623bf717302884"
+ }
+ Frame {
+ msec: 6384
+ hash: "89db7709fcec729023c910608b504665"
+ }
+ Frame {
+ msec: 6400
+ hash: "5501f75f4b8b3229a7db38df4e9cc938"
+ }
+ Frame {
+ msec: 6416
+ hash: "505d12f5900fa920f47c650d24745ec5"
+ }
+ Key {
+ type: 7
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 6432
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6448
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6464
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6480
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6496
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6512
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6528
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6544
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6560
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6576
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6592
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6608
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6624
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6640
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6656
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6672
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6688
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6704
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6720
+ image: "test3.6.png"
+ }
+ Frame {
+ msec: 6736
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6752
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6768
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6784
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6800
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6816
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6832
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Frame {
+ msec: 6848
+ hash: "4e9b6719737e92ef409b76772a9d6b4a"
+ }
+ Key {
+ type: 6
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 6864
+ hash: "240f48d1c5aa1c23bf1c660a0a468283"
+ }
+ Frame {
+ msec: 6880
+ hash: "240f48d1c5aa1c23bf1c660a0a468283"
+ }
+ Frame {
+ msec: 6896
+ hash: "e1ba9a4edfd19acffdf25e51dbbc94a5"
+ }
+ Frame {
+ msec: 6912
+ hash: "e40877ef6876be3f44db947af54287bc"
+ }
+ Frame {
+ msec: 6928
+ hash: "a72d66c4691d03e7b9a12df9df3d4b4d"
+ }
+ Frame {
+ msec: 6944
+ hash: "26cda82027725475f2be660a8e8b2463"
+ }
+ Frame {
+ msec: 6960
+ hash: "233e9b1c58cc338d22e3d3ca8669a33a"
+ }
+ Frame {
+ msec: 6976
+ hash: "316788ce1340cb0e151d12d244a48068"
+ }
+ Frame {
+ msec: 6992
+ hash: "6213c8fde998ae5b819f9e3f7f7ea857"
+ }
+ Key {
+ type: 7
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 7008
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7024
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7040
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7056
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7072
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7088
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7104
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7120
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7136
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7152
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7168
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7184
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7200
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7216
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7232
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7248
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7264
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7280
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7296
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7312
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7328
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7344
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7360
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7376
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7392
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7408
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7424
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Frame {
+ msec: 7440
+ hash: "316d165df776e906015714372e67f452"
+ }
+ Key {
+ type: 6
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 7456
+ hash: "37bfd610be786be852b78bdb933b9a01"
+ }
+ Frame {
+ msec: 7472
+ hash: "37bfd610be786be852b78bdb933b9a01"
+ }
+ Frame {
+ msec: 7488
+ hash: "05b41d669cdb7821d3db181c444f9667"
+ }
+ Frame {
+ msec: 7504
+ hash: "2ddf3b590860a1db12d04ab4dde830a3"
+ }
+ Frame {
+ msec: 7520
+ hash: "ecc85633bf413d41da38b87d21c92653"
+ }
+ Frame {
+ msec: 7536
+ hash: "829b18a6568680d9fbf720926ec65954"
+ }
+ Frame {
+ msec: 7552
+ hash: "04f844fe5b2f944d435a9c66d93d2907"
+ }
+ Key {
+ type: 7
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 7568
+ hash: "49680fff1a16c74de135a72c6b13d156"
+ }
+ Frame {
+ msec: 7584
+ hash: "a4b4e3a49ce12e8a8a1a43a808555243"
+ }
+ Frame {
+ msec: 7600
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7616
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7632
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7648
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7664
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7680
+ image: "test3.7.png"
+ }
+ Frame {
+ msec: 7696
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7712
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7728
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7744
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7760
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7776
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7792
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7808
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7824
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7840
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7856
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7872
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7888
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7904
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7920
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7936
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7952
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Frame {
+ msec: 7968
+ hash: "aa35e3c7afbb686aca85da5f4d3dc17b"
+ }
+ Key {
+ type: 6
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 7984
+ hash: "0211b4e4fe18757e34bec35eab5fde3b"
+ }
+ Frame {
+ msec: 8000
+ hash: "0211b4e4fe18757e34bec35eab5fde3b"
+ }
+ Frame {
+ msec: 8016
+ hash: "abbd3f1a519e8f667b2eebe75c9b4cb3"
+ }
+ Frame {
+ msec: 8032
+ hash: "803607ec60ef51b54444a184462beb0f"
+ }
+ Frame {
+ msec: 8048
+ hash: "e0b670a80137b3fa8ca9ae8fab5aa123"
+ }
+ Frame {
+ msec: 8064
+ hash: "a291881f5d7a42973ac4a6054418259a"
+ }
+ Frame {
+ msec: 8080
+ hash: "c5ed7f0b91af1bf0eba6c149bccb72ab"
+ }
+ Frame {
+ msec: 8096
+ hash: "25b094fc7f6e8442ae672439a5b10a79"
+ }
+ Frame {
+ msec: 8112
+ hash: "9bc4a4dc68228a400b9e87d645e29828"
+ }
+ Key {
+ type: 7
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 8128
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8144
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8160
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8176
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8192
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8208
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8224
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8240
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8256
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8272
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8288
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8304
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8320
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8336
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8352
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8368
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8384
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8400
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8416
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8432
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8448
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8464
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8480
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Frame {
+ msec: 8496
+ hash: "4baf177df487bf872c7edd4ab4561120"
+ }
+ Key {
+ type: 6
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 8512
+ hash: "2eabf99cadf1ded6a355bdf39715ad57"
+ }
+ Frame {
+ msec: 8528
+ hash: "2eabf99cadf1ded6a355bdf39715ad57"
+ }
+ Frame {
+ msec: 8544
+ hash: "7e70fd7a53929ef47f69c63273818ee1"
+ }
+ Frame {
+ msec: 8560
+ hash: "e76066a86a120d7abf0d645c804c9e69"
+ }
+ Frame {
+ msec: 8576
+ hash: "e79a0e6badc18ded04e07ce6b805b493"
+ }
+ Frame {
+ msec: 8592
+ hash: "67891f5078a0c34a3fb17bbc325b9011"
+ }
+ Frame {
+ msec: 8608
+ hash: "6533d214e86aa581da50d26cc1bcd34e"
+ }
+ Frame {
+ msec: 8624
+ hash: "c649e873c3ce3fe5639e8d9b9912eafe"
+ }
+ Key {
+ type: 7
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 8640
+ image: "test3.8.png"
+ }
+ Frame {
+ msec: 8656
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8672
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8688
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8704
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8720
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8736
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8752
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8768
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8784
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8800
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8816
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8832
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8848
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8864
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8880
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8896
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8912
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8928
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8944
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8960
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8976
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 8992
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 9008
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 9024
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 9040
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Frame {
+ msec: 9056
+ hash: "3b0e8ae88404e6c12e7918bfc30dc49e"
+ }
+ Key {
+ type: 6
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 9072
+ hash: "72494522826c29edd9a763342d8ee909"
+ }
+ Frame {
+ msec: 9088
+ hash: "72494522826c29edd9a763342d8ee909"
+ }
+ Frame {
+ msec: 9104
+ hash: "ecba7d108741a940d77920db52f6bc47"
+ }
+ Frame {
+ msec: 9120
+ hash: "6aa456342c3bb8b6071c28c5d550929e"
+ }
+ Frame {
+ msec: 9136
+ hash: "bd94dbfa0651b9060cacdbe9a9adc38c"
+ }
+ Frame {
+ msec: 9152
+ hash: "bb6e75073be7b1e9f3c66761b72611b2"
+ }
+ Frame {
+ msec: 9168
+ hash: "11bfc218dd57a9909b1fd7f021577cfa"
+ }
+ Frame {
+ msec: 9184
+ hash: "d2fbc4d380862423ad2d3a33468b417d"
+ }
+ Frame {
+ msec: 9200
+ hash: "0ca09d4275b1c36575e484d79a7d8d2a"
+ }
+ Key {
+ type: 7
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 9216
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9232
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9248
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9264
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9280
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9296
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9312
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9328
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9344
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9360
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9376
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9392
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9408
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9424
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9440
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9456
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9472
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9488
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9504
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9520
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9536
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9552
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9568
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9584
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9600
+ image: "test3.9.png"
+ }
+ Frame {
+ msec: 9616
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9632
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9648
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9664
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9680
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9696
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9712
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9728
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9744
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9760
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9776
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9792
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9808
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9824
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9840
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9856
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9872
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9888
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9904
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9920
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9936
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9952
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9968
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 9984
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10000
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10016
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10032
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10048
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10064
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10080
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10096
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10112
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10128
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10144
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10160
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10176
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10192
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10208
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10224
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10240
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10256
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10272
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10288
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10304
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10320
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10336
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10352
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10368
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 0
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 10384
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10400
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10416
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+ Frame {
+ msec: 10432
+ hash: "d157fdaf13170250e66768364e90e820"
+ }
+}
diff --git a/tests/auto/declarative/visual/focusscope/data/test.0.png b/tests/auto/declarative/visual/focusscope/data/test.0.png
new file mode 100644
index 0000000..67b99e0
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data/test.1.png b/tests/auto/declarative/visual/focusscope/data/test.1.png
new file mode 100644
index 0000000..67b99e0
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test.1.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data/test.2.png b/tests/auto/declarative/visual/focusscope/data/test.2.png
new file mode 100644
index 0000000..69f0366
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test.2.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data/test.3.png b/tests/auto/declarative/visual/focusscope/data/test.3.png
new file mode 100644
index 0000000..afe0bd9
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test.3.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data/test.4.png b/tests/auto/declarative/visual/focusscope/data/test.4.png
new file mode 100644
index 0000000..afe0bd9
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test.4.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data/test.5.png b/tests/auto/declarative/visual/focusscope/data/test.5.png
new file mode 100644
index 0000000..afe0bd9
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test.5.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data/test.qml b/tests/auto/declarative/visual/focusscope/data/test.qml
new file mode 100644
index 0000000..d86c034
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test.qml
@@ -0,0 +1,1599 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 32
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 48
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 64
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 80
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 96
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 112
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 128
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 144
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 160
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 176
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 192
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 208
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 224
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 240
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 256
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 272
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 288
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 304
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 320
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 336
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 352
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 368
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 384
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 400
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 416
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 432
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 448
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 464
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 480
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 496
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 512
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 528
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 544
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 560
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 576
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 592
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 608
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 624
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 640
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 656
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 672
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 688
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 704
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 720
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 736
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 752
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 768
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 784
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 800
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 816
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 832
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 848
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 864
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 880
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 896
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 912
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 928
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 944
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 960
+ image: "test.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 992
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1008
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1024
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1040
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1056
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1072
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1088
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1104
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1120
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1136
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1152
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1168
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1184
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1200
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1216
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1232
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1248
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1264
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1280
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1296
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1312
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1328
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1344
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1360
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1376
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1392
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1408
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1424
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1440
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1456
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1472
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1488
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1504
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1520
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1536
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1552
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1568
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1584
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1600
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1616
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1632
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1648
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1664
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1680
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1696
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1712
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1728
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1744
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1760
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1776
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1792
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 1808
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Key {
+ type: 6
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1824
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1840
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1856
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1872
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1888
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1904
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1920
+ image: "test.1.png"
+ }
+ Frame {
+ msec: 1936
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1952
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Key {
+ type: 7
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1968
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 1984
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2000
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2016
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2032
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2048
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2064
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2080
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2096
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2112
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2128
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2144
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2160
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2176
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2192
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2208
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2224
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2240
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2256
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2272
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2288
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2304
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2320
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2336
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 2352
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Key {
+ type: 6
+ key: 16777237
+ modifiers: 536870912
+ text: "1f"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2368
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2384
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2400
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2416
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2432
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2448
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2464
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Key {
+ type: 7
+ key: 16777237
+ modifiers: 536870912
+ text: "1f"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2480
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2496
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2512
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2528
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2544
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2560
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2576
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2592
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2608
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2624
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2640
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2656
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2672
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2688
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2704
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2720
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2736
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2752
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2768
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2784
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2800
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2816
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2832
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2848
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2864
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2880
+ image: "test.2.png"
+ }
+ Frame {
+ msec: 2896
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2912
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2928
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2944
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2960
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 2976
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Key {
+ type: 6
+ key: 16777235
+ modifiers: 536870912
+ text: "1e"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2992
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3008
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3024
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3040
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3056
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3072
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3088
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Key {
+ type: 7
+ key: 16777235
+ modifiers: 536870912
+ text: "1e"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 3104
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3120
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3136
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3152
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3168
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3184
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3200
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3216
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3232
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3248
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3264
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3280
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3296
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3312
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3328
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3344
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3360
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3376
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3392
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3408
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3424
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3440
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3456
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3472
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3488
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3504
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3520
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Frame {
+ msec: 3536
+ hash: "e7722f02692fbae81b9ec78547e1e4e9"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 3552
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3568
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3584
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3600
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3616
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3632
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3648
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 3664
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3680
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3696
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3712
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3728
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3744
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3760
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3776
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3792
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3808
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3824
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3840
+ image: "test.3.png"
+ }
+ Frame {
+ msec: 3856
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3872
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3888
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3904
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3920
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3936
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3952
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3968
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 3984
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4000
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4016
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4032
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4048
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4064
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4080
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4096
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4112
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4128
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4144
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4160
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4176
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Key {
+ type: 6
+ key: 16777237
+ modifiers: 536870912
+ text: "1f"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 4192
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4208
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4224
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4240
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4256
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4272
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Key {
+ type: 7
+ key: 16777237
+ modifiers: 536870912
+ text: "1f"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 4288
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4304
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4320
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4336
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4352
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4368
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4384
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4400
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4416
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4432
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4448
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4464
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4480
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4496
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4512
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4528
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4544
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4560
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4576
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4592
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4608
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4624
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4640
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4656
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4672
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4688
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4704
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4720
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4736
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4752
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4768
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Frame {
+ msec: 4784
+ hash: "7e4814e27214ecbeb55992e319a88102"
+ }
+ Key {
+ type: 6
+ key: 16777235
+ modifiers: 536870912
+ text: "1e"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 4800
+ image: "test.4.png"
+ }
+ Frame {
+ msec: 4816
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4832
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4848
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4864
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4880
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4896
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Key {
+ type: 7
+ key: 16777235
+ modifiers: 536870912
+ text: "1e"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 4912
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4928
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4944
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4960
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4976
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 4992
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5008
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5024
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5040
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5056
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5072
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5088
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5104
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5120
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5136
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5152
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5168
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5184
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5200
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5216
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5232
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5248
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5264
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5280
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5296
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5312
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5328
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5344
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5360
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5376
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5392
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5408
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5424
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5440
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5456
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5472
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5488
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5504
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5520
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5536
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5552
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5568
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5584
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5600
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5616
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5632
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5648
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5664
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5680
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5696
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5712
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5728
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5744
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5760
+ image: "test.5.png"
+ }
+ Frame {
+ msec: 5776
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5792
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 67108864
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 5808
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5824
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5840
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5856
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5872
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+ Frame {
+ msec: 5888
+ hash: "6f85c2226e6e408f4699762f687b83e1"
+ }
+}
diff --git a/tests/auto/declarative/visual/focusscope/data/test2.0.png b/tests/auto/declarative/visual/focusscope/data/test2.0.png
new file mode 100644
index 0000000..555a968
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test2.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data/test2.1.png b/tests/auto/declarative/visual/focusscope/data/test2.1.png
new file mode 100644
index 0000000..555a968
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test2.1.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data/test2.qml b/tests/auto/declarative/visual/focusscope/data/test2.qml
new file mode 100644
index 0000000..fedc96a
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test2.qml
@@ -0,0 +1,607 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 32
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 48
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 64
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 80
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 96
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 112
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 128
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 144
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 160
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 176
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 192
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 208
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 224
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 240
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 256
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 272
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 288
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 304
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 320
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 336
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 352
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 368
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 384
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 400
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 416
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 432
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 448
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 464
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 480
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 496
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 512
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 528
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 544
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 560
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 576
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 592
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 608
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 624
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 640
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 656
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 672
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 688
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 704
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 720
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 736
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 752
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 768
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 784
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 800
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 816
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 832
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 848
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 864
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 880
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 896
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 912
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 928
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 944
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 960
+ image: "test2.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 992
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1008
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1024
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1040
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1056
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1072
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1088
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1104
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1120
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1136
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1152
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1168
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1184
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1200
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1216
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1232
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1248
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1264
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1280
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1296
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1312
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1328
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1344
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1360
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1376
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1392
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1408
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1424
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1440
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1456
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1472
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1488
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1504
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1520
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1536
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1552
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1568
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1584
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1600
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1616
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1632
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1648
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1664
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1680
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1696
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1712
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1728
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1744
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1760
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1776
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1792
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1808
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1824
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1840
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1856
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1872
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1888
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1904
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1920
+ image: "test2.1.png"
+ }
+ Frame {
+ msec: 1936
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1952
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1968
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 1984
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2000
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2016
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2032
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2048
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2064
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2080
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2096
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2112
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2128
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2144
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2160
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2176
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2192
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2208
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2224
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2240
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2256
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 67108864
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2272
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2288
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2304
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2320
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2336
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2352
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+ Frame {
+ msec: 2368
+ hash: "bb4131579c66dc948f2e27e236deb4ab"
+ }
+}
diff --git a/tests/auto/declarative/visual/focusscope/data/test3.0.png b/tests/auto/declarative/visual/focusscope/data/test3.0.png
new file mode 100644
index 0000000..374acf5
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test3.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data/test3.1.png b/tests/auto/declarative/visual/focusscope/data/test3.1.png
new file mode 100644
index 0000000..b75cb10
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test3.1.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data/test3.2.png b/tests/auto/declarative/visual/focusscope/data/test3.2.png
new file mode 100644
index 0000000..9b2f919
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test3.2.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data/test3.3.png b/tests/auto/declarative/visual/focusscope/data/test3.3.png
new file mode 100644
index 0000000..bf63032
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test3.3.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data/test3.4.png b/tests/auto/declarative/visual/focusscope/data/test3.4.png
new file mode 100644
index 0000000..6981a06
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test3.4.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data/test3.5.png b/tests/auto/declarative/visual/focusscope/data/test3.5.png
new file mode 100644
index 0000000..5856325
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test3.5.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data/test3.6.png b/tests/auto/declarative/visual/focusscope/data/test3.6.png
new file mode 100644
index 0000000..9b2f919
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test3.6.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data/test3.7.png b/tests/auto/declarative/visual/focusscope/data/test3.7.png
new file mode 100644
index 0000000..b75cb10
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test3.7.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data/test3.8.png b/tests/auto/declarative/visual/focusscope/data/test3.8.png
new file mode 100644
index 0000000..374acf5
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test3.8.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data/test3.9.png b/tests/auto/declarative/visual/focusscope/data/test3.9.png
new file mode 100644
index 0000000..11a08bd
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test3.9.png
Binary files differ
diff --git a/tests/auto/declarative/visual/focusscope/data/test3.qml b/tests/auto/declarative/visual/focusscope/data/test3.qml
new file mode 100644
index 0000000..8ce7944
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/data/test3.qml
@@ -0,0 +1,2879 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 32
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 48
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 64
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 80
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 96
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 112
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 128
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 144
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 160
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 176
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 192
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 208
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 224
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 240
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 256
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 272
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 288
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 304
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 320
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 336
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 352
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 368
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 384
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 400
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 416
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 432
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 448
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 464
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 480
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 496
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 512
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 528
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 544
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 560
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 576
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 592
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 608
+ hash: "c114718c158f107e8a7d06bf49d30855"
+ }
+ Frame {
+ msec: 624
+ hash: "c71bf3c6ef7addc3c1f55e3f92c001ac"
+ }
+ Frame {
+ msec: 640
+ hash: "b075c33ed606041dfb57a03f92cf5574"
+ }
+ Frame {
+ msec: 656
+ hash: "1933a060fc0b889082df94054a2d3c7e"
+ }
+ Frame {
+ msec: 672
+ hash: "cc4133e796a242493538131c789c392c"
+ }
+ Frame {
+ msec: 688
+ hash: "cbc16ad8bcb8dcf73ae101ca4899adac"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 704
+ hash: "1a5e008ef5640ad85a19b307244a36f7"
+ }
+ Frame {
+ msec: 720
+ hash: "6a0c9d0f3ac068d65d590c844dae4ebb"
+ }
+ Frame {
+ msec: 736
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 752
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 768
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 784
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 800
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 816
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 832
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 848
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 864
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 880
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 896
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 912
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 928
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 944
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 960
+ image: "test3.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 992
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 1008
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 1024
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 1040
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 1056
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 1072
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 1088
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1104
+ hash: "ac2f6e2f5f379ad8717aa3754f2aab80"
+ }
+ Frame {
+ msec: 1120
+ hash: "e896c5b5a4fd121e5c25aba0a17c11f3"
+ }
+ Frame {
+ msec: 1136
+ hash: "1d1228cf0b205e46a969a0016245bb9e"
+ }
+ Frame {
+ msec: 1152
+ hash: "d07b1d53655e549c503223fddfa62038"
+ }
+ Frame {
+ msec: 1168
+ hash: "d774614f13d1a19eff3c451c4abce7e5"
+ }
+ Frame {
+ msec: 1184
+ hash: "0e8445283c961a41c22ede2f26ab0d0c"
+ }
+ Frame {
+ msec: 1200
+ hash: "f85ced79a9d521b70b093d43d1335914"
+ }
+ Frame {
+ msec: 1216
+ hash: "3f70531768847686f202336827ed5c51"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1232
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 1248
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 1264
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 1280
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 1296
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 1312
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 1328
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 1344
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 1360
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 1376
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 1392
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 1408
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 1424
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 1440
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 1456
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 1472
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 1488
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 1504
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 1520
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1536
+ hash: "c59557a62fb22756ecae00bf36589f19"
+ }
+ Frame {
+ msec: 1552
+ hash: "c2938aac121e121eb138b2cdc485a23c"
+ }
+ Frame {
+ msec: 1568
+ hash: "aa582bd07789a0ce000bb014b4924969"
+ }
+ Frame {
+ msec: 1584
+ hash: "59d7a7fed20a11ecb12de08c77f0f303"
+ }
+ Frame {
+ msec: 1600
+ hash: "9a1d7649e44e2c2436855b92abbae030"
+ }
+ Frame {
+ msec: 1616
+ hash: "e46c47a221da37bbdffcdf671e84774b"
+ }
+ Frame {
+ msec: 1632
+ hash: "85ff7ef61ef08dc97065b0536f9f8766"
+ }
+ Frame {
+ msec: 1648
+ hash: "1159f274e5c2947875484d04a3ac6694"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1664
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1680
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1696
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1712
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1728
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1744
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1760
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1776
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1792
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1808
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1824
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1840
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1856
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1872
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1888
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1904
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1920
+ image: "test3.1.png"
+ }
+ Frame {
+ msec: 1936
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1952
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1968
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 1984
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 2000
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2016
+ hash: "26e5e7612374c7a4f7ac26a284c735b4"
+ }
+ Frame {
+ msec: 2032
+ hash: "03c63a8bab380ebcd02f2bf2f588df85"
+ }
+ Frame {
+ msec: 2048
+ hash: "1a7c4738de4f1123c7e639c935095476"
+ }
+ Frame {
+ msec: 2064
+ hash: "8362cb8a253dcb2e9ef7fb070579d639"
+ }
+ Frame {
+ msec: 2080
+ hash: "8fae548ad1f2e16738c14636b905efef"
+ }
+ Frame {
+ msec: 2096
+ hash: "05fca78fea63817204b2303495baaec7"
+ }
+ Frame {
+ msec: 2112
+ hash: "5bf7b04177db667f23f1bc4f0066bc44"
+ }
+ Frame {
+ msec: 2128
+ hash: "aa10d0614604f0563d4fc458b7bb9260"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2144
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2160
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2176
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2192
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2208
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2224
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2240
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2256
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2272
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2288
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2304
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2320
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2336
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2352
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2368
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2384
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2400
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2416
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2432
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2448
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2464
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2480
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2496
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 2512
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2528
+ hash: "1823a5c00778550c6b46416e6a2b730f"
+ }
+ Frame {
+ msec: 2544
+ hash: "7ca64f71eee9d3a926335de026be5fe2"
+ }
+ Frame {
+ msec: 2560
+ hash: "5f9e44b8374a490793b479440ce3b701"
+ }
+ Frame {
+ msec: 2576
+ hash: "b0969884a9654d87da9941fb9eb4c99a"
+ }
+ Frame {
+ msec: 2592
+ hash: "aeadf244a67b3c9e5c119b52aa0f15a0"
+ }
+ Frame {
+ msec: 2608
+ hash: "2d990e5ae8d3660079bdea7f2b5245a7"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2624
+ hash: "5998faffa17f9ffbf1cb39cdc09cdd54"
+ }
+ Frame {
+ msec: 2640
+ hash: "bf8089df5d863f627cd44294f322d796"
+ }
+ Frame {
+ msec: 2656
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2672
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2688
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2704
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2720
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2736
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2752
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2768
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2784
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2800
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2816
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2832
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2848
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2864
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2880
+ image: "test3.2.png"
+ }
+ Frame {
+ msec: 2896
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2912
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2928
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2944
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2960
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 2976
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 2992
+ hash: "d707cb6e2587eecba275d1e7ceb9d020"
+ }
+ Frame {
+ msec: 3008
+ hash: "fddd144d4d2e475330ff87f4e6febe35"
+ }
+ Frame {
+ msec: 3024
+ hash: "06115e65296d1a77ab956cd3984303ee"
+ }
+ Frame {
+ msec: 3040
+ hash: "6881ec448625fdc23f1241bd60362460"
+ }
+ Frame {
+ msec: 3056
+ hash: "d94fdfd178377328e3b840c32f774958"
+ }
+ Frame {
+ msec: 3072
+ hash: "d2cba0b3aac8002aa2de51f7b1442985"
+ }
+ Frame {
+ msec: 3088
+ hash: "c0ea81cddf6b1f5b4b4157dade6b8ca0"
+ }
+ Frame {
+ msec: 3104
+ hash: "964a80740cc7ba474d5d10b76cca1b14"
+ }
+ Frame {
+ msec: 3120
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 3136
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3152
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3168
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3184
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3200
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3216
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3232
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3248
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3264
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3280
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3296
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3312
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3328
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3344
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3360
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3376
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3392
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3408
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3424
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3440
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3456
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3472
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 3488
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 3504
+ hash: "56634199c96e5c4588c2954f0595fcaa"
+ }
+ Frame {
+ msec: 3520
+ hash: "a51221b77045e51cba2b0913546961cb"
+ }
+ Frame {
+ msec: 3536
+ hash: "9910569a15164882056802e5ecfaef42"
+ }
+ Frame {
+ msec: 3552
+ hash: "17080817e0b23212828d2cee23eff98f"
+ }
+ Frame {
+ msec: 3568
+ hash: "791fee9758645fe21fe52918e5435f7d"
+ }
+ Frame {
+ msec: 3584
+ hash: "e0fcea2889a4825075322524025a4bdf"
+ }
+ Frame {
+ msec: 3600
+ hash: "825f58093f328182fa32b3cbc573101f"
+ }
+ Frame {
+ msec: 3616
+ hash: "550972282584bd52108728290bd4aa5e"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 3632
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3648
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3664
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3680
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3696
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3712
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3728
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3744
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3760
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3776
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3792
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3808
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3824
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3840
+ image: "test3.3.png"
+ }
+ Frame {
+ msec: 3856
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3872
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3888
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3904
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3920
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3936
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3952
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3968
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 3984
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Key {
+ type: 6
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 4000
+ hash: "a2386a0135e8ffd9f2ac12345ede3553"
+ }
+ Frame {
+ msec: 4016
+ hash: "9550cdc0032bc3ea0a611f2584f43cca"
+ }
+ Frame {
+ msec: 4032
+ hash: "3f39909102a04f0e41a97b10dde4425a"
+ }
+ Frame {
+ msec: 4048
+ hash: "535d56a4d450cf0222f94573a88bbf80"
+ }
+ Frame {
+ msec: 4064
+ hash: "c4b782cfb9399689b0cbfc2a97305984"
+ }
+ Frame {
+ msec: 4080
+ hash: "23604b04198d53e0ba4a0955d8bcf124"
+ }
+ Frame {
+ msec: 4096
+ hash: "a440962d680f70eb47af38a91390b8c0"
+ }
+ Frame {
+ msec: 4112
+ hash: "da4b079f00248a073ce49f749ff0cc77"
+ }
+ Key {
+ type: 7
+ key: 16777236
+ modifiers: 536870912
+ text: "1d"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 4128
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4144
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4160
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4176
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4192
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4208
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4224
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4240
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4256
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4272
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4288
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4304
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4320
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4336
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4352
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4368
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4384
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4400
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4416
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4432
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4448
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4464
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4480
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4496
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4512
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4528
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4544
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4560
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4576
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4592
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4608
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4624
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4640
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4656
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4672
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4688
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4704
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4720
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4736
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4752
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4768
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4784
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4800
+ image: "test3.4.png"
+ }
+ Frame {
+ msec: 4816
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4832
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4848
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4864
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4880
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4896
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4912
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4928
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4944
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4960
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4976
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 4992
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 5008
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 5024
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 5040
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 5056
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 5072
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 5088
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Frame {
+ msec: 5104
+ hash: "861a8438a60e8a937d96f6b11fa1e3b3"
+ }
+ Key {
+ type: 6
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 5120
+ hash: "58be5253b74ac1cecf08714e670e30af"
+ }
+ Frame {
+ msec: 5136
+ hash: "a8e15f6e28a67941730f9cfe8ea7f0ff"
+ }
+ Frame {
+ msec: 5152
+ hash: "f1bfd2e2cd3a3ff08ae36e785d33e626"
+ }
+ Frame {
+ msec: 5168
+ hash: "b61fd5c58ddaf806e72d77bed92e91f3"
+ }
+ Frame {
+ msec: 5184
+ hash: "f192f6b779fa6bdfd4bc9c8671dd3147"
+ }
+ Frame {
+ msec: 5200
+ hash: "1cf034cfdfe3cafa832e28950c90d67b"
+ }
+ Frame {
+ msec: 5216
+ hash: "b0d2223f7f2c302784654f03cb3a5c1c"
+ }
+ Frame {
+ msec: 5232
+ hash: "19d089ac37fd42c1be99facd38a954e3"
+ }
+ Key {
+ type: 7
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 5248
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5264
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5280
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5296
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5312
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5328
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5344
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5360
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5376
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5392
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5408
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5424
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5440
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5456
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5472
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5488
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5504
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5520
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5536
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5552
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5568
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5584
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5600
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5616
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5632
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5648
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5664
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5680
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5696
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Frame {
+ msec: 5712
+ hash: "0cf213791ef1263f9dfc867df96e8211"
+ }
+ Key {
+ type: 6
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 5728
+ hash: "51db47388acad98d18a8a2aaca279dba"
+ }
+ Frame {
+ msec: 5744
+ hash: "c83747a4356fa12593020452dbf43fe8"
+ }
+ Frame {
+ msec: 5760
+ image: "test3.5.png"
+ }
+ Frame {
+ msec: 5776
+ hash: "39d476722de92703d0a2259b5c62554e"
+ }
+ Frame {
+ msec: 5792
+ hash: "3f01e465470c3d5ab58b52f3e1517374"
+ }
+ Frame {
+ msec: 5808
+ hash: "63570753ba8c5f1525bf4cee38e8cad8"
+ }
+ Frame {
+ msec: 5824
+ hash: "31beab91ef4cadcf0b379b32786530ac"
+ }
+ Frame {
+ msec: 5840
+ hash: "46cd2e22eb4ef988752e2b3441bdd450"
+ }
+ Frame {
+ msec: 5856
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Key {
+ type: 7
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 5872
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 5888
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 5904
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 5920
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 5936
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 5952
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 5968
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 5984
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 6000
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 6016
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 6032
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 6048
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 6064
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 6080
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 6096
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 6112
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 6128
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 6144
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 6160
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 6176
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 6192
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 6208
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 6224
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 6240
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 6256
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Frame {
+ msec: 6272
+ hash: "3e44d7064e55c510401b5008a06d9b82"
+ }
+ Key {
+ type: 6
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 6288
+ hash: "78c4aaf2427e0aa9b6d11ddf95df55f7"
+ }
+ Frame {
+ msec: 6304
+ hash: "d4859df2de6afa90c1997b1b4d6448ab"
+ }
+ Frame {
+ msec: 6320
+ hash: "f885e6a8cc09d06985a83f60e29a0a34"
+ }
+ Frame {
+ msec: 6336
+ hash: "41f27dbf80b0bc00498962162a5fe9db"
+ }
+ Frame {
+ msec: 6352
+ hash: "41800797032deeed5ccc87375b4093cb"
+ }
+ Frame {
+ msec: 6368
+ hash: "253276d23d8a0f195155361a27403496"
+ }
+ Frame {
+ msec: 6384
+ hash: "274bf40aacababde8fde71abf065d1aa"
+ }
+ Frame {
+ msec: 6400
+ hash: "86071a6486d35d3c10f318ab6bac7577"
+ }
+ Frame {
+ msec: 6416
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Key {
+ type: 7
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 6432
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6448
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6464
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6480
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6496
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6512
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6528
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6544
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6560
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6576
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6592
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6608
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6624
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6640
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6656
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6672
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6688
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6704
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6720
+ image: "test3.6.png"
+ }
+ Frame {
+ msec: 6736
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6752
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6768
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6784
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6800
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6816
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6832
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Frame {
+ msec: 6848
+ hash: "f75305426b87e1cdc325ae6668367be9"
+ }
+ Key {
+ type: 6
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 6864
+ hash: "eea514e956369c55f9fe9bfc5b8bbda4"
+ }
+ Frame {
+ msec: 6880
+ hash: "b28436abb5ce17310b63ed96a7034000"
+ }
+ Frame {
+ msec: 6896
+ hash: "40c656f467200785a951dd8f98cf28f5"
+ }
+ Frame {
+ msec: 6912
+ hash: "38c6c6b29c9a7f0eba87a538a336c338"
+ }
+ Frame {
+ msec: 6928
+ hash: "b3f939577616f8ded1e11ee6e6dce882"
+ }
+ Frame {
+ msec: 6944
+ hash: "d72b00208712f039a5d7a06fbfacd4bd"
+ }
+ Frame {
+ msec: 6960
+ hash: "c7a079a37f6bd7a8da706e6ba5d048ee"
+ }
+ Frame {
+ msec: 6976
+ hash: "561cdf098bdc35fc852fbe8fff2471e2"
+ }
+ Frame {
+ msec: 6992
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Key {
+ type: 7
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 7008
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7024
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7040
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7056
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7072
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7088
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7104
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7120
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7136
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7152
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7168
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7184
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7200
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7216
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7232
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7248
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7264
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7280
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7296
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7312
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7328
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7344
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7360
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7376
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7392
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7408
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7424
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Frame {
+ msec: 7440
+ hash: "0461d0e31648d2c155bee0145094c153"
+ }
+ Key {
+ type: 6
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 7456
+ hash: "096530df53ed21214cf93381ac0d23ea"
+ }
+ Frame {
+ msec: 7472
+ hash: "36e7cee0725fb16c5d7e08875a3b88f7"
+ }
+ Frame {
+ msec: 7488
+ hash: "a2b68c7e9e4ef04c1429190d01a3288b"
+ }
+ Frame {
+ msec: 7504
+ hash: "6ee23f5d2c0ddc21499c8685ae46df64"
+ }
+ Frame {
+ msec: 7520
+ hash: "dc423d32154882b99b7bde596697c83a"
+ }
+ Frame {
+ msec: 7536
+ hash: "e82852d1d2a21f67029870601b00b124"
+ }
+ Frame {
+ msec: 7552
+ hash: "7cd2773c33d7f34feb3b1e4752f63753"
+ }
+ Key {
+ type: 7
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 7568
+ hash: "2371f0ddf1b0ddcdb36f24e72b62d3a5"
+ }
+ Frame {
+ msec: 7584
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7600
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7616
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7632
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7648
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7664
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7680
+ image: "test3.7.png"
+ }
+ Frame {
+ msec: 7696
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7712
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7728
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7744
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7760
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7776
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7792
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7808
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7824
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7840
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7856
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7872
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7888
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7904
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7920
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7936
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7952
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Frame {
+ msec: 7968
+ hash: "113dd40f9b5c9869ad04a00dda9078c6"
+ }
+ Key {
+ type: 6
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 7984
+ hash: "93fd3abe0b99ed76d880f6f059636335"
+ }
+ Frame {
+ msec: 8000
+ hash: "a273ec355c79968013c70aca1b2d5737"
+ }
+ Frame {
+ msec: 8016
+ hash: "6b2df83c0645530ca007cde136838725"
+ }
+ Frame {
+ msec: 8032
+ hash: "47d5ed89f7e9c89df33bab14ca967f77"
+ }
+ Frame {
+ msec: 8048
+ hash: "c777e0d1a1f03e7a1bc16483f98c0622"
+ }
+ Frame {
+ msec: 8064
+ hash: "ac7e693d7dbc8e8ff2318cb611b68b76"
+ }
+ Frame {
+ msec: 8080
+ hash: "593e9711ae94a5b4f49544e0cf26d188"
+ }
+ Frame {
+ msec: 8096
+ hash: "afce51158cb19dd6ae8c72ce19964251"
+ }
+ Frame {
+ msec: 8112
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Key {
+ type: 7
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 8128
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8144
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8160
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8176
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8192
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8208
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8224
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8240
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8256
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8272
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8288
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8304
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8320
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8336
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8352
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8368
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8384
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8400
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8416
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8432
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8448
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8464
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8480
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Frame {
+ msec: 8496
+ hash: "30c5f9005238542c83b2d994cb61de16"
+ }
+ Key {
+ type: 6
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 8512
+ hash: "136c689aca9aa0cf957035137a926653"
+ }
+ Frame {
+ msec: 8528
+ hash: "b7418e46bca4bc8c953c15b03c23ec89"
+ }
+ Frame {
+ msec: 8544
+ hash: "e99575fe130e741f13329704303b76ca"
+ }
+ Frame {
+ msec: 8560
+ hash: "a2b7d528f9c145c4db0845bc76b3571f"
+ }
+ Frame {
+ msec: 8576
+ hash: "77f8beccd0134b8991ddb2ac92d64ecb"
+ }
+ Frame {
+ msec: 8592
+ hash: "fc359bc56852093020084af44987746a"
+ }
+ Frame {
+ msec: 8608
+ hash: "9f3479a702bc79062fff916678e974f1"
+ }
+ Frame {
+ msec: 8624
+ hash: "55c8c91ff26671f9f3049f1e1aaf5958"
+ }
+ Key {
+ type: 7
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 8640
+ image: "test3.8.png"
+ }
+ Frame {
+ msec: 8656
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8672
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8688
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8704
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8720
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8736
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8752
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8768
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8784
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8800
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8816
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8832
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8848
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8864
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8880
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8896
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8912
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8928
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8944
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8960
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8976
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 8992
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 9008
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 9024
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 9040
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Frame {
+ msec: 9056
+ hash: "216a02433edb100e6ff3db4944f6b061"
+ }
+ Key {
+ type: 6
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 9072
+ hash: "367ee34ab6a6cb0197e064db85638be7"
+ }
+ Frame {
+ msec: 9088
+ hash: "c61db7f2c0402a63efe779bec816a7db"
+ }
+ Frame {
+ msec: 9104
+ hash: "29d4d2679a502a1cb8a21807c43153c2"
+ }
+ Frame {
+ msec: 9120
+ hash: "3f531d4111efbbac256d4281db1fdeba"
+ }
+ Frame {
+ msec: 9136
+ hash: "9f343d8b4dc12cc7ab5ae1ff08067baf"
+ }
+ Frame {
+ msec: 9152
+ hash: "eb29b7d6ef2b5507425b2c30ddb58fa8"
+ }
+ Frame {
+ msec: 9168
+ hash: "883c0d35567deb6de9125441da89a1fe"
+ }
+ Frame {
+ msec: 9184
+ hash: "7c25e95ea2b38288b5ba5737108ef5d1"
+ }
+ Frame {
+ msec: 9200
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Key {
+ type: 7
+ key: 16777234
+ modifiers: 536870912
+ text: "1c"
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 9216
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9232
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9248
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9264
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9280
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9296
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9312
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9328
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9344
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9360
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9376
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9392
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9408
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9424
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9440
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9456
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9472
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9488
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9504
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9520
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9536
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9552
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9568
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9584
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9600
+ image: "test3.9.png"
+ }
+ Frame {
+ msec: 9616
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9632
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9648
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9664
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9680
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9696
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9712
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9728
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9744
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9760
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9776
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9792
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9808
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9824
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9840
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9856
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9872
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9888
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9904
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9920
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9936
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9952
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9968
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 9984
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10000
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10016
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10032
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10048
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10064
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10080
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10096
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10112
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10128
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10144
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10160
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10176
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10192
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10208
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10224
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10240
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10256
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10272
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10288
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10304
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10320
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10336
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10352
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10368
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 67108864
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 10384
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10400
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10416
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+ Frame {
+ msec: 10432
+ hash: "f192b84337784a6d31c309af7e32b5f7"
+ }
+}
diff --git a/tests/auto/declarative/visual/focusscope/test.qml b/tests/auto/declarative/visual/focusscope/test.qml
new file mode 100644
index 0000000..77ffb84
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/test.qml
@@ -0,0 +1,76 @@
+import Qt 4.6
+
+Rectangle {
+ color: "white"
+ width: 800
+ height: 600
+
+ Keys.onDigit9Pressed: print("Error - Root")
+
+ FocusScope {
+ id: MyScope
+ focus: true
+
+ Keys.onDigit9Pressed: print("Error - FocusScope")
+
+ Rectangle {
+ height: 120
+ width: 420
+
+ color: "transparent"
+ border.width: 5
+ border.color: MyScope.wantsFocus?"blue":"black"
+
+ Rectangle {
+ id: Item1
+ x: 10; y: 10
+ width: 100; height: 100; color: "green"
+ border.width: 5
+ border.color: wantsFocus?"blue":"black"
+ Keys.onDigit9Pressed: print("Top Left");
+ KeyNavigation.right: Item2
+ focus: true
+
+ Rectangle {
+ width: 50; height: 50; anchors.centerIn: parent
+ color: parent.focus?"red":"transparent"
+ }
+ }
+
+ Rectangle {
+ id: Item2
+ x: 310; y: 10
+ width: 100; height: 100; color: "green"
+ border.width: 5
+ border.color: wantsFocus?"blue":"black"
+ KeyNavigation.left: Item1
+ Keys.onDigit9Pressed: print("Top Right");
+
+ Rectangle {
+ width: 50; height: 50; anchors.centerIn: parent
+ color: parent.focus?"red":"transparent"
+ }
+ }
+ }
+ KeyNavigation.down: Item3
+ }
+
+ Text { x:100; y:170; text: "Blue border indicates scoped focus\nBlack border indicates NOT scoped focus\nRed box indicates active focus\nUse arrow keys to navigate\nPress \"9\" to print currently focused item" }
+
+ Rectangle {
+ id: Item3
+ x: 10; y: 300
+ width: 100; height: 100; color: "green"
+ border.width: 5
+ border.color: wantsFocus?"blue":"black"
+
+ Keys.onDigit9Pressed: print("Bottom Left");
+ KeyNavigation.up: MyScope
+
+ Rectangle {
+ width: 50; height: 50; anchors.centerIn: parent
+ color: parent.focus?"red":"transparent"
+ }
+ }
+
+}
diff --git a/tests/auto/declarative/visual/focusscope/test2.qml b/tests/auto/declarative/visual/focusscope/test2.qml
new file mode 100644
index 0000000..5b6971a
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/test2.qml
@@ -0,0 +1,40 @@
+import Qt 4.6
+
+Rectangle {
+ color: "white"
+ width: 800
+ height: 600
+
+ Text { text: "All five rectangles should be red" }
+
+ FocusScope {
+ y: 100
+ focus: true
+ Rectangle { width: 50; height: 50; color: parent.wantsFocus?"red":"blue" }
+
+ FocusScope {
+ y: 100
+ focus: true
+ Rectangle { width: 50; height: 50; color: parent.wantsFocus?"red":"blue" }
+
+ FocusScope {
+ y: 100
+ focus: true
+ Rectangle { width: 50; height: 50; color: parent.wantsFocus?"red":"blue" }
+
+ FocusScope {
+ y: 100
+ focus: true
+ Rectangle { width: 50; height: 50; color: parent.wantsFocus?"red":"blue" }
+
+ FocusScope {
+ y: 100
+ focus: true
+ Rectangle { width: 50; height: 50; color: parent.wantsFocus?"red":"blue" }
+ }
+ }
+ }
+ }
+ }
+
+}
diff --git a/tests/auto/declarative/visual/focusscope/test3.qml b/tests/auto/declarative/visual/focusscope/test3.qml
new file mode 100644
index 0000000..af06469
--- /dev/null
+++ b/tests/auto/declarative/visual/focusscope/test3.qml
@@ -0,0 +1,52 @@
+import Qt 4.6
+
+Rectangle {
+ color: "white"
+ width: 800
+ height: 600
+
+ ListModel {
+ id: Model
+ ListElement { name: "1" }
+ ListElement { name: "2" }
+ ListElement { name: "3" }
+ ListElement { name: "4" }
+ ListElement { name: "5" }
+ ListElement { name: "6" }
+ ListElement { name: "7" }
+ ListElement { name: "8" }
+ ListElement { name: "9" }
+ }
+
+ Component {
+ id: VerticalDelegate
+ FocusScope {
+ id: Root
+ width: 50; height: 50;
+ Keys.onDigit9Pressed: print("Error - " + name)
+ Rectangle {
+ focus: true
+ Keys.onDigit9Pressed: print(name)
+ width: 50; height: 50;
+ color: Root.ListView.isCurrentItem?"red":"green"
+ Text { text: name; anchors.centerIn: parent }
+ }
+ }
+ }
+
+ ListView {
+ width: 800; height: 50; orientation: "Horizontal"
+ focus: true
+ model: Model
+ delegate: VerticalDelegate
+ preferredHighlightBegin: 100
+ preferredHighlightEnd: 101
+ strictlyEnforceHighlightRange: true
+ }
+
+
+ Text {
+ y: 100; x: 50
+ text: "Currently selected element should be red\nPressing \"9\" should print the number of the currently selected item\nBe sure to scroll all the way to the right, pause, and then all the way to the left."
+ }
+}
diff --git a/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.0.png b/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.0.png
new file mode 100644
index 0000000..693a794
--- /dev/null
+++ b/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.1.png b/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.1.png
new file mode 100644
index 0000000..06d43f1
--- /dev/null
+++ b/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.1.png
Binary files differ
diff --git a/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.2.png b/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.2.png
new file mode 100644
index 0000000..e619baf
--- /dev/null
+++ b/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.2.png
Binary files differ
diff --git a/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.3.png b/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.3.png
new file mode 100644
index 0000000..30c7671
--- /dev/null
+++ b/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.3.png
Binary files differ
diff --git a/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.4.png b/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.4.png
new file mode 100644
index 0000000..132803c
--- /dev/null
+++ b/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.4.png
Binary files differ
diff --git a/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.5.png b/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.5.png
new file mode 100644
index 0000000..8372bc3
--- /dev/null
+++ b/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.5.png
Binary files differ
diff --git a/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.qml b/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.qml
new file mode 100644
index 0000000..73c6542
--- /dev/null
+++ b/tests/auto/declarative/visual/pauseAnimation/data/pauseAnimation.qml
@@ -0,0 +1,1619 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 32
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 48
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 64
+ hash: "dcf2867c127e041970047ec8f3edc04f"
+ }
+ Frame {
+ msec: 80
+ hash: "41ba853c3403f68a23e708df82e21c53"
+ }
+ Frame {
+ msec: 96
+ hash: "a725b59b4947357546bbfc7df3d830af"
+ }
+ Frame {
+ msec: 112
+ hash: "336d31586171f22d541b989d24b95cbb"
+ }
+ Frame {
+ msec: 128
+ hash: "6d63fb5c8a80f0280e88b2cdf8641bb9"
+ }
+ Frame {
+ msec: 144
+ hash: "ef8941674cb61f54853dc33652bb854e"
+ }
+ Frame {
+ msec: 160
+ hash: "b3f4a2165ec1ee971542b8ef89656cea"
+ }
+ Frame {
+ msec: 176
+ hash: "af3120fe262d2489c0ed33fbbee1549f"
+ }
+ Frame {
+ msec: 192
+ hash: "1373545e43fff7251cec9e8375ea267f"
+ }
+ Frame {
+ msec: 208
+ hash: "21f0b0437a999bbde66a913032d495c2"
+ }
+ Frame {
+ msec: 224
+ hash: "0809d32d5bc1bfce199b1f39a1c68d4f"
+ }
+ Frame {
+ msec: 240
+ hash: "022137587b39f5123835482178a1f1cf"
+ }
+ Frame {
+ msec: 256
+ hash: "97566ce9558d13ea0780bce233097b27"
+ }
+ Frame {
+ msec: 272
+ hash: "96d79b07da105b7f631ed61582b26f7e"
+ }
+ Frame {
+ msec: 288
+ hash: "f4732ff2df93fe67cb850dec34184924"
+ }
+ Frame {
+ msec: 304
+ hash: "054e6e52f74a3e24f04e6ad0071f79f8"
+ }
+ Frame {
+ msec: 320
+ hash: "f541af93a9fde62e4bd1c91d30f91e65"
+ }
+ Frame {
+ msec: 336
+ hash: "c4f844ee71f23635bb3ec7375f6a134f"
+ }
+ Frame {
+ msec: 352
+ hash: "3e52e06db2bf78762bb9816fe6b105d9"
+ }
+ Frame {
+ msec: 368
+ hash: "d9604be23a91327e6ab454609a9d4a13"
+ }
+ Frame {
+ msec: 384
+ hash: "dc98a9bdd99367c1e9b838d4be489dcc"
+ }
+ Frame {
+ msec: 400
+ hash: "e87b00bfc2c2a75a4234ec02a057ad3a"
+ }
+ Frame {
+ msec: 416
+ hash: "5be4f5c67941efb6fcea363c79f1e321"
+ }
+ Frame {
+ msec: 432
+ hash: "6cc9de62a0c8fa5e42eac1b01e99ac32"
+ }
+ Frame {
+ msec: 448
+ hash: "62a7133012348f2ec3a388fb685ecc3f"
+ }
+ Frame {
+ msec: 464
+ hash: "4ac43a03cc6f2020ab5f894d704092ac"
+ }
+ Frame {
+ msec: 480
+ hash: "c1a7b7d6d64ac5584c073c2881290696"
+ }
+ Frame {
+ msec: 496
+ hash: "29ece1bca4d21fb5862091317d430a13"
+ }
+ Frame {
+ msec: 512
+ hash: "29ece1bca4d21fb5862091317d430a13"
+ }
+ Frame {
+ msec: 528
+ hash: "29ece1bca4d21fb5862091317d430a13"
+ }
+ Frame {
+ msec: 544
+ hash: "29ece1bca4d21fb5862091317d430a13"
+ }
+ Frame {
+ msec: 560
+ hash: "29ece1bca4d21fb5862091317d430a13"
+ }
+ Frame {
+ msec: 576
+ hash: "c1a7b7d6d64ac5584c073c2881290696"
+ }
+ Frame {
+ msec: 592
+ hash: "c1a7b7d6d64ac5584c073c2881290696"
+ }
+ Frame {
+ msec: 608
+ hash: "4ac43a03cc6f2020ab5f894d704092ac"
+ }
+ Frame {
+ msec: 624
+ hash: "4ac43a03cc6f2020ab5f894d704092ac"
+ }
+ Frame {
+ msec: 640
+ hash: "ffd39c1122fe2f7877ef30591b539b40"
+ }
+ Frame {
+ msec: 656
+ hash: "62a7133012348f2ec3a388fb685ecc3f"
+ }
+ Frame {
+ msec: 672
+ hash: "45281a70021f81dbef30334b1480da1b"
+ }
+ Frame {
+ msec: 688
+ hash: "6cc9de62a0c8fa5e42eac1b01e99ac32"
+ }
+ Frame {
+ msec: 704
+ hash: "79ec710576427df73dd03f39fba6e2eb"
+ }
+ Frame {
+ msec: 720
+ hash: "5be4f5c67941efb6fcea363c79f1e321"
+ }
+ Frame {
+ msec: 736
+ hash: "7d9096b1eb940c82a37baf39ef3ccf3e"
+ }
+ Frame {
+ msec: 752
+ hash: "e87b00bfc2c2a75a4234ec02a057ad3a"
+ }
+ Frame {
+ msec: 768
+ hash: "da60100dc55023c3bab367d97c8f6a85"
+ }
+ Frame {
+ msec: 784
+ hash: "dc98a9bdd99367c1e9b838d4be489dcc"
+ }
+ Frame {
+ msec: 800
+ hash: "3f869538028a09020d5e8f528f4fb119"
+ }
+ Frame {
+ msec: 816
+ hash: "9650fd0364c01b11e4f5dcce51d008af"
+ }
+ Frame {
+ msec: 832
+ hash: "2cb09d9655ecc30ae6a591b28c0d355c"
+ }
+ Frame {
+ msec: 848
+ hash: "4db9bc6c11caf1d77794c2eabb62a44e"
+ }
+ Frame {
+ msec: 864
+ hash: "ce2b5dd7418868acf86fea6ad19cc0c5"
+ }
+ Frame {
+ msec: 880
+ hash: "7c27ef654e645679c90520d6cf00b0c4"
+ }
+ Frame {
+ msec: 896
+ hash: "ab3e211df3ef7f5f7a8d712edc891c0f"
+ }
+ Frame {
+ msec: 912
+ hash: "19d2ae617a49b57dd012677e2834469c"
+ }
+ Frame {
+ msec: 928
+ hash: "5025eb75c88f0760f637e0342b7f88a2"
+ }
+ Frame {
+ msec: 944
+ hash: "005acbef952a8ee536e6308a48223e65"
+ }
+ Frame {
+ msec: 960
+ image: "pauseAnimation.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "5f18a81707f23d377e81a27c1fc41ce9"
+ }
+ Frame {
+ msec: 992
+ hash: "bcc35497884c158396c7f60759d1fda4"
+ }
+ Frame {
+ msec: 1008
+ hash: "7a4528b000a4ea142d1c77407fa1f581"
+ }
+ Frame {
+ msec: 1024
+ hash: "ba967a7d810a4531e577e5f6bd2def33"
+ }
+ Frame {
+ msec: 1040
+ hash: "f5afd9cf8ffe27e9992454b9e68688cb"
+ }
+ Frame {
+ msec: 1056
+ hash: "51d475c7f64a86d3a18fb115297a7b6b"
+ }
+ Frame {
+ msec: 1072
+ hash: "49f5d6fd45c195a8d245b7fefc1277ab"
+ }
+ Frame {
+ msec: 1088
+ hash: "f9b0b278659e3a0f78611e6b7f0f2176"
+ }
+ Frame {
+ msec: 1104
+ hash: "0809d32d5bc1bfce199b1f39a1c68d4f"
+ }
+ Frame {
+ msec: 1120
+ hash: "b7208d103b63a936dff8dd8ed224237f"
+ }
+ Frame {
+ msec: 1136
+ hash: "a57c81049b0dc68090ec7c3327b9922c"
+ }
+ Frame {
+ msec: 1152
+ hash: "e553f365912586c6408c8c53b1b7d118"
+ }
+ Frame {
+ msec: 1168
+ hash: "af3120fe262d2489c0ed33fbbee1549f"
+ }
+ Frame {
+ msec: 1184
+ hash: "0c20d12464abbdc45041ea5d9f2719b1"
+ }
+ Frame {
+ msec: 1200
+ hash: "dd60cbaff6f34027474e92315dbc0ebc"
+ }
+ Frame {
+ msec: 1216
+ hash: "336d31586171f22d541b989d24b95cbb"
+ }
+ Frame {
+ msec: 1232
+ hash: "41ba853c3403f68a23e708df82e21c53"
+ }
+ Frame {
+ msec: 1248
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 1264
+ hash: "41ba853c3403f68a23e708df82e21c53"
+ }
+ Frame {
+ msec: 1280
+ hash: "a725b59b4947357546bbfc7df3d830af"
+ }
+ Frame {
+ msec: 1296
+ hash: "336d31586171f22d541b989d24b95cbb"
+ }
+ Frame {
+ msec: 1312
+ hash: "f0d8132489c2f2ef760e905b3c093726"
+ }
+ Frame {
+ msec: 1328
+ hash: "6d63fb5c8a80f0280e88b2cdf8641bb9"
+ }
+ Frame {
+ msec: 1344
+ hash: "dd60cbaff6f34027474e92315dbc0ebc"
+ }
+ Frame {
+ msec: 1360
+ hash: "ef8941674cb61f54853dc33652bb854e"
+ }
+ Frame {
+ msec: 1376
+ hash: "bc426fb7c31751665b0d3f16e2cb0173"
+ }
+ Frame {
+ msec: 1392
+ hash: "0c20d12464abbdc45041ea5d9f2719b1"
+ }
+ Frame {
+ msec: 1408
+ hash: "53ae93140252373eaa4d9da73756bd8e"
+ }
+ Frame {
+ msec: 1424
+ hash: "721d7061811b5439c2e8e395917494bc"
+ }
+ Frame {
+ msec: 1440
+ hash: "af3120fe262d2489c0ed33fbbee1549f"
+ }
+ Frame {
+ msec: 1456
+ hash: "a8b624ebfc9ab713d1ce55f318a6e90d"
+ }
+ Frame {
+ msec: 1472
+ hash: "a88a8129259f86df5a73addc3649ad37"
+ }
+ Frame {
+ msec: 1488
+ hash: "a88a8129259f86df5a73addc3649ad37"
+ }
+ Frame {
+ msec: 1504
+ hash: "3db5e30ef19ea693c21ccf72892c4390"
+ }
+ Frame {
+ msec: 1520
+ hash: "e553f365912586c6408c8c53b1b7d118"
+ }
+ Frame {
+ msec: 1536
+ hash: "e553f365912586c6408c8c53b1b7d118"
+ }
+ Frame {
+ msec: 1552
+ hash: "e553f365912586c6408c8c53b1b7d118"
+ }
+ Frame {
+ msec: 1568
+ hash: "1373545e43fff7251cec9e8375ea267f"
+ }
+ Frame {
+ msec: 1584
+ hash: "1373545e43fff7251cec9e8375ea267f"
+ }
+ Frame {
+ msec: 1600
+ hash: "1373545e43fff7251cec9e8375ea267f"
+ }
+ Frame {
+ msec: 1616
+ hash: "1373545e43fff7251cec9e8375ea267f"
+ }
+ Frame {
+ msec: 1632
+ hash: "1373545e43fff7251cec9e8375ea267f"
+ }
+ Frame {
+ msec: 1648
+ hash: "1373545e43fff7251cec9e8375ea267f"
+ }
+ Frame {
+ msec: 1664
+ hash: "e553f365912586c6408c8c53b1b7d118"
+ }
+ Frame {
+ msec: 1680
+ hash: "e553f365912586c6408c8c53b1b7d118"
+ }
+ Frame {
+ msec: 1696
+ hash: "3db5e30ef19ea693c21ccf72892c4390"
+ }
+ Frame {
+ msec: 1712
+ hash: "3db5e30ef19ea693c21ccf72892c4390"
+ }
+ Frame {
+ msec: 1728
+ hash: "a88a8129259f86df5a73addc3649ad37"
+ }
+ Frame {
+ msec: 1744
+ hash: "a8b624ebfc9ab713d1ce55f318a6e90d"
+ }
+ Frame {
+ msec: 1760
+ hash: "a8b624ebfc9ab713d1ce55f318a6e90d"
+ }
+ Frame {
+ msec: 1776
+ hash: "af3120fe262d2489c0ed33fbbee1549f"
+ }
+ Frame {
+ msec: 1792
+ hash: "721d7061811b5439c2e8e395917494bc"
+ }
+ Frame {
+ msec: 1808
+ hash: "b3f4a2165ec1ee971542b8ef89656cea"
+ }
+ Frame {
+ msec: 1824
+ hash: "0c20d12464abbdc45041ea5d9f2719b1"
+ }
+ Frame {
+ msec: 1840
+ hash: "bc426fb7c31751665b0d3f16e2cb0173"
+ }
+ Frame {
+ msec: 1856
+ hash: "ef8941674cb61f54853dc33652bb854e"
+ }
+ Frame {
+ msec: 1872
+ hash: "dd60cbaff6f34027474e92315dbc0ebc"
+ }
+ Frame {
+ msec: 1888
+ hash: "6d63fb5c8a80f0280e88b2cdf8641bb9"
+ }
+ Frame {
+ msec: 1904
+ hash: "e74fe4a6bd92cbe8629c8bc8a870104d"
+ }
+ Frame {
+ msec: 1920
+ image: "pauseAnimation.1.png"
+ }
+ Frame {
+ msec: 1936
+ hash: "a725b59b4947357546bbfc7df3d830af"
+ }
+ Frame {
+ msec: 1952
+ hash: "dcf2867c127e041970047ec8f3edc04f"
+ }
+ Frame {
+ msec: 1968
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 1984
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 2000
+ hash: "dcf2867c127e041970047ec8f3edc04f"
+ }
+ Frame {
+ msec: 2016
+ hash: "41ba853c3403f68a23e708df82e21c53"
+ }
+ Frame {
+ msec: 2032
+ hash: "ce57e27af329eba4fac3ab891f0407ce"
+ }
+ Frame {
+ msec: 2048
+ hash: "ce57e27af329eba4fac3ab891f0407ce"
+ }
+ Frame {
+ msec: 2064
+ hash: "a725b59b4947357546bbfc7df3d830af"
+ }
+ Frame {
+ msec: 2080
+ hash: "a725b59b4947357546bbfc7df3d830af"
+ }
+ Frame {
+ msec: 2096
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 2112
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 2128
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 2144
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 2160
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 2176
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 2192
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 2208
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 2224
+ hash: "a725b59b4947357546bbfc7df3d830af"
+ }
+ Frame {
+ msec: 2240
+ hash: "a725b59b4947357546bbfc7df3d830af"
+ }
+ Frame {
+ msec: 2256
+ hash: "ce57e27af329eba4fac3ab891f0407ce"
+ }
+ Frame {
+ msec: 2272
+ hash: "ce57e27af329eba4fac3ab891f0407ce"
+ }
+ Frame {
+ msec: 2288
+ hash: "41ba853c3403f68a23e708df82e21c53"
+ }
+ Frame {
+ msec: 2304
+ hash: "dcf2867c127e041970047ec8f3edc04f"
+ }
+ Frame {
+ msec: 2320
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 2336
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2352
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 2368
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 2384
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 2400
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 2416
+ hash: "dcf2867c127e041970047ec8f3edc04f"
+ }
+ Frame {
+ msec: 2432
+ hash: "dcf2867c127e041970047ec8f3edc04f"
+ }
+ Frame {
+ msec: 2448
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 2464
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 2480
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 2496
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 2512
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2528
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2544
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2560
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2576
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2592
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2608
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2624
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2640
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2656
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2672
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2688
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2704
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2720
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2736
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2752
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2768
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2784
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2800
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2816
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2832
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2848
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2864
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2880
+ image: "pauseAnimation.2.png"
+ }
+ Frame {
+ msec: 2896
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2912
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2928
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2944
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2960
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2976
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 2992
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3008
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3024
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3040
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3056
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3072
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3088
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3104
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3120
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3136
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3152
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3168
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3184
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3200
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3216
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3232
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3248
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3264
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3280
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3296
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3312
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3328
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3344
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3360
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3376
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3392
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3408
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3424
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3440
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3456
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3472
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3488
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3504
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3520
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3536
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 3552
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 3568
+ hash: "dcf2867c127e041970047ec8f3edc04f"
+ }
+ Frame {
+ msec: 3584
+ hash: "ce57e27af329eba4fac3ab891f0407ce"
+ }
+ Frame {
+ msec: 3600
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 3616
+ hash: "e74fe4a6bd92cbe8629c8bc8a870104d"
+ }
+ Frame {
+ msec: 3632
+ hash: "e11455d4e23a5a865e222a7aba4ba4f9"
+ }
+ Frame {
+ msec: 3648
+ hash: "8757668e56be6449ec375f0b8fed1be3"
+ }
+ Frame {
+ msec: 3664
+ hash: "53ae93140252373eaa4d9da73756bd8e"
+ }
+ Frame {
+ msec: 3680
+ hash: "a88a8129259f86df5a73addc3649ad37"
+ }
+ Frame {
+ msec: 3696
+ hash: "630d90eef2673a69e8ebc4ef1ba40e81"
+ }
+ Frame {
+ msec: 3712
+ hash: "b7208d103b63a936dff8dd8ed224237f"
+ }
+ Frame {
+ msec: 3728
+ hash: "1516c3547c7cf64832b3bc7da7c44521"
+ }
+ Frame {
+ msec: 3744
+ hash: "49f5d6fd45c195a8d245b7fefc1277ab"
+ }
+ Frame {
+ msec: 3760
+ hash: "f5afd9cf8ffe27e9992454b9e68688cb"
+ }
+ Frame {
+ msec: 3776
+ hash: "7a4528b000a4ea142d1c77407fa1f581"
+ }
+ Frame {
+ msec: 3792
+ hash: "5f18a81707f23d377e81a27c1fc41ce9"
+ }
+ Frame {
+ msec: 3808
+ hash: "005acbef952a8ee536e6308a48223e65"
+ }
+ Frame {
+ msec: 3824
+ hash: "85c135ef72d3d25658a3663e69ffb7c2"
+ }
+ Frame {
+ msec: 3840
+ image: "pauseAnimation.3.png"
+ }
+ Frame {
+ msec: 3856
+ hash: "20258f07c613958c32f783466771391a"
+ }
+ Frame {
+ msec: 3872
+ hash: "9650fd0364c01b11e4f5dcce51d008af"
+ }
+ Frame {
+ msec: 3888
+ hash: "f340cdf60c6d4c29d26b7202a093ec70"
+ }
+ Frame {
+ msec: 3904
+ hash: "d754d35d0793f9f7d4f6249a874e4c45"
+ }
+ Frame {
+ msec: 3920
+ hash: "79ec710576427df73dd03f39fba6e2eb"
+ }
+ Frame {
+ msec: 3936
+ hash: "45281a70021f81dbef30334b1480da1b"
+ }
+ Frame {
+ msec: 3952
+ hash: "ffd39c1122fe2f7877ef30591b539b40"
+ }
+ Frame {
+ msec: 3968
+ hash: "4ac43a03cc6f2020ab5f894d704092ac"
+ }
+ Frame {
+ msec: 3984
+ hash: "c1a7b7d6d64ac5584c073c2881290696"
+ }
+ Frame {
+ msec: 4000
+ hash: "29ece1bca4d21fb5862091317d430a13"
+ }
+ Frame {
+ msec: 4016
+ hash: "29ece1bca4d21fb5862091317d430a13"
+ }
+ Frame {
+ msec: 4032
+ hash: "29ece1bca4d21fb5862091317d430a13"
+ }
+ Frame {
+ msec: 4048
+ hash: "29ece1bca4d21fb5862091317d430a13"
+ }
+ Frame {
+ msec: 4064
+ hash: "29ece1bca4d21fb5862091317d430a13"
+ }
+ Frame {
+ msec: 4080
+ hash: "c1a7b7d6d64ac5584c073c2881290696"
+ }
+ Frame {
+ msec: 4096
+ hash: "c1a7b7d6d64ac5584c073c2881290696"
+ }
+ Frame {
+ msec: 4112
+ hash: "4ac43a03cc6f2020ab5f894d704092ac"
+ }
+ Frame {
+ msec: 4128
+ hash: "4ac43a03cc6f2020ab5f894d704092ac"
+ }
+ Frame {
+ msec: 4144
+ hash: "ffd39c1122fe2f7877ef30591b539b40"
+ }
+ Frame {
+ msec: 4160
+ hash: "62a7133012348f2ec3a388fb685ecc3f"
+ }
+ Frame {
+ msec: 4176
+ hash: "45281a70021f81dbef30334b1480da1b"
+ }
+ Frame {
+ msec: 4192
+ hash: "6cc9de62a0c8fa5e42eac1b01e99ac32"
+ }
+ Frame {
+ msec: 4208
+ hash: "79ec710576427df73dd03f39fba6e2eb"
+ }
+ Frame {
+ msec: 4224
+ hash: "5be4f5c67941efb6fcea363c79f1e321"
+ }
+ Frame {
+ msec: 4240
+ hash: "7d9096b1eb940c82a37baf39ef3ccf3e"
+ }
+ Frame {
+ msec: 4256
+ hash: "e87b00bfc2c2a75a4234ec02a057ad3a"
+ }
+ Frame {
+ msec: 4272
+ hash: "da60100dc55023c3bab367d97c8f6a85"
+ }
+ Frame {
+ msec: 4288
+ hash: "dc98a9bdd99367c1e9b838d4be489dcc"
+ }
+ Frame {
+ msec: 4304
+ hash: "b2c778a5eff5f01edc54f03d8b4de8c7"
+ }
+ Frame {
+ msec: 4320
+ hash: "9650fd0364c01b11e4f5dcce51d008af"
+ }
+ Frame {
+ msec: 4336
+ hash: "2cb09d9655ecc30ae6a591b28c0d355c"
+ }
+ Frame {
+ msec: 4352
+ hash: "4db9bc6c11caf1d77794c2eabb62a44e"
+ }
+ Frame {
+ msec: 4368
+ hash: "ce2b5dd7418868acf86fea6ad19cc0c5"
+ }
+ Frame {
+ msec: 4384
+ hash: "c4f844ee71f23635bb3ec7375f6a134f"
+ }
+ Frame {
+ msec: 4400
+ hash: "4e1fda8a0495ef968c1cffb1257426d7"
+ }
+ Frame {
+ msec: 4416
+ hash: "19d2ae617a49b57dd012677e2834469c"
+ }
+ Frame {
+ msec: 4432
+ hash: "f438e8d2c16b5de677924c8411219b19"
+ }
+ Frame {
+ msec: 4448
+ hash: "005acbef952a8ee536e6308a48223e65"
+ }
+ Frame {
+ msec: 4464
+ hash: "87b71778d52cd8563d171151d4d32407"
+ }
+ Frame {
+ msec: 4480
+ hash: "691cd8bf5c7802ff6c5024827a379fc6"
+ }
+ Frame {
+ msec: 4496
+ hash: "ab442c0173c3d221b6782d28001dac77"
+ }
+ Frame {
+ msec: 4512
+ hash: "6f886d4538704c2fad4d84c68214109f"
+ }
+ Frame {
+ msec: 4528
+ hash: "56d39f233fae41c60499d6161f891cbc"
+ }
+ Frame {
+ msec: 4544
+ hash: "95d987c3fd1352fb81c42c63634fe53b"
+ }
+ Frame {
+ msec: 4560
+ hash: "96dc84c0c548021910e7c5b580179054"
+ }
+ Frame {
+ msec: 4576
+ hash: "ddb71cbd57f6e43744d533d4f72b08db"
+ }
+ Frame {
+ msec: 4592
+ hash: "f7ab4b197bea455b22f259913438d207"
+ }
+ Frame {
+ msec: 4608
+ hash: "2ad64cb01c9d50e0118d5ece0a644df2"
+ }
+ Frame {
+ msec: 4624
+ hash: "6579681c59dd571df0ee4429d74fb5c7"
+ }
+ Frame {
+ msec: 4640
+ hash: "630d90eef2673a69e8ebc4ef1ba40e81"
+ }
+ Frame {
+ msec: 4656
+ hash: "3db5e30ef19ea693c21ccf72892c4390"
+ }
+ Frame {
+ msec: 4672
+ hash: "721d7061811b5439c2e8e395917494bc"
+ }
+ Frame {
+ msec: 4688
+ hash: "bc426fb7c31751665b0d3f16e2cb0173"
+ }
+ Frame {
+ msec: 4704
+ hash: "e11455d4e23a5a865e222a7aba4ba4f9"
+ }
+ Frame {
+ msec: 4720
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 4736
+ hash: "dcf2867c127e041970047ec8f3edc04f"
+ }
+ Frame {
+ msec: 4752
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 4768
+ hash: "41ba853c3403f68a23e708df82e21c53"
+ }
+ Frame {
+ msec: 4784
+ hash: "a725b59b4947357546bbfc7df3d830af"
+ }
+ Frame {
+ msec: 4800
+ image: "pauseAnimation.4.png"
+ }
+ Frame {
+ msec: 4816
+ hash: "f0d8132489c2f2ef760e905b3c093726"
+ }
+ Frame {
+ msec: 4832
+ hash: "e11455d4e23a5a865e222a7aba4ba4f9"
+ }
+ Frame {
+ msec: 4848
+ hash: "dd60cbaff6f34027474e92315dbc0ebc"
+ }
+ Frame {
+ msec: 4864
+ hash: "8757668e56be6449ec375f0b8fed1be3"
+ }
+ Frame {
+ msec: 4880
+ hash: "bc426fb7c31751665b0d3f16e2cb0173"
+ }
+ Frame {
+ msec: 4896
+ hash: "b3f4a2165ec1ee971542b8ef89656cea"
+ }
+ Frame {
+ msec: 4912
+ hash: "53ae93140252373eaa4d9da73756bd8e"
+ }
+ Frame {
+ msec: 4928
+ hash: "721d7061811b5439c2e8e395917494bc"
+ }
+ Frame {
+ msec: 4944
+ hash: "af3120fe262d2489c0ed33fbbee1549f"
+ }
+ Frame {
+ msec: 4960
+ hash: "a8b624ebfc9ab713d1ce55f318a6e90d"
+ }
+ Frame {
+ msec: 4976
+ hash: "a88a8129259f86df5a73addc3649ad37"
+ }
+ Frame {
+ msec: 4992
+ hash: "3db5e30ef19ea693c21ccf72892c4390"
+ }
+ Frame {
+ msec: 5008
+ hash: "3db5e30ef19ea693c21ccf72892c4390"
+ }
+ Frame {
+ msec: 5024
+ hash: "e553f365912586c6408c8c53b1b7d118"
+ }
+ Frame {
+ msec: 5040
+ hash: "e553f365912586c6408c8c53b1b7d118"
+ }
+ Frame {
+ msec: 5056
+ hash: "1373545e43fff7251cec9e8375ea267f"
+ }
+ Frame {
+ msec: 5072
+ hash: "1373545e43fff7251cec9e8375ea267f"
+ }
+ Frame {
+ msec: 5088
+ hash: "1373545e43fff7251cec9e8375ea267f"
+ }
+ Frame {
+ msec: 5104
+ hash: "1373545e43fff7251cec9e8375ea267f"
+ }
+ Frame {
+ msec: 5120
+ hash: "1373545e43fff7251cec9e8375ea267f"
+ }
+ Frame {
+ msec: 5136
+ hash: "1373545e43fff7251cec9e8375ea267f"
+ }
+ Frame {
+ msec: 5152
+ hash: "1373545e43fff7251cec9e8375ea267f"
+ }
+ Frame {
+ msec: 5168
+ hash: "e553f365912586c6408c8c53b1b7d118"
+ }
+ Frame {
+ msec: 5184
+ hash: "e553f365912586c6408c8c53b1b7d118"
+ }
+ Frame {
+ msec: 5200
+ hash: "3db5e30ef19ea693c21ccf72892c4390"
+ }
+ Frame {
+ msec: 5216
+ hash: "3db5e30ef19ea693c21ccf72892c4390"
+ }
+ Frame {
+ msec: 5232
+ hash: "a88a8129259f86df5a73addc3649ad37"
+ }
+ Frame {
+ msec: 5248
+ hash: "a8b624ebfc9ab713d1ce55f318a6e90d"
+ }
+ Frame {
+ msec: 5264
+ hash: "af3120fe262d2489c0ed33fbbee1549f"
+ }
+ Frame {
+ msec: 5280
+ hash: "721d7061811b5439c2e8e395917494bc"
+ }
+ Frame {
+ msec: 5296
+ hash: "53ae93140252373eaa4d9da73756bd8e"
+ }
+ Frame {
+ msec: 5312
+ hash: "b3f4a2165ec1ee971542b8ef89656cea"
+ }
+ Frame {
+ msec: 5328
+ hash: "0c20d12464abbdc45041ea5d9f2719b1"
+ }
+ Frame {
+ msec: 5344
+ hash: "8757668e56be6449ec375f0b8fed1be3"
+ }
+ Frame {
+ msec: 5360
+ hash: "ef8941674cb61f54853dc33652bb854e"
+ }
+ Frame {
+ msec: 5376
+ hash: "e11455d4e23a5a865e222a7aba4ba4f9"
+ }
+ Frame {
+ msec: 5392
+ hash: "6d63fb5c8a80f0280e88b2cdf8641bb9"
+ }
+ Frame {
+ msec: 5408
+ hash: "e74fe4a6bd92cbe8629c8bc8a870104d"
+ }
+ Frame {
+ msec: 5424
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 5440
+ hash: "ce57e27af329eba4fac3ab891f0407ce"
+ }
+ Frame {
+ msec: 5456
+ hash: "dcf2867c127e041970047ec8f3edc04f"
+ }
+ Frame {
+ msec: 5472
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 5488
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 5504
+ hash: "dcf2867c127e041970047ec8f3edc04f"
+ }
+ Frame {
+ msec: 5520
+ hash: "41ba853c3403f68a23e708df82e21c53"
+ }
+ Frame {
+ msec: 5536
+ hash: "ce57e27af329eba4fac3ab891f0407ce"
+ }
+ Frame {
+ msec: 5552
+ hash: "ce57e27af329eba4fac3ab891f0407ce"
+ }
+ Frame {
+ msec: 5568
+ hash: "a725b59b4947357546bbfc7df3d830af"
+ }
+ Frame {
+ msec: 5584
+ hash: "a725b59b4947357546bbfc7df3d830af"
+ }
+ Frame {
+ msec: 5600
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 5616
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 5632
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 5648
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 5664
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 5680
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 5696
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 5712
+ hash: "3042003c067b257de2cb32f650dde693"
+ }
+ Frame {
+ msec: 5728
+ hash: "a725b59b4947357546bbfc7df3d830af"
+ }
+ Frame {
+ msec: 5744
+ hash: "a725b59b4947357546bbfc7df3d830af"
+ }
+ Frame {
+ msec: 5760
+ image: "pauseAnimation.5.png"
+ }
+ Frame {
+ msec: 5776
+ hash: "41ba853c3403f68a23e708df82e21c53"
+ }
+ Frame {
+ msec: 5792
+ hash: "41ba853c3403f68a23e708df82e21c53"
+ }
+ Frame {
+ msec: 5808
+ hash: "dcf2867c127e041970047ec8f3edc04f"
+ }
+ Frame {
+ msec: 5824
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 5840
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 5856
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 5872
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 5888
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 5904
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 5920
+ hash: "dcf2867c127e041970047ec8f3edc04f"
+ }
+ Frame {
+ msec: 5936
+ hash: "dcf2867c127e041970047ec8f3edc04f"
+ }
+ Frame {
+ msec: 5952
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 5968
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 5984
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 6000
+ hash: "675ebbdd22dd22ce45993df4af1acfe9"
+ }
+ Frame {
+ msec: 6016
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6032
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6048
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6064
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6080
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6096
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6112
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6128
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6144
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6160
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6176
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6192
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6208
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6224
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6240
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6256
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6272
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6288
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6304
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6320
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6336
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6352
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6368
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 67108864
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 6384
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6400
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+ Frame {
+ msec: 6416
+ hash: "a350b70c5238a340e85fd4a3ec0390a3"
+ }
+}
diff --git a/tests/auto/declarative/visual/pauseAnimation/pauseAnimation.qml b/tests/auto/declarative/visual/pauseAnimation/pauseAnimation.qml
new file mode 100644
index 0000000..fba8ae6
--- /dev/null
+++ b/tests/auto/declarative/visual/pauseAnimation/pauseAnimation.qml
@@ -0,0 +1,30 @@
+import Qt 4.6
+
+Rectangle {
+ id: rect
+ width: 120
+ height: 200
+ color: "white"
+ Image {
+ id: img
+ source: "pics/qtlogo.png"
+ x: 60-width/2
+ y: 200-height
+ y: SequentialAnimation {
+ running: true
+ repeat: true
+ NumberAnimation {
+ to: 0; duration: 500
+ easing: "easeInOutQuad"
+ }
+ NumberAnimation {
+ to: 200-img.height
+ easing: "easeOutBounce"
+ duration: 2000
+ }
+ PauseAnimation {
+ duration: 1000
+ }
+ }
+ }
+}
diff --git a/tests/auto/declarative/visual/pauseAnimation/pics/qtlogo.png b/tests/auto/declarative/visual/pauseAnimation/pics/qtlogo.png
new file mode 100644
index 0000000..399bd0b
--- /dev/null
+++ b/tests/auto/declarative/visual/pauseAnimation/pics/qtlogo.png
Binary files differ
diff --git a/tests/auto/declarative/visual/qfxtext/elide/data-X11/elide.0.png b/tests/auto/declarative/visual/qfxtext/elide/data-X11/elide.0.png
new file mode 100644
index 0000000..b2734e4
--- /dev/null
+++ b/tests/auto/declarative/visual/qfxtext/elide/data-X11/elide.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/qfxtext/elide/data-X11/elide.qml b/tests/auto/declarative/visual/qfxtext/elide/data-X11/elide.qml
new file mode 100644
index 0000000..d5f1cff
--- /dev/null
+++ b/tests/auto/declarative/visual/qfxtext/elide/data-X11/elide.qml
@@ -0,0 +1,279 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 32
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 48
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 64
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 80
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 96
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 112
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 128
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 144
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 160
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 176
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 192
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 208
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 224
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 240
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 256
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 272
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 288
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 304
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 320
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 336
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 352
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 368
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 384
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 400
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 416
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 432
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 448
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 464
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 480
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 496
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 512
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 528
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 544
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 560
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 576
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 592
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 608
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 624
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 640
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 656
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 672
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 688
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 704
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 720
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 736
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 752
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 768
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 784
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 800
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 816
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 832
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 848
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 864
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 880
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 896
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 912
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 928
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 944
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 960
+ image: "elide.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 0
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 992
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 1008
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 1024
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 1040
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+ Frame {
+ msec: 1056
+ hash: "dd213807dd517c25972f0f6f42b01c17"
+ }
+}
diff --git a/tests/auto/declarative/visual/qfxtext/elide/data-X11/multilength.0.png b/tests/auto/declarative/visual/qfxtext/elide/data-X11/multilength.0.png
new file mode 100644
index 0000000..6d3931c
--- /dev/null
+++ b/tests/auto/declarative/visual/qfxtext/elide/data-X11/multilength.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/qfxtext/elide/data-X11/multilength.qml b/tests/auto/declarative/visual/qfxtext/elide/data-X11/multilength.qml
new file mode 100644
index 0000000..a43fcdd
--- /dev/null
+++ b/tests/auto/declarative/visual/qfxtext/elide/data-X11/multilength.qml
@@ -0,0 +1,303 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "0d036aed3200afec73b1fc10cda324af"
+ }
+ Frame {
+ msec: 32
+ hash: "e117576c30a5bebb866ee8e0d596f510"
+ }
+ Frame {
+ msec: 48
+ hash: "2a00d57edee71da236ef9a041e7ed0d6"
+ }
+ Frame {
+ msec: 64
+ hash: "fa326ddfc21828d98dd38964c6e9b09b"
+ }
+ Frame {
+ msec: 80
+ hash: "02d3d8f626f0a3afd57affce32f10cff"
+ }
+ Frame {
+ msec: 96
+ hash: "81abd357826e75917f5cb3758c0cdd4a"
+ }
+ Frame {
+ msec: 112
+ hash: "3c544d599c735224bda95a3a9cbf413f"
+ }
+ Frame {
+ msec: 128
+ hash: "59ef105daf3d509ab17b618fc761b4dc"
+ }
+ Frame {
+ msec: 144
+ hash: "f61d62a092cc1adf7576992d285eb60a"
+ }
+ Frame {
+ msec: 160
+ hash: "8c0f2f793ea61df2dff38ac609365da1"
+ }
+ Frame {
+ msec: 176
+ hash: "28f9372f9ecfd6c33e5578ea2b8bd202"
+ }
+ Frame {
+ msec: 192
+ hash: "129757726f161c58ad52c8a2bb8ff54d"
+ }
+ Frame {
+ msec: 208
+ hash: "517aa84afac3efea0b21fff497951e69"
+ }
+ Frame {
+ msec: 224
+ hash: "fce8967bf12f6525b21c644aaca2fffd"
+ }
+ Frame {
+ msec: 240
+ hash: "926108bca8cb3a21b29207e0dca29d9d"
+ }
+ Frame {
+ msec: 256
+ hash: "41c0d7a87ad0995c3343f9e2bee558a4"
+ }
+ Frame {
+ msec: 272
+ hash: "7992a2eb7a561aa28a9a2f693dab0d5f"
+ }
+ Frame {
+ msec: 288
+ hash: "b2712c6162cea59cfd18966713252512"
+ }
+ Frame {
+ msec: 304
+ hash: "1fa71faa48d7f414a4a6b93214a39a44"
+ }
+ Frame {
+ msec: 320
+ hash: "f1ffc3a012ae78f88a5f698944f605a2"
+ }
+ Frame {
+ msec: 336
+ hash: "62dfc0e3846e7641453f6bf077bb0671"
+ }
+ Frame {
+ msec: 352
+ hash: "167f30be62b60eb0e08af046fe18fbb7"
+ }
+ Frame {
+ msec: 368
+ hash: "1e441db0c591642ce9c0457436708d13"
+ }
+ Frame {
+ msec: 384
+ hash: "f4400c089b8e4391c6827323333ef733"
+ }
+ Frame {
+ msec: 400
+ hash: "6b4e44cb73c62dd833cf52391e8b55a2"
+ }
+ Frame {
+ msec: 416
+ hash: "12286364840fa446009a9005ca0b25fe"
+ }
+ Frame {
+ msec: 432
+ hash: "67971a61bfe3113dcf7404137d58cc65"
+ }
+ Frame {
+ msec: 448
+ hash: "3ff170f552466fa3a0494fc489363f68"
+ }
+ Frame {
+ msec: 464
+ hash: "c946293a166077db9426757b2e393006"
+ }
+ Frame {
+ msec: 480
+ hash: "14d716e18c7fa7d27b69c93d815df9b9"
+ }
+ Frame {
+ msec: 496
+ hash: "7bc490a27378ab400658bff0334cb7dd"
+ }
+ Frame {
+ msec: 512
+ hash: "2a3bd86f88aeb8f09f6feea8ba282942"
+ }
+ Frame {
+ msec: 528
+ hash: "1ad04b814df09f9a1c672da659ff7390"
+ }
+ Frame {
+ msec: 544
+ hash: "05a4b8bf3ceb70a01d33a5692467bd7e"
+ }
+ Frame {
+ msec: 560
+ hash: "aca0effde610ed1c216b138a7dfe407f"
+ }
+ Frame {
+ msec: 576
+ hash: "296b234ae49eaae3548c7d31447c0765"
+ }
+ Frame {
+ msec: 592
+ hash: "1254ac81bb961f210dd14cfa650da680"
+ }
+ Frame {
+ msec: 608
+ hash: "2b6a03813152cd87469b351339690736"
+ }
+ Frame {
+ msec: 624
+ hash: "12080186fcdd5b9e73720f267cdf1065"
+ }
+ Frame {
+ msec: 640
+ hash: "0cf99a1742df091f0715489d7a54bcd8"
+ }
+ Frame {
+ msec: 656
+ hash: "bbbde5370000d3bec9872eab0d2c0bd0"
+ }
+ Frame {
+ msec: 672
+ hash: "32cb6332b3028ef515ce328450769bd7"
+ }
+ Frame {
+ msec: 688
+ hash: "9696c6ea620e833cc1290710895d164f"
+ }
+ Frame {
+ msec: 704
+ hash: "cce4fc1f40467d22a1a05ec005cad93a"
+ }
+ Frame {
+ msec: 720
+ hash: "5466c6bec6b3b0eee159ffcb5ad1130c"
+ }
+ Frame {
+ msec: 736
+ hash: "2d8ccdca543eb52b1f5f947490d284c5"
+ }
+ Frame {
+ msec: 752
+ hash: "a72cf61a2e5c70cbdb2b9e99d588ffe1"
+ }
+ Frame {
+ msec: 768
+ hash: "2885a4a60d231b8bed4f444f110cd735"
+ }
+ Frame {
+ msec: 784
+ hash: "4167cbe045e6f922797eeed9378e96b6"
+ }
+ Frame {
+ msec: 800
+ hash: "2a903361ed6c58659741274eac6c19f4"
+ }
+ Frame {
+ msec: 816
+ hash: "e98ad2f87ebb183832efba5954228bea"
+ }
+ Frame {
+ msec: 832
+ hash: "e875b1d4412fd8a86a6e71b08c078fe0"
+ }
+ Frame {
+ msec: 848
+ hash: "6fb0d9e4237a74552b9067c288e0d5dd"
+ }
+ Frame {
+ msec: 864
+ hash: "a64b5a60fe0184b4e439b157409f7567"
+ }
+ Frame {
+ msec: 880
+ hash: "102d5f88cf9ae13af9983936dbc2ecae"
+ }
+ Frame {
+ msec: 896
+ hash: "e1d58edd9cdc3902af02c263b9b357a1"
+ }
+ Frame {
+ msec: 912
+ hash: "d8a934c488f1e80ed49108b360022576"
+ }
+ Frame {
+ msec: 928
+ hash: "d918eae34d503a0c3669fa0b5fbd7dad"
+ }
+ Frame {
+ msec: 944
+ hash: "bba616d8933bb054735e235782689c95"
+ }
+ Frame {
+ msec: 960
+ image: "multilength.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "12b8f8889033ecddabf0b20585157a5e"
+ }
+ Frame {
+ msec: 992
+ hash: "afe7a8d6184f9ebef435e1857a7f08b2"
+ }
+ Frame {
+ msec: 1008
+ hash: "d222b51d852e63a9e2401c57b86c17f7"
+ }
+ Frame {
+ msec: 1024
+ hash: "36196bcde10012a2e0624ae062da5fdb"
+ }
+ Frame {
+ msec: 1040
+ hash: "e4cb79b57774c652c3bcf86b7e8cbce9"
+ }
+ Frame {
+ msec: 1056
+ hash: "79c040be179aa486c6a3e2a5198944af"
+ }
+ Frame {
+ msec: 1072
+ hash: "4334a272bed3fdaa1e44bb81c55d3e3a"
+ }
+ Frame {
+ msec: 1088
+ hash: "5aeebf849fb7101b87ec699c4590a348"
+ }
+ Frame {
+ msec: 1104
+ hash: "c18780619ee3069f2ba17d00b85d6941"
+ }
+ Frame {
+ msec: 1120
+ hash: "ef17d1d1b566fc0e51cef54e3f460b91"
+ }
+ Frame {
+ msec: 1136
+ hash: "2c76668596c354dadea513325b79d14e"
+ }
+ Frame {
+ msec: 1152
+ hash: "6055f676c9fa2a3333301e6dac958b34"
+ }
+ Frame {
+ msec: 1168
+ hash: "3fc9e199eac26907d95381e064c0e5cd"
+ }
+ Frame {
+ msec: 1184
+ hash: "60edfb3a25700ead1795e226015eb229"
+ }
+}
diff --git a/tests/auto/declarative/visual/qfxtext/elide/data/elide.0.png b/tests/auto/declarative/visual/qfxtext/elide/data/elide.0.png
new file mode 100644
index 0000000..1a8c89b
--- /dev/null
+++ b/tests/auto/declarative/visual/qfxtext/elide/data/elide.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/qfxtext/elide/data/elide.qml b/tests/auto/declarative/visual/qfxtext/elide/data/elide.qml
new file mode 100644
index 0000000..59f17f7
--- /dev/null
+++ b/tests/auto/declarative/visual/qfxtext/elide/data/elide.qml
@@ -0,0 +1,279 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 32
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 48
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 64
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 80
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 96
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 112
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 128
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 144
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 160
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 176
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 192
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 208
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 224
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 240
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 256
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 272
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 288
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 304
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 320
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 336
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 352
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 368
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 384
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 400
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 416
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 432
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 448
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 464
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 480
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 496
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 512
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 528
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 544
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 560
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 576
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 592
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 608
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 624
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 640
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 656
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 672
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 688
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 704
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 720
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 736
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 752
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 768
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 784
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 800
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 816
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 832
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 848
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 864
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 880
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 896
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 912
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 928
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 944
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 960
+ image: "elide.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 67108864
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 992
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 1008
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 1024
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 1040
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+ Frame {
+ msec: 1056
+ hash: "c80d2bcd4be99c73e6c628870206ce8c"
+ }
+}
diff --git a/tests/auto/declarative/visual/qfxtext/elide/elide.qml b/tests/auto/declarative/visual/qfxtext/elide/elide.qml
new file mode 100644
index 0000000..3c9ea5b
--- /dev/null
+++ b/tests/auto/declarative/visual/qfxtext/elide/elide.qml
@@ -0,0 +1,31 @@
+import Qt 4.6
+
+Rectangle {
+ width: childrenRect.width
+ height: childrenRect.height
+ Column {
+ width: 80
+ height: MyText.height*4
+ Text {
+ elide: "ElideLeft"
+ text: "aaa bbb ccc ddd eee fff"
+ width: 80
+ id: MyText
+ }
+ Text {
+ elide: "ElideMiddle"
+ text: "aaa bbb ccc ddd eee fff"
+ width: 80
+ }
+ Text {
+ elide: "ElideRight"
+ text: "aaa bbb ccc ddd eee fff"
+ width: 80
+ }
+ Text {
+ elide: "ElideNone"
+ text: "aaa bbb ccc ddd eee fff"
+ width: 80
+ }
+ }
+}
diff --git a/tests/auto/declarative/visual/qfxtext/elide/multilength.qml b/tests/auto/declarative/visual/qfxtext/elide/multilength.qml
new file mode 100644
index 0000000..fa74cc4
--- /dev/null
+++ b/tests/auto/declarative/visual/qfxtext/elide/multilength.qml
@@ -0,0 +1,19 @@
+import Qt 4.6
+
+Rectangle {
+ width: 500
+ height: 50
+ color: "lightBlue"
+ Rectangle {
+ width: MyText.width
+ height: MyText.height
+ color: "white"
+ anchors.centerIn: parent
+ Text {
+ id: MyText
+ width: NumberAnimation { from: 500; to: 0; running: true; repeat: true; duration: 1000 }
+ elide: "ElideRight"
+ text: "Brevity is the soul of wit, and tediousness the limbs and outward flourishes.\x9CBrevity is a great charm of eloquence.\x9CBe concise!\x9CSHHHHHHHHHHHHHHHHHHHHHHHHHHHH"
+ }
+ }
+}
diff --git a/tests/auto/declarative/visual/qfxwebview/autosize/autosize.qml b/tests/auto/declarative/visual/qfxwebview/autosize/autosize.qml
new file mode 100644
index 0000000..74c6844
--- /dev/null
+++ b/tests/auto/declarative/visual/qfxwebview/autosize/autosize.qml
@@ -0,0 +1,60 @@
+import Qt 4.6
+
+// The WebView size is determined by the width, height,
+// preferredWidth, and preferredHeight properties.
+Rectangle {
+ id: rect
+ color: "white"
+ width: 200
+ height: layout.height
+ Column {
+ id: layout
+ spacing: 2
+ WebView {
+ html: "No width defined."
+ Rectangle { color: "#10000000"
+ anchors.fill: parent
+ }
+ }
+ WebView {
+ width: rect.width
+ html: "The width is full."
+ Rectangle {
+ color: "#10000000"
+ anchors.fill: parent
+ }
+ }
+ WebView {
+ width: rect.width/2
+ html: "The width is half."
+ Rectangle {
+ color: "#10000000"
+ anchors.fill: parent
+ }
+ }
+ WebView {
+ preferredWidth: rect.width/2
+ html: "The preferredWidth is half."
+ Rectangle {
+ color: "#10000000"
+ anchors.fill: parent
+ }
+ }
+ WebView {
+ preferredWidth: rect.width/2
+ html: "The_preferredWidth_is_half."
+ Rectangle {
+ color: "#10000000"
+ anchors.fill: parent
+ }
+ }
+ WebView {
+ width: rect.width/2
+ html: "The_width_is_half."
+ Rectangle {
+ color: "#10000000"
+ anchors.fill: parent
+ }
+ }
+ }
+}
diff --git a/tests/auto/declarative/visual/qfxwebview/autosize/data/autosize.0.png b/tests/auto/declarative/visual/qfxwebview/autosize/data/autosize.0.png
new file mode 100644
index 0000000..1f28b9a
--- /dev/null
+++ b/tests/auto/declarative/visual/qfxwebview/autosize/data/autosize.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/qfxwebview/autosize/data/autosize.qml b/tests/auto/declarative/visual/qfxwebview/autosize/data/autosize.qml
new file mode 100644
index 0000000..47999be
--- /dev/null
+++ b/tests/auto/declarative/visual/qfxwebview/autosize/data/autosize.qml
@@ -0,0 +1,83 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 32
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 48
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 64
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 80
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 96
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 112
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 128
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 144
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 160
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 176
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 192
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 208
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 224
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 240
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 256
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 272
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 288
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+ Frame {
+ msec: 304
+ hash: "66539e1b1983d95386b0d30d6e969904"
+ }
+}
diff --git a/tests/auto/declarative/visual/repeater/basic1.qml b/tests/auto/declarative/visual/repeater/basic1.qml
new file mode 100644
index 0000000..f6899e8
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/basic1.qml
@@ -0,0 +1,28 @@
+import Qt 4.6
+
+Rectangle {
+ color: "blue"
+ width: 300
+ height: 200
+ id: Page
+ Row {
+ Repeater {
+ delegate: Rectangle {
+ color: "red"
+ width: 100
+ height: 100
+ Text {
+ text: name
+ }
+ }
+ model: ListModel {
+ ListElement {
+ name: "January"
+ }
+ ListElement {
+ name: "February"
+ }
+ }
+ }
+ }
+}
diff --git a/tests/auto/declarative/visual/repeater/basic2.qml b/tests/auto/declarative/visual/repeater/basic2.qml
new file mode 100644
index 0000000..15a1e91
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/basic2.qml
@@ -0,0 +1,32 @@
+import Qt 4.6
+
+Rectangle {
+ color: "blue"
+ width: 300
+ height: 200
+ id: Page
+ Component {
+ id: Delegate
+ Rectangle {
+ color: "red"
+ width: 100
+ height: 100
+ Text {
+ text: name
+ }
+ }
+ }
+ Row {
+ Repeater {
+ delegate: Delegate
+ model: ListModel {
+ ListElement {
+ name: "January"
+ }
+ ListElement {
+ name: "February"
+ }
+ }
+ }
+ }
+}
diff --git a/tests/auto/declarative/visual/repeater/basic3.qml b/tests/auto/declarative/visual/repeater/basic3.qml
new file mode 100644
index 0000000..4680534
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/basic3.qml
@@ -0,0 +1,30 @@
+import Qt 4.6
+
+Rectangle {
+ color: "blue"
+ width: 300
+ height: 200
+ id: Page
+ ListModel {
+ id: DataSource
+ ListElement {
+ name: "January"
+ }
+ ListElement {
+ name: "February"
+ }
+ }
+ Row {
+ Repeater {
+ model: DataSource
+ delegate: Rectangle {
+ color: "red"
+ width: 100
+ height: 100
+ Text {
+ text: name
+ }
+ }
+ }
+ }
+}
diff --git a/tests/auto/declarative/visual/repeater/basic4.qml b/tests/auto/declarative/visual/repeater/basic4.qml
new file mode 100644
index 0000000..6172493
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/basic4.qml
@@ -0,0 +1,34 @@
+import Qt 4.6
+
+Rectangle {
+ color: "blue"
+ width: 300
+ height: 200
+ id: Page
+ ListModel {
+ id: DataSource
+ ListElement {
+ name: "January"
+ }
+ ListElement {
+ name: "February"
+ }
+ }
+ Component {
+ id: Delegate
+ Rectangle {
+ color: "red"
+ width: 100
+ height: 100
+ Text {
+ text: name
+ }
+ }
+ }
+ Row {
+ Repeater {
+ model: DataSource
+ delegate: Delegate
+ }
+ }
+}
diff --git a/tests/auto/declarative/visual/repeater/data-X11/basic1.0.png b/tests/auto/declarative/visual/repeater/data-X11/basic1.0.png
new file mode 100644
index 0000000..18ab543
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/data-X11/basic1.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/repeater/data-X11/basic1.qml b/tests/auto/declarative/visual/repeater/data-X11/basic1.qml
new file mode 100644
index 0000000..bf215ca
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/data-X11/basic1.qml
@@ -0,0 +1,323 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 32
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 48
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 64
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 80
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 96
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 112
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 128
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 144
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 160
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 176
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 192
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 208
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 224
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 240
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 256
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 272
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 288
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 304
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 320
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 336
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 352
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 368
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 384
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 400
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 416
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 432
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 448
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 464
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 480
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 496
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 512
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 528
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 544
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 560
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 576
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 592
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 608
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 624
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 640
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 656
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 672
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 688
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 704
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 720
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 736
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 752
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 768
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 784
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 800
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 816
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 832
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 848
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 864
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 880
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 896
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 912
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 928
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 944
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 960
+ image: "basic1.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 992
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1008
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1024
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1040
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1056
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1072
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1088
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1104
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1120
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1136
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1152
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1168
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1184
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 0
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1200
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1216
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1232
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+}
diff --git a/tests/auto/declarative/visual/repeater/data-X11/basic2.0.png b/tests/auto/declarative/visual/repeater/data-X11/basic2.0.png
new file mode 100644
index 0000000..18ab543
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/data-X11/basic2.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/repeater/data-X11/basic2.qml b/tests/auto/declarative/visual/repeater/data-X11/basic2.qml
new file mode 100644
index 0000000..cb6b46c
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/data-X11/basic2.qml
@@ -0,0 +1,331 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 32
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 48
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 64
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 80
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 96
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 112
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 128
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 144
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 160
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 176
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 192
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 208
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 224
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 240
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 256
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 272
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 288
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 304
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 320
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 336
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 352
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 368
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 384
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 400
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 416
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 432
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 448
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 464
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 480
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 496
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 512
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 528
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 544
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 560
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 576
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 592
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 608
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 624
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 640
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 656
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 672
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 688
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 704
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 720
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 736
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 752
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 768
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 784
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 800
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 816
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 832
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 848
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 864
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 880
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 896
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 912
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 928
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 944
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 960
+ image: "basic2.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 992
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1008
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1024
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1040
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1056
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1072
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1088
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1104
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1120
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1136
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1152
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1168
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 0
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1184
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1200
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1216
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1232
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1248
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1264
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+}
diff --git a/tests/auto/declarative/visual/repeater/data-X11/basic3.0.png b/tests/auto/declarative/visual/repeater/data-X11/basic3.0.png
new file mode 100644
index 0000000..18ab543
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/data-X11/basic3.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/repeater/data-X11/basic3.qml b/tests/auto/declarative/visual/repeater/data-X11/basic3.qml
new file mode 100644
index 0000000..9545fa9
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/data-X11/basic3.qml
@@ -0,0 +1,347 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 32
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 48
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 64
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 80
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 96
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 112
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 128
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 144
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 160
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 176
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 192
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 208
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 224
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 240
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 256
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 272
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 288
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 304
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 320
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 336
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 352
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 368
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 384
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 400
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 416
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 432
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 448
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 464
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 480
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 496
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 512
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 528
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 544
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 560
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 576
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 592
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 608
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 624
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 640
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 656
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 672
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 688
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 704
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 720
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 736
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 752
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 768
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 784
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 800
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 816
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 832
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 848
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 864
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 880
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 896
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 912
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 928
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 944
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 960
+ image: "basic3.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 992
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1008
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1024
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1040
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1056
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1072
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1088
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1104
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1120
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1136
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1152
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1168
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1184
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1200
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1216
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1232
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 0
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1248
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1264
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1280
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1296
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1312
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1328
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+}
diff --git a/tests/auto/declarative/visual/repeater/data-X11/basic4.0.png b/tests/auto/declarative/visual/repeater/data-X11/basic4.0.png
new file mode 100644
index 0000000..18ab543
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/data-X11/basic4.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/repeater/data-X11/basic4.qml b/tests/auto/declarative/visual/repeater/data-X11/basic4.qml
new file mode 100644
index 0000000..4839206
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/data-X11/basic4.qml
@@ -0,0 +1,419 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 32
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 48
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 64
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 80
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 96
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 112
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 128
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 144
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 160
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 176
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 192
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 208
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 224
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 240
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 256
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 272
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 288
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 304
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 320
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 336
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 352
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 368
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 384
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 400
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 416
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 432
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 448
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 464
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 480
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 496
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 512
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 528
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 544
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 560
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 576
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 592
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 608
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 624
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 640
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 656
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 672
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 688
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 704
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 720
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 736
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 752
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 768
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 784
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 800
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 816
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 832
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 848
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 864
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 880
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 896
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 912
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 928
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 944
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 960
+ image: "basic4.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 992
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1008
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1024
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1040
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1056
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1072
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1088
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1104
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1120
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1136
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1152
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1168
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1184
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1200
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1216
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1232
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1248
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1264
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1280
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1296
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1312
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1328
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1344
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1360
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1376
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1392
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1408
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 0
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1424
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1440
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1456
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1472
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1488
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1504
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1520
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1536
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1552
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1568
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1584
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1600
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+ Frame {
+ msec: 1616
+ hash: "71dedc2f057c660fa5089de2dd6313a4"
+ }
+}
diff --git a/tests/auto/declarative/visual/repeater/data/basic1.0.png b/tests/auto/declarative/visual/repeater/data/basic1.0.png
new file mode 100644
index 0000000..aea0e98
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/data/basic1.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/repeater/data/basic1.qml b/tests/auto/declarative/visual/repeater/data/basic1.qml
new file mode 100644
index 0000000..9535a2c
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/data/basic1.qml
@@ -0,0 +1,323 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 32
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 48
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 64
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 80
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 96
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 112
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 128
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 144
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 160
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 176
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 192
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 208
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 224
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 240
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 256
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 272
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 288
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 304
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 320
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 336
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 352
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 368
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 384
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 400
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 416
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 432
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 448
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 464
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 480
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 496
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 512
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 528
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 544
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 560
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 576
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 592
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 608
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 624
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 640
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 656
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 672
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 688
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 704
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 720
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 736
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 752
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 768
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 784
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 800
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 816
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 832
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 848
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 864
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 880
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 896
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 912
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 928
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 944
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 960
+ image: "basic1.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 992
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1008
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1024
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1040
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1056
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1072
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1088
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1104
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1120
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1136
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1152
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1168
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1184
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 67108864
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1200
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1216
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1232
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+}
diff --git a/tests/auto/declarative/visual/repeater/data/basic2.0.png b/tests/auto/declarative/visual/repeater/data/basic2.0.png
new file mode 100644
index 0000000..aea0e98
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/data/basic2.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/repeater/data/basic2.qml b/tests/auto/declarative/visual/repeater/data/basic2.qml
new file mode 100644
index 0000000..81bc1f7
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/data/basic2.qml
@@ -0,0 +1,331 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 32
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 48
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 64
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 80
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 96
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 112
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 128
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 144
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 160
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 176
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 192
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 208
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 224
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 240
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 256
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 272
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 288
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 304
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 320
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 336
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 352
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 368
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 384
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 400
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 416
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 432
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 448
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 464
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 480
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 496
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 512
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 528
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 544
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 560
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 576
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 592
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 608
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 624
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 640
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 656
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 672
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 688
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 704
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 720
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 736
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 752
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 768
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 784
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 800
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 816
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 832
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 848
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 864
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 880
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 896
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 912
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 928
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 944
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 960
+ image: "basic2.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 992
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1008
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1024
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1040
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1056
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1072
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1088
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1104
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1120
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1136
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1152
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1168
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 67108864
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1184
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1200
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1216
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1232
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1248
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1264
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+}
diff --git a/tests/auto/declarative/visual/repeater/data/basic3.0.png b/tests/auto/declarative/visual/repeater/data/basic3.0.png
new file mode 100644
index 0000000..aea0e98
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/data/basic3.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/repeater/data/basic3.qml b/tests/auto/declarative/visual/repeater/data/basic3.qml
new file mode 100644
index 0000000..417eaab
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/data/basic3.qml
@@ -0,0 +1,347 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 32
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 48
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 64
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 80
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 96
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 112
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 128
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 144
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 160
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 176
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 192
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 208
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 224
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 240
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 256
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 272
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 288
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 304
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 320
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 336
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 352
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 368
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 384
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 400
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 416
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 432
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 448
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 464
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 480
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 496
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 512
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 528
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 544
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 560
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 576
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 592
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 608
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 624
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 640
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 656
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 672
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 688
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 704
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 720
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 736
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 752
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 768
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 784
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 800
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 816
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 832
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 848
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 864
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 880
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 896
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 912
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 928
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 944
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 960
+ image: "basic3.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 992
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1008
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1024
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1040
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1056
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1072
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1088
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1104
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1120
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1136
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1152
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1168
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1184
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1200
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1216
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1232
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 67108864
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1248
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1264
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1280
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1296
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1312
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1328
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+}
diff --git a/tests/auto/declarative/visual/repeater/data/basic4.0.png b/tests/auto/declarative/visual/repeater/data/basic4.0.png
new file mode 100644
index 0000000..aea0e98
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/data/basic4.0.png
Binary files differ
diff --git a/tests/auto/declarative/visual/repeater/data/basic4.qml b/tests/auto/declarative/visual/repeater/data/basic4.qml
new file mode 100644
index 0000000..264d825
--- /dev/null
+++ b/tests/auto/declarative/visual/repeater/data/basic4.qml
@@ -0,0 +1,419 @@
+import Qt.VisualTest 4.6
+
+VisualTest {
+ Frame {
+ msec: 0
+ }
+ Frame {
+ msec: 16
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 32
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 48
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 64
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 80
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 96
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 112
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 128
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 144
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 160
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 176
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 192
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 208
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 224
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 240
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 256
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 272
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 288
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 304
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 320
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 336
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 352
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 368
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 384
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 400
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 416
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 432
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 448
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 464
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 480
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 496
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 512
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 528
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 544
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 560
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 576
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 592
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 608
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 624
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 640
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 656
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 672
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 688
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 704
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 720
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 736
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 752
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 768
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 784
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 800
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 816
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 832
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 848
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 864
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 880
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 896
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 912
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 928
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 944
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 960
+ image: "basic4.0.png"
+ }
+ Frame {
+ msec: 976
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 992
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1008
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1024
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1040
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1056
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1072
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1088
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1104
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1120
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1136
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1152
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1168
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1184
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1200
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1216
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1232
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1248
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1264
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1280
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1296
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1312
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1328
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1344
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1360
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1376
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1392
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1408
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Key {
+ type: 6
+ key: 16777249
+ modifiers: 67108864
+ text: ""
+ autorep: false
+ count: 1
+ }
+ Frame {
+ msec: 1424
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1440
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1456
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1472
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1488
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1504
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1520
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1536
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1552
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1568
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1584
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1600
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+ Frame {
+ msec: 1616
+ hash: "539de20cf149353d2677111ea3de5681"
+ }
+}
diff --git a/tests/auto/declarative/visual/tst_visual.cpp b/tests/auto/declarative/visual/tst_visual.cpp
new file mode 100644
index 0000000..a9f4740
--- /dev/null
+++ b/tests/auto/declarative/visual/tst_visual.cpp
@@ -0,0 +1,280 @@
+#include <qtest.h>
+#include <QmlView>
+#include <QApplication>
+#include <QLibraryInfo>
+#include <QDir>
+#include <QDebug>
+#include <QProcess>
+#include <QFile>
+
+enum Mode { Record, Play, TestVisuals, UpdateVisuals, UpdatePlatformVisuals, Test };
+
+static QString testdir;
+class tst_visual : public QObject
+{
+ Q_OBJECT
+public:
+ tst_visual();
+
+ static QString toTestScript(const QString &, Mode=Test);
+ static QString viewer();
+
+private slots:
+ void visual_data();
+ void visual();
+
+private:
+ QString qmlviewer;
+ QStringList findQmlFiles(const QDir &d);
+};
+
+
+tst_visual::tst_visual()
+{
+ qmlviewer = viewer();
+}
+
+QString tst_visual::viewer()
+{
+ QString binaries = QLibraryInfo::location(QLibraryInfo::BinariesPath);
+
+ QString qmlviewer;
+
+#if defined(Q_WS_MAC)
+ qmlviewer = QDir(binaries).absoluteFilePath("qmlviewer.app/Contents/MacOS/qmlviewer");
+#elif defined(Q_WS_WIN)
+ qmlviewer = QDir(binaries).absoluteFilePath("qmlviewer.exe");
+#else
+ qmlviewer = QDir(binaries).absoluteFilePath("qmlviewer");
+#endif
+
+ return qmlviewer;
+}
+
+void tst_visual::visual_data()
+{
+ QTest::addColumn<QString>("file");
+ QTest::addColumn<QString>("testdata");
+
+ QStringList files;
+ files << findQmlFiles(QDir(QT_TEST_SOURCE_DIR));
+
+ foreach (const QString &file, files) {
+ QString testdata = toTestScript(file);
+ if (testdata.isEmpty())
+ continue;
+
+ QTest::newRow(file.toLatin1().constData()) << file << testdata;
+ }
+}
+
+void tst_visual::visual()
+{
+ QFETCH(QString, file);
+ QFETCH(QString, testdata);
+
+ QStringList arguments;
+ arguments << "-script" << testdata
+ << "-scriptopts" << "play,testimages,exitoncomplete,exitonfailure"
+ << file;
+ QProcess p;
+ p.start(qmlviewer, arguments);
+ QVERIFY(p.waitForFinished());
+ if (p.exitCode() != 0)
+ qDebug() << p.readAllStandardError();
+ QCOMPARE(p.exitStatus(), QProcess::NormalExit);
+ QCOMPARE(p.exitCode(), 0);
+}
+
+QString tst_visual::toTestScript(const QString &file, Mode mode)
+{
+ if (!file.endsWith(".qml"))
+ return QString();
+
+ int index = file.lastIndexOf(QDir::separator());
+ if (index == -1)
+ return QString();
+
+ const char* platformsuffix=0; // platforms with different fonts
+#if defined(Q_WS_MACX)
+ platformsuffix = "-MAC";
+#elif defined(Q_WS_X11)
+ platformsuffix = "-X11";
+#elif defined(Q_WS_WIN32)
+ platformsuffix = "-WIN";
+#elif defined(Q_WS_QWS)
+ platformsuffix = "-QWS";
+#elif defined(Q_WS_S60)
+ platformsuffix = "-S60";
+#endif
+
+ QString testdata = file.left(index + 1) +
+ QString("data");
+ QString testname = file.mid(index + 1, file.length() - index - 5);
+
+ if (platformsuffix && (mode == UpdatePlatformVisuals || QFile::exists(testdata+QLatin1String(platformsuffix)+QDir::separator()+testname+".qml"))) {
+ QString platformdir = testdata + QLatin1String(platformsuffix);
+ if (mode == UpdatePlatformVisuals) {
+ Q_ASSERT(QDir().mkpath(platformdir));
+ // Copy from base
+ QDir dir(testdata,testname+".*");
+ dir.setFilter(QDir::Files);
+ QFileInfoList list = dir.entryInfoList();
+ for (int i = 0; i < list.size(); ++i) {
+ QFile in(list.at(i).filePath());
+ Q_ASSERT(in.open(QIODevice::ReadOnly));
+ QFile out(platformdir + QDir::separator() + list.at(i).fileName());
+ Q_ASSERT(out.open(QIODevice::WriteOnly));
+ out.write(in.readAll());
+ }
+ }
+ testdata = platformdir;
+ }
+
+ testdata += QDir::separator() + testname;
+
+ return testdata;
+}
+
+QStringList tst_visual::findQmlFiles(const QDir &d)
+{
+ QStringList rv;
+
+ QStringList files = d.entryList(QStringList() << QLatin1String("*.qml"),
+ QDir::Files);
+ foreach (const QString &file, files) {
+ if (file.at(0).isLower()) {
+ rv << d.absoluteFilePath(file);
+ }
+ }
+
+ QStringList dirs = d.entryList(QDir::Dirs | QDir::NoDotAndDotDot |
+ QDir::NoSymLinks);
+ foreach (const QString &dir, dirs) {
+ if (dir.left(4) == "data")
+ continue;
+
+ QDir sub = d;
+ sub.cd(dir);
+ rv << findQmlFiles(sub);
+ }
+
+ return rv;
+}
+
+void action(Mode mode, const QString &file)
+{
+ Q_ASSERT(mode != Test);
+
+ QString testdata = tst_visual::toTestScript(file,mode);
+
+ if (Record == mode) {
+ QStringList arguments;
+ arguments << "-script" << testdata
+ << "-scriptopts" << "record,saveonexit"
+ << file;
+ QProcess p;
+ p.setProcessChannelMode(QProcess::ForwardedChannels);
+ p.start(tst_visual::viewer(), arguments);
+ p.waitForFinished();
+ } else if (Play == mode) {
+ QStringList arguments;
+ arguments << "-script" << testdata
+ << "-scriptopts" << "play,testimages,exitoncomplete"
+ << file;
+ QProcess p;
+ p.setProcessChannelMode(QProcess::ForwardedChannels);
+ p.start(tst_visual::viewer(), arguments);
+ p.waitForFinished();
+ } else if (TestVisuals == mode) {
+ QStringList arguments;
+ arguments << "-script" << testdata
+ << "-scriptopts" << "play"
+ << file;
+ QProcess p;
+ p.setProcessChannelMode(QProcess::ForwardedChannels);
+ p.start(tst_visual::viewer(), arguments);
+ p.waitForFinished();
+ } else if (UpdateVisuals == mode || UpdatePlatformVisuals == mode) {
+ QStringList arguments;
+ arguments << "-script" << testdata
+ << "-scriptopts" << "play,record,exitoncomplete,saveonexit"
+ << file;
+ QProcess p;
+ p.setProcessChannelMode(QProcess::ForwardedChannels);
+ p.start(tst_visual::viewer(), arguments);
+ p.waitForFinished();
+ }
+}
+
+void usage()
+{
+ fprintf(stderr, "\n");
+ fprintf(stderr, "QML related options\n");
+ fprintf(stderr, " -record file : record new test data for file\n");
+ fprintf(stderr, " -play file : playback test data for file, printing errors\n");
+ fprintf(stderr, " -testvisuals file : playback test data for file, without errors\n");
+ fprintf(stderr, " -updatevisuals file : playback test data for file, accept new visuals for file\n");
+ fprintf(stderr, " -updateplatformvisuals file : playback test data for file, accept new visuals for file only on current platform (MacOSX/Win32/X11/QWS/S60)\n");
+}
+
+int main(int argc, char **argv)
+{
+ QApplication app(argc, argv);
+
+ Mode mode = Test;
+ QString file;
+ bool showHelp = false;
+
+ int newArgc = 1;
+ char **newArgv = new char*[argc];
+ newArgv[0] = argv[0];
+
+ for (int ii = 1; ii < argc; ++ii) {
+ QString arg(argv[ii]);
+ if (arg == "-play" && (ii + 1) < argc) {
+ mode = Play;
+ file = argv[++ii];
+ } else if (arg == "-record" && (ii + 1) < argc) {
+ mode = Record;
+ file = argv[++ii];
+ } else if (arg == "-testvisuals" && (ii + 1) < argc) {
+ mode = TestVisuals;
+ file = argv[++ii];
+ } else if (arg == "-updatevisuals" && (ii + 1) < argc) {
+ mode = UpdateVisuals;
+ file = argv[++ii];
+ } else if (arg == "-updateplatformvisuals" && (ii + 1) < argc) {
+ mode = UpdatePlatformVisuals;
+ file = argv[++ii];
+ } else {
+ newArgv[newArgc++] = argv[ii];
+ }
+
+ if (arg == "-help") {
+ atexit(usage);
+ showHelp = true;
+ }
+ }
+
+ if (mode == Test || showHelp) {
+ tst_visual tc;
+ return QTest::qExec(&tc, newArgc, newArgv);
+ } else {
+ if (!file.endsWith(QLatin1String(".qml"))) {
+ qWarning() << "Error: Invalid file name (must end in .qml)";
+ return -1;
+ }
+ QDir d = QDir::current();
+ QString absFile = d.absoluteFilePath(file);
+ if (!QFile::exists(absFile)) {
+ qWarning() << "Error: File does not exist";
+ return -1;
+ }
+
+ action(mode, absFile);
+ return 0;
+ }
+}
+
+#include "tst_visual.moc"
diff --git a/tests/auto/declarative/visual/visual.pro b/tests/auto/declarative/visual/visual.pro
new file mode 100644
index 0000000..a06fa21
--- /dev/null
+++ b/tests/auto/declarative/visual/visual.pro
@@ -0,0 +1,6 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+SOURCES += tst_visual.cpp
+macx:CONFIG -= app_bundle
+
+DEFINES += QT_TEST_SOURCE_DIR=\"\\\"$$PWD\\\"\"
diff --git a/tests/benchmarks/benchmarks.pro b/tests/benchmarks/benchmarks.pro
index a63fb41..1d954c9 100644
--- a/tests/benchmarks/benchmarks.pro
+++ b/tests/benchmarks/benchmarks.pro
@@ -19,6 +19,14 @@ SUBDIRS = containers-associative \
qregion \
qvariant \
qwidget \
- qtwidgets
+ qtwidgets \
+ qmlxmlparser \
+ qfxview \
contains(QT_CONFIG, opengl): SUBDIRS += opengl
+
+# Tests which should run in Pulse
+PULSE_TESTS = \
+ qfxview \
+ qmlxmlparser \
+
diff --git a/tests/benchmarks/declarative/binding/binding.pro b/tests/benchmarks/declarative/binding/binding.pro
new file mode 100644
index 0000000..26ee4fa
--- /dev/null
+++ b/tests/benchmarks/declarative/binding/binding.pro
@@ -0,0 +1,8 @@
+load(qttest_p4)
+TEMPLATE = app
+TARGET = tst_binding
+QT += declarative
+
+SOURCES += tst_binding.cpp testtypes.cpp
+HEADERS += testtypes.h
+
diff --git a/tests/benchmarks/declarative/binding/idproperty.txt b/tests/benchmarks/declarative/binding/idproperty.txt
new file mode 100644
index 0000000..0a98e0d
--- /dev/null
+++ b/tests/benchmarks/declarative/binding/idproperty.txt
@@ -0,0 +1,7 @@
+MyQmlObject {
+ id: MyObject
+
+ MyQmlObject {
+ result: ###
+ }
+}
diff --git a/tests/benchmarks/declarative/binding/localproperty.txt b/tests/benchmarks/declarative/binding/localproperty.txt
new file mode 100644
index 0000000..4694d99
--- /dev/null
+++ b/tests/benchmarks/declarative/binding/localproperty.txt
@@ -0,0 +1,3 @@
+MyQmlObject {
+ result: ###
+}
diff --git a/tests/benchmarks/declarative/binding/objectproperty.txt b/tests/benchmarks/declarative/binding/objectproperty.txt
new file mode 100644
index 0000000..597c965
--- /dev/null
+++ b/tests/benchmarks/declarative/binding/objectproperty.txt
@@ -0,0 +1,5 @@
+MyQmlObject {
+ id: MyObject
+
+ result: ###
+}
diff --git a/tests/benchmarks/declarative/binding/testtypes.cpp b/tests/benchmarks/declarative/binding/testtypes.cpp
new file mode 100644
index 0000000..60e69e2
--- /dev/null
+++ b/tests/benchmarks/declarative/binding/testtypes.cpp
@@ -0,0 +1,3 @@
+#include "testtypes.h"
+
+QML_DEFINE_TYPE(MyQmlObject, MyQmlObject);
diff --git a/tests/benchmarks/declarative/binding/testtypes.h b/tests/benchmarks/declarative/binding/testtypes.h
new file mode 100644
index 0000000..20bf5f7
--- /dev/null
+++ b/tests/benchmarks/declarative/binding/testtypes.h
@@ -0,0 +1,41 @@
+#ifndef TESTTYPES_H
+#define TESTTYPES_H
+
+#include <QtCore/qobject.h>
+#include <QtDeclarative/qml.h>
+
+class MyQmlObject : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(int result READ result WRITE setResult);
+ Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged);
+ Q_PROPERTY(MyQmlObject *object READ object WRITE setObject NOTIFY objectChanged);
+ Q_PROPERTY(QmlList<QObject *> *data READ data);
+ Q_CLASSINFO("DefaultProperty", "data");
+public:
+ MyQmlObject() : m_result(0), m_value(0), m_object(0) {}
+
+ int result() const { return m_result; }
+ void setResult(int r) { m_result = r; }
+
+ int value() const { return m_value; }
+ void setValue(int v) { m_value = v; emit valueChanged(); }
+
+ QmlList<QObject *> *data() { return &m_data; }
+
+ MyQmlObject *object() const { return m_object; }
+ void setObject(MyQmlObject *o) { m_object = o; emit objectChanged(); }
+
+signals:
+ void valueChanged();
+ void objectChanged();
+
+private:
+ QmlConcreteList<QObject *> m_data;
+ int m_result;
+ int m_value;
+ MyQmlObject *m_object;
+};
+QML_DECLARE_TYPE(MyQmlObject);
+
+#endif // TESTTYPES_H
diff --git a/tests/benchmarks/declarative/binding/tst_binding.cpp b/tests/benchmarks/declarative/binding/tst_binding.cpp
new file mode 100644
index 0000000..e593382
--- /dev/null
+++ b/tests/benchmarks/declarative/binding/tst_binding.cpp
@@ -0,0 +1,126 @@
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+****************************************************************************/
+
+#include <qtest.h>
+#include <QmlEngine>
+#include <QmlComponent>
+#include <QFile>
+#include <QDebug>
+#include "testtypes.h"
+
+//TESTED_FILES=
+
+class tst_binding : public QObject
+{
+ Q_OBJECT
+
+public:
+ tst_binding();
+ virtual ~tst_binding();
+
+public slots:
+ void init();
+ void cleanup();
+
+private slots:
+ void objectproperty_data();
+ void objectproperty();
+ void basicproperty_data();
+ void basicproperty();
+
+private:
+ QmlEngine engine;
+};
+
+tst_binding::tst_binding()
+{
+}
+
+tst_binding::~tst_binding()
+{
+}
+
+void tst_binding::init()
+{
+}
+
+void tst_binding::cleanup()
+{
+}
+
+#define COMPONENT(filename, binding) \
+ QmlComponent c(&engine); \
+ { \
+ QFile f(filename); \
+ QVERIFY(f.open(QIODevice::ReadOnly)); \
+ QByteArray data = f.readAll(); \
+ data.replace("###", binding.toUtf8()); \
+ c.setData(data, QUrl()); \
+ QVERIFY(c.isReady()); \
+ }
+
+void tst_binding::objectproperty_data()
+{
+ QTest::addColumn<QString>("file");
+ QTest::addColumn<QString>("binding");
+
+ QTest::newRow("object.value") << "objectproperty.txt" << "object.value";
+ QTest::newRow("object.value + 10") << "objectproperty.txt" << "object.value + 10";
+}
+
+void tst_binding::objectproperty()
+{
+ QFETCH(QString, file);
+ QFETCH(QString, binding);
+
+ COMPONENT(file, binding);
+
+ MyQmlObject object1;
+ MyQmlObject object2;
+
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(c.create());
+ QVERIFY(object != 0);
+ object->setObject(&object2);
+
+ QBENCHMARK {
+ object->setObject(&object1);
+ object->setObject(&object2);
+ }
+}
+
+void tst_binding::basicproperty_data()
+{
+ QTest::addColumn<QString>("file");
+ QTest::addColumn<QString>("binding");
+
+ QTest::newRow("value") << "localproperty.txt" << "value";
+ QTest::newRow("value + 10") << "localproperty.txt" << "value + 10";
+ QTest::newRow("value + value + 10") << "localproperty.txt" << "value + value + 10";
+
+ QTest::newRow("MyObject.value") << "idproperty.txt" << "MyObject.value";
+ QTest::newRow("MyObject.value + 10") << "idproperty.txt" << "MyObject.value + 10";
+ QTest::newRow("MyObject.value + MyObject.value + 10") << "idproperty.txt" << "MyObject.value + MyObject.value + 10";
+}
+
+void tst_binding::basicproperty()
+{
+ QFETCH(QString, file);
+ QFETCH(QString, binding);
+
+ COMPONENT(file, binding);
+
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(c.create());
+ QVERIFY(object != 0);
+ object->setValue(10);
+
+ QBENCHMARK {
+ object->setValue(1);
+ }
+}
+
+QTEST_MAIN(tst_binding)
+#include "tst_binding.moc"
diff --git a/tests/benchmarks/declarative/pointers/pointers.pro b/tests/benchmarks/declarative/pointers/pointers.pro
new file mode 100644
index 0000000..fafdcd6
--- /dev/null
+++ b/tests/benchmarks/declarative/pointers/pointers.pro
@@ -0,0 +1,6 @@
+load(qttest_p4)
+TEMPLATE = app
+TARGET = tst_pointers
+
+SOURCES += tst_pointers.cpp
+
diff --git a/tests/benchmarks/declarative/pointers/tst_pointers.cpp b/tests/benchmarks/declarative/pointers/tst_pointers.cpp
new file mode 100644
index 0000000..f397c0c
--- /dev/null
+++ b/tests/benchmarks/declarative/pointers/tst_pointers.cpp
@@ -0,0 +1,43 @@
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+****************************************************************************/
+
+#include <qtest.h>
+#include "private/qguard_p.h"
+#include <QWeakPointer>
+
+class tst_pointers : public QObject
+{
+ Q_OBJECT
+
+public:
+ tst_pointers() {}
+
+private slots:
+ void guard();
+ void weakPointer();
+};
+
+void tst_pointers::guard()
+{
+ QObject *obj = new QObject;
+ QBENCHMARK {
+ QGuard<QObject> guardedObject;
+ guardedObject = obj;
+ }
+}
+
+void tst_pointers::weakPointer()
+{
+ QObject *obj = new QObject;
+ QBENCHMARK {
+ QWeakPointer<QObject> guardedObject;
+ guardedObject = obj;
+ }
+}
+
+QTEST_MAIN(tst_pointers)
+#include "tst_pointers.moc"
diff --git a/tests/benchmarks/declarative/qmlcomponent/myqmlobject.txt b/tests/benchmarks/declarative/qmlcomponent/myqmlobject.txt
new file mode 100644
index 0000000..9c3f7f8
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlcomponent/myqmlobject.txt
@@ -0,0 +1,3 @@
+import Qt.test 4.6
+
+MyQmlObject {}
diff --git a/tests/benchmarks/declarative/qmlcomponent/myqmlobject_binding.txt b/tests/benchmarks/declarative/qmlcomponent/myqmlobject_binding.txt
new file mode 100644
index 0000000..e6cc4cf
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlcomponent/myqmlobject_binding.txt
@@ -0,0 +1,6 @@
+import Qt.test 4.6
+
+MyQmlObject {
+ result: value
+}
+
diff --git a/tests/benchmarks/declarative/qmlcomponent/object.txt b/tests/benchmarks/declarative/qmlcomponent/object.txt
new file mode 100644
index 0000000..85e74b9
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlcomponent/object.txt
@@ -0,0 +1,3 @@
+import Qt 4.6
+
+Object {}
diff --git a/tests/benchmarks/declarative/qmlcomponent/object_id.txt b/tests/benchmarks/declarative/qmlcomponent/object_id.txt
new file mode 100644
index 0000000..526b6ad
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlcomponent/object_id.txt
@@ -0,0 +1,6 @@
+import Qt 4.6
+
+Object {
+ id: Blah
+}
+
diff --git a/tests/benchmarks/declarative/qmlcomponent/qmlcomponent.pro b/tests/benchmarks/declarative/qmlcomponent/qmlcomponent.pro
new file mode 100644
index 0000000..5f0cbe6
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlcomponent/qmlcomponent.pro
@@ -0,0 +1,8 @@
+load(qttest_p4)
+TEMPLATE = app
+TARGET = tst_qmlcomponent
+QT += declarative
+
+SOURCES += tst_qmlcomponent.cpp testtypes.cpp
+HEADERS += testtypes.h
+
diff --git a/tests/benchmarks/declarative/qmlcomponent/samegame/BoomBlock.qml b/tests/benchmarks/declarative/qmlcomponent/samegame/BoomBlock.qml
new file mode 100644
index 0000000..a495cd0
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlcomponent/samegame/BoomBlock.qml
@@ -0,0 +1,54 @@
+import Qt 4.6
+
+Item { id:block
+ property bool dying: false
+ property bool spawned: false
+ property int type: 0
+ property int targetX: 0
+ property int targetY: 0
+
+ x: SpringFollow { enabled: spawned; source: targetX; spring: 2; damping: 0.2 }
+ y: SpringFollow { source: targetY; spring: 2; damping: 0.2 }
+
+ Image { id: img
+ source: {
+ if(type == 0){
+ "pics/redStone.png";
+ } else if(type == 1) {
+ "pics/blueStone.png";
+ } else {
+ "pics/greenStone.png";
+ }
+ }
+ opacity: 0
+ opacity: Behavior { NumberAnimation { properties:"opacity"; duration: 200 } }
+ anchors.fill: parent
+ }
+
+ Particles { id: particles
+ width:1; height:1; anchors.centerIn: parent; opacity: 0
+ lifeSpan: 700; lifeSpanDeviation: 600; count:0; streamIn: false
+ angle: 0; angleDeviation: 360; velocity: 100; velocityDeviation:30
+ source: {
+ if(type == 0){
+ "pics/redStar.png";
+ } else if (type == 1) {
+ "pics/blueStar.png";
+ } else {
+ "pics/greenStar.png";
+ }
+ }
+ }
+
+ states: [
+ State{ name: "AliveState"; when: spawned == true && dying == false
+ PropertyChanges { target: img; opacity: 1 }
+ },
+ State{ name: "DeathState"; when: dying == true
+ PropertyChanges { target: particles; count: 50 }
+ PropertyChanges { target: particles; opacity: 1 }
+ PropertyChanges { target: particles; emitting: false } // i.e. emit only once
+ PropertyChanges { target: img; opacity: 0 }
+ }
+ ]
+}
diff --git a/tests/benchmarks/declarative/qmlcomponent/samegame/pics/blueStar.png b/tests/benchmarks/declarative/qmlcomponent/samegame/pics/blueStar.png
new file mode 100644
index 0000000..ff9588f
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlcomponent/samegame/pics/blueStar.png
Binary files differ
diff --git a/tests/benchmarks/declarative/qmlcomponent/samegame/pics/blueStone.png b/tests/benchmarks/declarative/qmlcomponent/samegame/pics/blueStone.png
new file mode 100644
index 0000000..bf342e0
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlcomponent/samegame/pics/blueStone.png
Binary files differ
diff --git a/tests/benchmarks/declarative/qmlcomponent/samegame/pics/greenStar.png b/tests/benchmarks/declarative/qmlcomponent/samegame/pics/greenStar.png
new file mode 100644
index 0000000..cd06854
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlcomponent/samegame/pics/greenStar.png
Binary files differ
diff --git a/tests/benchmarks/declarative/qmlcomponent/samegame/pics/greenStone.png b/tests/benchmarks/declarative/qmlcomponent/samegame/pics/greenStone.png
new file mode 100644
index 0000000..5ac14a5
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlcomponent/samegame/pics/greenStone.png
Binary files differ
diff --git a/tests/benchmarks/declarative/qmlcomponent/samegame/pics/redStar.png b/tests/benchmarks/declarative/qmlcomponent/samegame/pics/redStar.png
new file mode 100644
index 0000000..0a4dffe
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlcomponent/samegame/pics/redStar.png
Binary files differ
diff --git a/tests/benchmarks/declarative/qmlcomponent/samegame/pics/redStone.png b/tests/benchmarks/declarative/qmlcomponent/samegame/pics/redStone.png
new file mode 100644
index 0000000..b099f60
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlcomponent/samegame/pics/redStone.png
Binary files differ
diff --git a/tests/benchmarks/declarative/qmlcomponent/samegame/pics/yellowStone.png b/tests/benchmarks/declarative/qmlcomponent/samegame/pics/yellowStone.png
new file mode 100644
index 0000000..c56124a
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlcomponent/samegame/pics/yellowStone.png
Binary files differ
diff --git a/tests/benchmarks/declarative/qmlcomponent/synthesized_properties.2.txt b/tests/benchmarks/declarative/qmlcomponent/synthesized_properties.2.txt
new file mode 100644
index 0000000..90db37c
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlcomponent/synthesized_properties.2.txt
@@ -0,0 +1,15 @@
+import Qt 4.6
+
+Object {
+ property int a
+ property bool b
+ property double c
+ property real d
+ property string e
+ property url f
+ property color g
+ property date h
+ property var i
+ property variant j
+}
+
diff --git a/tests/benchmarks/declarative/qmlcomponent/synthesized_properties.txt b/tests/benchmarks/declarative/qmlcomponent/synthesized_properties.txt
new file mode 100644
index 0000000..bb5469a
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlcomponent/synthesized_properties.txt
@@ -0,0 +1,5 @@
+import Qt 4.6
+
+Object {
+ property int a
+}
diff --git a/tests/benchmarks/declarative/qmlcomponent/testtypes.cpp b/tests/benchmarks/declarative/qmlcomponent/testtypes.cpp
new file mode 100644
index 0000000..5021bf3
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlcomponent/testtypes.cpp
@@ -0,0 +1,3 @@
+#include "testtypes.h"
+
+QML_DEFINE_TYPE(Qt/test, 4, 6, 6, MyQmlObject, MyQmlObject);
diff --git a/tests/benchmarks/declarative/qmlcomponent/testtypes.h b/tests/benchmarks/declarative/qmlcomponent/testtypes.h
new file mode 100644
index 0000000..20bf5f7
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlcomponent/testtypes.h
@@ -0,0 +1,41 @@
+#ifndef TESTTYPES_H
+#define TESTTYPES_H
+
+#include <QtCore/qobject.h>
+#include <QtDeclarative/qml.h>
+
+class MyQmlObject : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(int result READ result WRITE setResult);
+ Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged);
+ Q_PROPERTY(MyQmlObject *object READ object WRITE setObject NOTIFY objectChanged);
+ Q_PROPERTY(QmlList<QObject *> *data READ data);
+ Q_CLASSINFO("DefaultProperty", "data");
+public:
+ MyQmlObject() : m_result(0), m_value(0), m_object(0) {}
+
+ int result() const { return m_result; }
+ void setResult(int r) { m_result = r; }
+
+ int value() const { return m_value; }
+ void setValue(int v) { m_value = v; emit valueChanged(); }
+
+ QmlList<QObject *> *data() { return &m_data; }
+
+ MyQmlObject *object() const { return m_object; }
+ void setObject(MyQmlObject *o) { m_object = o; emit objectChanged(); }
+
+signals:
+ void valueChanged();
+ void objectChanged();
+
+private:
+ QmlConcreteList<QObject *> m_data;
+ int m_result;
+ int m_value;
+ MyQmlObject *m_object;
+};
+QML_DECLARE_TYPE(MyQmlObject);
+
+#endif // TESTTYPES_H
diff --git a/tests/benchmarks/declarative/qmlcomponent/tst_qmlcomponent.cpp b/tests/benchmarks/declarative/qmlcomponent/tst_qmlcomponent.cpp
new file mode 100644
index 0000000..f0e029d
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlcomponent/tst_qmlcomponent.cpp
@@ -0,0 +1,84 @@
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+****************************************************************************/
+
+#include <qtest.h>
+#include <QmlEngine>
+#include <QmlComponent>
+#include <QFile>
+#include <QDebug>
+#include "testtypes.h"
+
+//TESTED_FILES=
+
+
+class tst_qmlcomponent : public QObject
+{
+ Q_OBJECT
+
+public:
+ tst_qmlcomponent();
+ virtual ~tst_qmlcomponent();
+
+public slots:
+ void init();
+ void cleanup();
+
+private slots:
+ void creation_data();
+ void creation();
+
+private:
+ QmlEngine engine;
+};
+
+tst_qmlcomponent::tst_qmlcomponent()
+{
+}
+
+tst_qmlcomponent::~tst_qmlcomponent()
+{
+}
+
+void tst_qmlcomponent::init()
+{
+}
+
+void tst_qmlcomponent::cleanup()
+{
+}
+
+void tst_qmlcomponent::creation_data()
+{
+ QTest::addColumn<QString>("file");
+
+ QTest::newRow("Object") << "object.txt";
+ QTest::newRow("Object - Id") << "object_id.txt";
+ QTest::newRow("MyQmlObject") << "myqmlobject.txt";
+ QTest::newRow("MyQmlObject: basic binding") << "myqmlobject_binding.txt";
+ QTest::newRow("Synthesized properties") << "synthesized_properties.txt";
+ QTest::newRow("Synthesized properties.2") << "synthesized_properties.2.txt";
+ QTest::newRow("SameGame - BoomBlock") << "samegame/BoomBlock.qml";
+}
+
+void tst_qmlcomponent::creation()
+{
+ QFETCH(QString, file);
+
+ QmlComponent c(&engine, file);
+ QVERIFY(c.isReady());
+
+ QObject *obj = c.create();
+ delete obj;
+
+ QBENCHMARK {
+ QObject *obj = c.create();
+ delete obj;
+ }
+}
+
+QTEST_MAIN(tst_qmlcomponent)
+#include "tst_qmlcomponent.moc"
diff --git a/tests/benchmarks/declarative/qmlmetaproperty/object.txt b/tests/benchmarks/declarative/qmlmetaproperty/object.txt
new file mode 100644
index 0000000..11b95e1
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlmetaproperty/object.txt
@@ -0,0 +1,3 @@
+import Qt 4.6
+
+Item {}
diff --git a/tests/benchmarks/declarative/qmlmetaproperty/qmlmetaproperty.pro b/tests/benchmarks/declarative/qmlmetaproperty/qmlmetaproperty.pro
new file mode 100644
index 0000000..b4e83d7
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlmetaproperty/qmlmetaproperty.pro
@@ -0,0 +1,7 @@
+load(qttest_p4)
+TEMPLATE = app
+TARGET = tst_qmlmetaproperty
+QT += declarative
+
+SOURCES += tst_qmlmetaproperty.cpp
+
diff --git a/tests/benchmarks/declarative/qmlmetaproperty/synthesized_object.txt b/tests/benchmarks/declarative/qmlmetaproperty/synthesized_object.txt
new file mode 100644
index 0000000..a923a0a
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlmetaproperty/synthesized_object.txt
@@ -0,0 +1,6 @@
+import Qt 4.6
+
+Item {
+ property int blah
+}
+
diff --git a/tests/benchmarks/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp b/tests/benchmarks/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp
new file mode 100644
index 0000000..c22af03
--- /dev/null
+++ b/tests/benchmarks/declarative/qmlmetaproperty/tst_qmlmetaproperty.cpp
@@ -0,0 +1,79 @@
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+****************************************************************************/
+
+#include <qtest.h>
+#include <QmlEngine>
+#include <QmlComponent>
+#include <QmlMetaProperty>
+#include <QFile>
+#include <QDebug>
+
+//TESTED_FILES=
+
+
+class tst_qmlmetaproperty : public QObject
+{
+ Q_OBJECT
+
+public:
+ tst_qmlmetaproperty();
+ virtual ~tst_qmlmetaproperty();
+
+public slots:
+ void init();
+ void cleanup();
+
+private slots:
+ void lookup_data();
+ void lookup();
+
+private:
+ QmlEngine engine;
+};
+
+tst_qmlmetaproperty::tst_qmlmetaproperty()
+{
+}
+
+tst_qmlmetaproperty::~tst_qmlmetaproperty()
+{
+}
+
+void tst_qmlmetaproperty::init()
+{
+}
+
+void tst_qmlmetaproperty::cleanup()
+{
+}
+
+void tst_qmlmetaproperty::lookup_data()
+{
+ QTest::addColumn<QString>("file");
+
+ QTest::newRow("Simple Object") << "object.txt";
+ QTest::newRow("Synthesized Object") << "synthesized_object.txt";
+}
+
+void tst_qmlmetaproperty::lookup()
+{
+ QFETCH(QString, file);
+
+ QmlComponent c(&engine, file);
+ QVERIFY(c.isReady());
+
+ QObject *obj = c.create();
+
+ QBENCHMARK {
+ QmlMetaProperty p(obj, "x");
+ }
+
+ delete obj;
+}
+
+QTEST_MAIN(tst_qmlmetaproperty)
+#include "tst_qmlmetaproperty.moc"
diff --git a/tests/benchmarks/qmlpainting/qmlpainting.pro b/tests/benchmarks/qmlpainting/qmlpainting.pro
new file mode 100644
index 0000000..58e9775
--- /dev/null
+++ b/tests/benchmarks/qmlpainting/qmlpainting.pro
@@ -0,0 +1,5 @@
+load(qttest_p4)
+TEMPLATE = app
+TARGET = tst_qmlpainting
+
+SOURCES += tst_qmlpainting.cpp
diff --git a/tests/benchmarks/qmlpainting/tst_qmlpainting.cpp b/tests/benchmarks/qmlpainting/tst_qmlpainting.cpp
new file mode 100644
index 0000000..ae6f9a3
--- /dev/null
+++ b/tests/benchmarks/qmlpainting/tst_qmlpainting.cpp
@@ -0,0 +1,696 @@
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: Qt Software Information (qt-info@nokia.com)
+**
+** This file is part of the test suite of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the either Technology Preview License Agreement or the
+** Beta Release License Agreement.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain
+** additional rights. These rights are described in the Nokia Qt LGPL
+** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+** package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at qt-sales@nokia.com.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include <qtest.h>
+#include <QPainter>
+#include <QImage>
+
+#include <math.h>
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
+class tst_QmlPainting : public QObject
+{
+ Q_OBJECT
+
+ public:
+ tst_QmlPainting() {}
+
+private slots:
+ void drawRoundedRect();
+ void drawScaledRoundedRect();
+ void drawTransformedRoundedRect();
+ void drawAntialiasedRoundedRect();
+ void drawScaledAntialiasedRoundedRect_data();
+ void drawScaledAntialiasedRoundedRect();
+ void drawTransformedAntialiasedRoundedRect_data();
+ void drawTransformedAntialiasedRoundedRect();
+ void drawImageRoundedRect();
+ void drawScaledImageRoundedRect_data();
+ void drawScaledImageRoundedRect();
+ void drawTransformedImageRoundedRect_data();
+ void drawTransformedImageRoundedRect();
+ void drawScaleGridRoundedRect();
+ void drawScaledScaleGridRoundedRect_data();
+ void drawScaledScaleGridRoundedRect();
+ void drawTransformedScaleGridRoundedRect_data();
+ void drawTransformedScaleGridRoundedRect();
+ void drawTransformedTransparentImage_data();
+ void drawTransformedTransparentImage();
+ void drawTransformedSemiTransparentImage_data();
+ void drawTransformedSemiTransparentImage();
+ void drawTransformedFilledImage_data();
+ void drawTransformedFilledImage();
+};
+
+const qreal inv_dist_to_plane = 1. / 1024.;
+QTransform transformForAngle(qreal angle)
+{
+ QTransform transform;
+
+ QTransform rotTrans;
+ rotTrans.translate(-40, 0);
+ QTransform rotTrans2;
+ rotTrans2.translate(40, 0);
+
+ qreal rad = angle * 2. * M_PI / 360.;
+ qreal c = ::cos(rad);
+ qreal s = ::sin(rad);
+
+ qreal x = 0;
+ qreal y = 80;
+ qreal z = 0;
+
+ qreal len = x * x + y * y + z * z;
+ if (len != 1.) {
+ len = ::sqrt(len);
+ x /= len;
+ y /= len;
+ z /= len;
+ }
+
+ QTransform rot(x*x*(1-c)+c, x*y*(1-c)-z*s, x*z*(1-c)+y*s*inv_dist_to_plane,
+ y*x*(1-c)+z*s, y*y*(1-c)+c, y*z*(1-c)-x*s*inv_dist_to_plane,
+ 0, 0, 1);
+
+ transform *= rotTrans;
+ transform *= rot;
+ transform *= rotTrans2;
+
+ return transform;
+}
+
+void tst_QmlPainting::drawRoundedRect()
+{
+ QImage surface(100, 100, QImage::Format_RGB16);
+ surface.fill(QColor(255,255,255).rgb());
+ QPainter p(&surface);
+
+ p.setPen(QPen(Qt::black, 1));
+ p.setBrush(Qt::red);
+
+ QBENCHMARK {
+ p.drawRoundedRect(QRectF(.5, .5, 80, 80), 10, 10);
+ }
+ surface.save("regular.png");
+}
+
+void tst_QmlPainting::drawScaledRoundedRect()
+{
+ QImage surface(400, 400, QImage::Format_RGB16);
+ surface.fill(QColor(255,255,255).rgb());
+ QPainter p(&surface);
+
+ p.setPen(QPen(Qt::black, 1));
+ p.setBrush(Qt::red);
+ p.scale(3, 3);
+
+ QBENCHMARK {
+ p.drawRoundedRect(10, 10, 80, 80, 10, 10);
+ }
+ surface.save("scaled.png");
+}
+
+void tst_QmlPainting::drawTransformedRoundedRect()
+{
+ QImage surface(400, 400, QImage::Format_RGB16);
+ surface.fill(QColor(255,255,255).rgb());
+ QPainter p(&surface);
+
+ p.setPen(QPen(Qt::black, 1));
+ p.setBrush(Qt::red);
+
+ QBENCHMARK {
+ p.setWorldTransform(QTransform(0.956957, 0, 0.000704124, 0, 1, 0, 16.141, 0, 0.735953));
+ p.drawRoundedRect(100, 100, 80, 80, 10, 10);
+ }
+ surface.save("transformed.png");
+}
+
+void tst_QmlPainting::drawAntialiasedRoundedRect()
+{
+ QImage surface(100, 100, QImage::Format_RGB16);
+ surface.fill(QColor(255,255,255).rgb());
+ QPainter p(&surface);
+
+ p.setRenderHint(QPainter::Antialiasing, true);
+ p.setPen(QPen(Qt::black, 1));
+ p.setBrush(Qt::red);
+
+ QBENCHMARK {
+ p.drawRoundedRect(QRectF(.5, .5, 80, 80), 10, 10);
+ }
+ surface.save("aar.png");
+}
+
+void tst_QmlPainting::drawScaledAntialiasedRoundedRect_data()
+{
+ QTest::addColumn<float>("scale");
+
+ for (float i = 0; i < 3; i += .1)
+ QTest::newRow(QString(QLatin1String("scale=%1")).arg(i).toLatin1()) << i;
+}
+
+void tst_QmlPainting::drawScaledAntialiasedRoundedRect()
+{
+ QFETCH(float, scale);
+
+ QImage surface(400, 400, QImage::Format_RGB16);
+ surface.fill(QColor(255,255,255).rgb());
+ QPainter p(&surface);
+
+ p.setRenderHint(QPainter::Antialiasing, true);
+ p.setPen(QPen(Qt::black, 1));
+ p.setBrush(Qt::red);
+ p.scale(scale, scale);
+
+ QBENCHMARK {
+ p.drawRoundedRect(10, 10, 80, 80, 10, 10);
+ }
+ surface.save("aas.png");
+}
+
+void tst_QmlPainting::drawTransformedAntialiasedRoundedRect_data()
+{
+ QTest::addColumn<QTransform>("transform");
+
+ for (float angle = 0; angle < 360; angle += 10)
+ QTest::newRow(QString(QLatin1String("angle=%1")).arg(angle).toLatin1()) << transformForAngle(angle);
+}
+
+void tst_QmlPainting::drawTransformedAntialiasedRoundedRect()
+{
+ QFETCH(QTransform, transform);
+
+ QImage surface(400, 400, QImage::Format_RGB16);
+ surface.fill(QColor(255,255,255).rgb());
+ QPainter p(&surface);
+
+ p.setRenderHint(QPainter::Antialiasing, true);
+ p.setPen(QPen(Qt::black, 1));
+ p.setBrush(Qt::red);
+
+ QBENCHMARK {
+ p.setWorldTransform(transform);
+ p.drawRoundedRect(100, 100, 80, 80, 10, 10);
+ }
+ surface.save("aat.png");
+}
+
+void tst_QmlPainting::drawImageRoundedRect()
+{
+ //setup image
+ const int radius = 10;
+ QImage rectImage(81, 81, QImage::Format_ARGB32_Premultiplied);
+ rectImage.fill(0);
+ QPainter rp(&rectImage);
+ rp.setRenderHint(QPainter::Antialiasing);
+ rp.setPen(Qt::black);
+ rp.setBrush(Qt::red);
+ rp.drawRoundedRect(QRectF(.5, .5, 80, 80), radius, radius);
+
+ //setup surface
+ QImage surface(100, 100, QImage::Format_RGB16);
+ surface.fill(QColor(255,255,255).rgb());
+ QPainter p(&surface);
+
+ QBENCHMARK {
+ p.drawImage(0,0, rectImage);
+ }
+ surface.save("ri.png");
+}
+
+void tst_QmlPainting::drawScaledImageRoundedRect_data()
+{
+ QTest::addColumn<int>("imageType");
+
+ QTest::newRow("imagetype=ARGB32_Pre") << (int)QImage::Format_ARGB32_Premultiplied;
+ QTest::newRow("imagetype=ARGB8565_Pre") << (int)QImage::Format_ARGB8565_Premultiplied;
+}
+
+void tst_QmlPainting::drawScaledImageRoundedRect()
+{
+ QFETCH(int, imageType);
+
+ //setup image
+ const int radius = 10;
+ QImage rectImage(81, 81, (QImage::Format)imageType);
+ rectImage.fill(0);
+ QPainter rp(&rectImage);
+ rp.setRenderHint(QPainter::Antialiasing);
+ rp.setPen(Qt::black);
+ rp.setBrush(Qt::red);
+ rp.drawRoundedRect(QRectF(.5, .5, 80, 80), radius, radius);
+
+ //setup surface
+ QImage surface(400, 400, QImage::Format_RGB16);
+ surface.fill(QColor(255,255,255).rgb());
+ QPainter p(&surface);
+ p.scale(3, 3);
+
+ QBENCHMARK {
+ p.drawImage(0,0, rectImage);
+ }
+ surface.save("si.png");
+}
+
+void tst_QmlPainting::drawTransformedImageRoundedRect_data()
+{
+ QTest::addColumn<int>("imageType");
+
+ QTest::newRow("imagetype=ARGB32_Pre") << (int)QImage::Format_ARGB32_Premultiplied;
+ QTest::newRow("imagetype=ARGB8565_Pre") << (int)QImage::Format_ARGB8565_Premultiplied;
+}
+
+void tst_QmlPainting::drawTransformedImageRoundedRect()
+{
+ QFETCH(int, imageType);
+
+ //setup image
+ const int radius = 10;
+ QImage rectImage(81, 81, (QImage::Format)imageType);
+ rectImage.fill(0);
+ QPainter rp(&rectImage);
+ rp.setRenderHint(QPainter::Antialiasing);
+ rp.setPen(Qt::black);
+ rp.setBrush(Qt::red);
+ rp.drawRoundedRect(QRectF(.5, .5, 80, 80), radius, radius);
+
+ //setup surface
+ QImage surface(400, 400, QImage::Format_RGB16);
+ surface.fill(QColor(255,255,255).rgb());
+ QPainter p(&surface);
+
+ QBENCHMARK {
+ p.setWorldTransform(QTransform(0.956957, 0, 0.000704124, 0, 1, 0, 16.141, 0, 0.735953));
+ p.drawImage(100,100, rectImage);
+ }
+ surface.save("ti.png");
+}
+
+//code from QFxRect for drawing rounded rects
+void tst_QmlPainting::drawScaleGridRoundedRect()
+{
+ //setup image
+ const int pw = 1;
+ const int radius = 10;
+ QImage rectImage(radius*2 + 3 + pw*2, radius*2 + 3 + pw*2, QImage::Format_ARGB32_Premultiplied);
+ rectImage.fill(0);
+ QPainter rp(&rectImage);
+ rp.setRenderHint(QPainter::Antialiasing);
+ rp.setPen(Qt::black);
+ rp.setBrush(Qt::red);
+ if (pw%2)
+ rp.drawRoundedRect(QRectF(qreal(pw)/2+1, qreal(pw)/2+1, rectImage.width()-(pw+1), rectImage.height()-(pw+1)), radius, radius);
+ else
+ rp.drawRoundedRect(QRectF(qreal(pw)/2, qreal(pw)/2, rectImage.width()-pw, rectImage.height()-pw), radius, radius);
+
+ //setup surface
+ QImage surface(100, 100, QImage::Format_RGB16);
+ surface.fill(QColor(255,255,255).rgb());
+ QPainter p(&surface);
+
+ QBENCHMARK {
+ const int pw = 2;
+ int offset = int(radius+1.5+pw);
+ int width = 80;
+ int height = 80;
+
+ int w = width+pw;
+ int h = height+pw;
+ int xOffset = offset;
+ int xSide = xOffset * 2;
+ bool xMiddles=true;
+ if (xSide > w) {
+ xMiddles=false;
+ xOffset = w/2 + 1;
+ xSide = xOffset * 2;
+ }
+ int yOffset = offset;
+ int ySide = yOffset * 2;
+ bool yMiddles=true;
+ if (ySide > h) {
+ yMiddles = false;
+ yOffset = h/2 + 1;
+ ySide = yOffset * 2;
+ }
+
+ // Upper left
+ p.drawImage(QRect(-pw/2, -pw/2, xOffset, yOffset), rectImage, QRect(0, 0, xOffset, yOffset));
+
+ // Upper middle
+ if (xMiddles)
+ p.drawImage(QRect(xOffset-pw/2, -pw/2, width - xSide + pw, yOffset), rectImage,
+ QRect(rectImage.width()/2, 0, 1, yOffset));
+ // Upper right
+ p.drawImage(QPoint(width-xOffset+pw/2, -pw/2), rectImage,
+ QRect(rectImage.width()-xOffset, 0, xOffset, yOffset));
+ // Middle left
+ if (yMiddles)
+ p.drawImage(QRect(-pw/2, yOffset-pw/2, xOffset, height - ySide + pw), rectImage,
+ QRect(0, rectImage.height()/2, xOffset, 1));
+
+ // Middle
+ if (xMiddles && yMiddles)
+ p.drawImage(QRect(xOffset-pw/2, yOffset-pw/2, width - xSide + pw, height - ySide + pw), rectImage,
+ QRect(rectImage.width()/2, rectImage.height()/2, 1, 1));
+ // Middle right
+ if (yMiddles)
+ p.drawImage(QRect(width-xOffset+pw/2, yOffset-pw/2, xOffset, height - ySide + pw), rectImage,
+ QRect(rectImage.width()-xOffset, rectImage.height()/2, xOffset, 1));
+ // Lower left
+ p.drawImage(QPoint(-pw/2, height - yOffset + pw/2), rectImage, QRect(0, rectImage.height() - yOffset, xOffset, yOffset));
+
+ // Lower Middle
+ if (xMiddles)
+ p.drawImage(QRect(xOffset-pw/2, height - yOffset +pw/2, width - xSide + pw, yOffset), rectImage,
+ QRect(rectImage.width()/2, rectImage.height() - yOffset, 1, yOffset));
+ // Lower Right
+ p.drawImage(QPoint(width-xOffset+pw/2, height - yOffset+pw/2), rectImage,
+ QRect(rectImage.width()-xOffset, rectImage.height() - yOffset, xOffset, yOffset));
+ }
+ surface.save("rsg.png");
+}
+
+void tst_QmlPainting::drawScaledScaleGridRoundedRect_data()
+{
+ QTest::addColumn<float>("scale");
+ QTest::addColumn<int>("imageType");
+
+ for (float i = 0; i < 3; i += .1)
+ QTest::newRow(QString(QLatin1String("scale=%1; imagetype=ARGB32_Pre")).arg(i).toLatin1()) << i << (int)QImage::Format_ARGB32_Premultiplied;
+ //for (float i = 0; i < 3; i += .1)
+ // QTest::newRow(QString(QLatin1String("scale=%1; imagetype=ARGB8565_Pre")).arg(i).toLatin1()) << i << (int)QImage::Format_ARGB8565_Premultiplied;
+}
+
+//code from QFxRect for drawing rounded rects
+void tst_QmlPainting::drawScaledScaleGridRoundedRect()
+{
+ QFETCH(float, scale);
+ QFETCH(int, imageType);
+
+ //setup image
+ const int pw = 1;
+ const int radius = 10;
+ QImage rectImage(radius*2 + 3 + pw*2, radius*2 + 3 + pw*2, (QImage::Format)imageType);
+ rectImage.fill(0);
+ QPainter rp(&rectImage);
+ rp.setRenderHint(QPainter::Antialiasing);
+ rp.setPen(Qt::black);
+ rp.setBrush(Qt::red);
+ if (pw%2)
+ rp.drawRoundedRect(QRectF(qreal(pw)/2+1, qreal(pw)/2+1, rectImage.width()-(pw+1), rectImage.height()-(pw+1)), radius, radius);
+ else
+ rp.drawRoundedRect(QRectF(qreal(pw)/2, qreal(pw)/2, rectImage.width()-pw, rectImage.height()-pw), radius, radius);
+
+ //setup surface
+ QImage surface(400, 400, QImage::Format_RGB16);
+ surface.fill(QColor(255,255,255).rgb());
+ QPainter p(&surface);
+ p.scale(scale, scale);
+
+ QBENCHMARK {
+ const int pw = 2;
+ int offset = int(radius+1.5+pw);
+ int width = 80;
+ int height = 80;
+
+ int w = width+pw;
+ int h = height+pw;
+ int xOffset = offset;
+ int xSide = xOffset * 2;
+ bool xMiddles=true;
+ if (xSide > w) {
+ xMiddles=false;
+ xOffset = w/2 + 1;
+ xSide = xOffset * 2;
+ }
+ int yOffset = offset;
+ int ySide = yOffset * 2;
+ bool yMiddles=true;
+ if (ySide > h) {
+ yMiddles = false;
+ yOffset = h/2 + 1;
+ ySide = yOffset * 2;
+ }
+
+ // Upper left
+ p.drawImage(QRect(10-pw/2, 10-pw/2, xOffset, yOffset), rectImage, QRect(0, 0, xOffset, yOffset));
+
+ // Upper middle
+ if (xMiddles)
+ p.drawImage(QRect(10+xOffset-pw/2, 10+-pw/2, width - xSide + pw, yOffset), rectImage,
+ QRect(rectImage.width()/2, 0, 1, yOffset));
+ // Upper right
+ p.drawImage(QPoint(10+width-xOffset+pw/2, 10+-pw/2), rectImage,
+ QRect(rectImage.width()-xOffset, 0, xOffset, yOffset));
+ // Middle left
+ if (yMiddles)
+ p.drawImage(QRect(10+-pw/2, 10+yOffset-pw/2, xOffset, height - ySide + pw), rectImage,
+ QRect(0, rectImage.height()/2, xOffset, 1));
+
+ // Middle
+ if (xMiddles && yMiddles)
+ p.drawImage(QRect(10+xOffset-pw/2, 10+yOffset-pw/2, width - xSide + pw, height - ySide + pw), rectImage,
+ QRect(rectImage.width()/2, rectImage.height()/2, 1, 1));
+ // Middle right
+ if (yMiddles)
+ p.drawImage(QRect(10+width-xOffset+pw/2, 10+yOffset-pw/2, xOffset, height - ySide + pw), rectImage,
+ QRect(rectImage.width()-xOffset, rectImage.height()/2, xOffset, 1));
+ // Lower left
+ p.drawImage(QPoint(10+-pw/2, 10+height - yOffset + pw/2), rectImage, QRect(0, rectImage.height() - yOffset, xOffset, yOffset));
+
+ // Lower Middle
+ if (xMiddles)
+ p.drawImage(QRect(10+xOffset-pw/2, 10+height - yOffset +pw/2, width - xSide + pw, yOffset), rectImage,
+ QRect(rectImage.width()/2, rectImage.height() - yOffset, 1, yOffset));
+ // Lower Right
+ p.drawImage(QPoint(10+width-xOffset+pw/2, 10+height - yOffset+pw/2), rectImage,
+ QRect(rectImage.width()-xOffset, rectImage.height() - yOffset, xOffset, yOffset));
+ }
+ surface.save("ssg.png");
+}
+
+void tst_QmlPainting::drawTransformedScaleGridRoundedRect_data()
+{
+ QTest::addColumn<QTransform>("transform");
+ QTest::addColumn<int>("imageType");
+
+ for (float angle = 0; angle < 360; angle += 10)
+ QTest::newRow(QString(QLatin1String("angle=%1; imagetype=ARGB32_Pre")).arg(angle).toLatin1()) << transformForAngle(angle) << (int)QImage::Format_ARGB32_Premultiplied;
+ //for (float angle = 0; angle < 360; angle += 10)
+ // QTest::newRow(QString(QLatin1String("angle=%1; imagetype=ARGB8565_Pre")).arg(angle).toLatin1()) << transformForAngle(angle) << (int)QImage::Format_ARGB8565_Premultiplied;
+
+}
+
+//code from QFxRect for drawing rounded rects
+void tst_QmlPainting::drawTransformedScaleGridRoundedRect()
+{
+ QFETCH(QTransform, transform);
+ QFETCH(int, imageType);
+
+ //setup image
+ const int pw = 1;
+ const int radius = 10;
+ QImage rectImage(radius*2 + 3 + pw*2, radius*2 + 3 + pw*2, (QImage::Format)imageType);
+ rectImage.fill(0);
+ QPainter rp(&rectImage);
+ rp.setRenderHint(QPainter::Antialiasing);
+ rp.setPen(Qt::black);
+ rp.setBrush(Qt::red);
+ if (pw%2)
+ rp.drawRoundedRect(QRectF(qreal(pw)/2+1, qreal(pw)/2+1, rectImage.width()-(pw+1), rectImage.height()-(pw+1)), radius, radius);
+ else
+ rp.drawRoundedRect(QRectF(qreal(pw)/2, qreal(pw)/2, rectImage.width()-pw, rectImage.height()-pw), radius, radius);
+
+ //setup surface
+ QImage surface(400, 400, QImage::Format_RGB16);
+ surface.fill(QColor(255,255,255).rgb());
+ QPainter p(&surface);
+
+ QBENCHMARK {
+ p.setWorldTransform(transform);
+ const int pw = 2;
+ int offset = int(radius+1.5+pw);
+ int width = 80;
+ int height = 80;
+
+ int w = width+pw;
+ int h = height+pw;
+ int xOffset = offset;
+ int xSide = xOffset * 2;
+ bool xMiddles=true;
+ if (xSide > w) {
+ xMiddles=false;
+ xOffset = w/2 + 1;
+ xSide = xOffset * 2;
+ }
+ int yOffset = offset;
+ int ySide = yOffset * 2;
+ bool yMiddles=true;
+ if (ySide > h) {
+ yMiddles = false;
+ yOffset = h/2 + 1;
+ ySide = yOffset * 2;
+ }
+
+ // Upper left
+ p.drawImage(QRect(100-pw/2, 100-pw/2, xOffset, yOffset), rectImage, QRect(0, 0, xOffset, yOffset));
+
+ // Upper middle
+ if (xMiddles)
+ p.drawImage(QRect(100+xOffset-pw/2, 100+-pw/2, width - xSide + pw, yOffset), rectImage,
+ QRect(rectImage.width()/2, 0, 1, yOffset));
+ // Upper right
+ p.drawImage(QPoint(100+width-xOffset+pw/2, 100+-pw/2), rectImage,
+ QRect(rectImage.width()-xOffset, 0, xOffset, yOffset));
+ // Middle left
+ if (yMiddles)
+ p.drawImage(QRect(100+-pw/2, 100+yOffset-pw/2, xOffset, height - ySide + pw), rectImage,
+ QRect(0, rectImage.height()/2, xOffset, 1));
+
+ // Middle
+ if (xMiddles && yMiddles)
+ p.drawImage(QRect(100+xOffset-pw/2, 100+yOffset-pw/2, width - xSide + pw, height - ySide + pw), rectImage,
+ QRect(rectImage.width()/2, rectImage.height()/2, 1, 1));
+ // Middle right
+ if (yMiddles)
+ p.drawImage(QRect(100+width-xOffset+pw/2, 100+yOffset-pw/2, xOffset, height - ySide + pw), rectImage,
+ QRect(rectImage.width()-xOffset, rectImage.height()/2, xOffset, 1));
+ // Lower left
+ p.drawImage(QPoint(100+-pw/2, 100+height - yOffset + pw/2), rectImage, QRect(0, rectImage.height() - yOffset, xOffset, yOffset));
+
+ // Lower Middle
+ if (xMiddles)
+ p.drawImage(QRect(100+xOffset-pw/2, 100+height - yOffset +pw/2, width - xSide + pw, yOffset), rectImage,
+ QRect(rectImage.width()/2, rectImage.height() - yOffset, 1, yOffset));
+ // Lower Right
+ p.drawImage(QPoint(100+width-xOffset+pw/2, 100+height - yOffset+pw/2), rectImage,
+ QRect(rectImage.width()-xOffset, rectImage.height() - yOffset, xOffset, yOffset));
+ }
+ surface.save("tsg.png");
+}
+
+void tst_QmlPainting::drawTransformedTransparentImage_data()
+{
+ QTest::addColumn<int>("imageType");
+
+ QTest::newRow("imagetype=ARGB32_Pre") << (int)QImage::Format_ARGB32_Premultiplied;
+ QTest::newRow("imagetype=ARGB8565_Pre") << (int)QImage::Format_ARGB8565_Premultiplied;
+}
+
+void tst_QmlPainting::drawTransformedTransparentImage()
+{
+ QFETCH(int, imageType);
+
+ //setup image
+ QImage transImage(200, 200, (QImage::Format)imageType);
+ transImage.fill(0);
+
+ //setup surface
+ QImage surface(200, 200, QImage::Format_RGB16);
+ surface.fill(QColor(255,255,255).rgb());
+ QPainter p(&surface);
+
+ QBENCHMARK {
+ p.setWorldTransform(QTransform(0.956957, 0, 0.000704124, 0, 1, 0, 16.141, 0, 0.735953));
+ p.drawImage(0,0, transImage);
+ }
+}
+
+void tst_QmlPainting::drawTransformedSemiTransparentImage_data()
+{
+ QTest::addColumn<int>("imageType");
+
+ QTest::newRow("imagetype=ARGB32_Pre") << (int)QImage::Format_ARGB32_Premultiplied;
+ QTest::newRow("imagetype=ARGB8565_Pre") << (int)QImage::Format_ARGB8565_Premultiplied;
+}
+
+void tst_QmlPainting::drawTransformedSemiTransparentImage()
+{
+ QFETCH(int, imageType);
+
+ //setup image
+ QImage transImage(200, 200, (QImage::Format)imageType);
+ transImage.fill(QColor(0,0,0, 128).rgba());
+
+ //setup surface
+ QImage surface(200, 200, QImage::Format_RGB16);
+ surface.fill(QColor(255,255,255).rgb());
+ QPainter p(&surface);
+
+ QBENCHMARK {
+ p.setWorldTransform(QTransform(0.956957, 0, 0.000704124, 0, 1, 0, 16.141, 0, 0.735953));
+ p.drawImage(0,0, transImage);
+ }
+}
+
+void tst_QmlPainting::drawTransformedFilledImage_data()
+{
+ QTest::addColumn<int>("imageType");
+
+ QTest::newRow("imagetype=ARGB32_Pre") << (int)QImage::Format_ARGB32_Premultiplied;
+ QTest::newRow("imagetype=ARGB8565_Pre") << (int)QImage::Format_ARGB8565_Premultiplied;
+}
+
+void tst_QmlPainting::drawTransformedFilledImage()
+{
+ QFETCH(int, imageType);
+
+ //setup image
+ QImage filledImage(200, 200, (QImage::Format)imageType);
+ filledImage.fill(QColor(0,0,0).rgb());
+
+ //setup surface
+ QImage surface(200, 200, QImage::Format_RGB16);
+ surface.fill(QColor(255,255,255).rgb());
+ QPainter p(&surface);
+
+ QBENCHMARK {
+ p.setWorldTransform(QTransform(0.956957, 0, 0.000704124, 0, 1, 0, 16.141, 0, 0.735953));
+ p.drawImage(0,0, filledImage);
+ }
+}
+
+QTEST_MAIN(tst_QmlPainting)
+
+#include "tst_qmlpainting.moc"