summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-04-21 07:42:54 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-04-21 07:42:54 (GMT)
commitc2a551b280546d6c94362b40486fab7a6a5b17a3 (patch)
tree30f0973cf187bcd92aedf861cb79eb42a5dd0d76 /tests/auto/declarative/qdeclarativeecmascript
parente39958e76340698cc2b0ac88a03167a016b9c07b (diff)
downloadQt-c2a551b280546d6c94362b40486fab7a6a5b17a3.zip
Qt-c2a551b280546d6c94362b40486fab7a6a5b17a3.tar.gz
Qt-c2a551b280546d6c94362b40486fab7a6a5b17a3.tar.bz2
Update test files to new syntax
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript')
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/dynamicCreation.qml8
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/dynamicDeletion.qml2
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/dynamicCreation.qml b/tests/auto/declarative/qdeclarativeecmascript/data/dynamicCreation.qml
index 2fef03a..3047e9b 100644
--- a/tests/auto/declarative/qdeclarativeecmascript/data/dynamicCreation.qml
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/dynamicCreation.qml
@@ -5,23 +5,23 @@ MyQmlObject{
objectName: "obj"
function createOne()
{
- obj.objectProperty = createQmlObject('import Qt.test 1.0; MyQmlObject{objectName:"objectOne"}', obj);
+ obj.objectProperty = Qt.createQmlObject('import Qt.test 1.0; MyQmlObject{objectName:"objectOne"}', obj);
}
function createTwo()
{
- var component = createComponent('dynamicCreation.helper.qml');
+ var component = Qt.createComponent('dynamicCreation.helper.qml');
obj.objectProperty = component.createObject();
}
function createThree()
{
- obj.objectProperty = createQmlObject('TypeForDynamicCreation{}', obj);
+ obj.objectProperty = Qt.createQmlObject('TypeForDynamicCreation{}', obj);
}
function dontCrash()
{
- var component = createComponent('file-doesnt-exist.qml');
+ var component = Qt.createComponent('file-doesnt-exist.qml');
obj.objectProperty = component.createObject();
}
}
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/dynamicDeletion.qml b/tests/auto/declarative/qdeclarativeecmascript/data/dynamicDeletion.qml
index 0855b29..f41e526 100644
--- a/tests/auto/declarative/qdeclarativeecmascript/data/dynamicDeletion.qml
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/dynamicDeletion.qml
@@ -5,7 +5,7 @@ MyQmlObject{
objectName: "obj"
function create()
{
- obj.objectProperty = createQmlObject('import Qt.test 1.0; MyQmlObject{objectName:"emptyObject"}', obj);
+ obj.objectProperty = Qt.createQmlObject('import Qt.test 1.0; MyQmlObject{objectName:"emptyObject"}', obj);
}
function killOther()