summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/declarative/qmlbindengine/testtypes.h22
-rw-r--r--tests/auto/declarative/qmlparser/duplicateIDs.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/failingComponent.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/fakeDotProperty.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/idProperty.txt2
-rw-r--r--tests/auto/declarative/qmlparser/invalidID.2.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/invalidID.3.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/invalidID.4.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/invalidID.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/missingSignal.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/nonexistantProperty.1.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/nonexistantProperty.2.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/nonexistantProperty.3.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/nonexistantProperty.4.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/nonexistantProperty.6.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/readOnly.1.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/readOnly.2.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/tst_qmlparser.cpp8
-rw-r--r--tests/auto/declarative/qmlparser/unsupportedProperty.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/wrongType.1.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/wrongType.10.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/wrongType.11.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/wrongType.12.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/wrongType.13.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/wrongType.14.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/wrongType.2.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/wrongType.3.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/wrongType.4.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/wrongType.5.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/wrongType.6.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/wrongType.7.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/wrongType.8.errors.txt2
-rw-r--r--tests/auto/declarative/qmlparser/wrongType.9.errors.txt2
33 files changed, 46 insertions, 46 deletions
diff --git a/tests/auto/declarative/qmlbindengine/testtypes.h b/tests/auto/declarative/qmlbindengine/testtypes.h
index df31f7a..f5b309e 100644
--- a/tests/auto/declarative/qmlbindengine/testtypes.h
+++ b/tests/auto/declarative/qmlbindengine/testtypes.h
@@ -8,8 +8,8 @@
class MyQmlObject : public QObject
{
Q_OBJECT
- Q_PROPERTY(bool trueProperty READ trueProperty)
- Q_PROPERTY(bool falseProperty READ falseProperty)
+ 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);
public:
@@ -64,14 +64,14 @@ QML_DECLARE_TYPE(MyQmlObject);
class MyQmlContainer : public QObject
{
Q_OBJECT
- Q_PROPERTY(QList<MyQmlContainer*>* children READ children)
+ Q_PROPERTY(QList<MyQmlObject*>* children READ children)
public:
MyQmlContainer() {}
- QList<MyQmlContainer*> *children() { return &m_children; }
+ QList<MyQmlObject*> *children() { return &m_children; }
private:
- QList<MyQmlContainer*> m_children;
+ QList<MyQmlObject*> m_children;
};
QML_DECLARE_TYPE(MyQmlContainer);
@@ -94,8 +94,8 @@ public:
class MyDefaultObject1 : public QObject
{
Q_OBJECT
- Q_PROPERTY(int horseLegs READ horseLegs);
- Q_PROPERTY(int antLegs READ antLegs);
+ 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; }
@@ -104,8 +104,8 @@ public:
class MyDefaultObject2 : public QObject
{
Q_OBJECT
- Q_PROPERTY(int antLegs READ antLegs);
- Q_PROPERTY(int emuLegs READ emuLegs);
+ 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; }
@@ -114,8 +114,8 @@ public:
class MyDefaultObject3 : public QObject
{
Q_OBJECT
- Q_PROPERTY(int antLegs READ antLegs);
- Q_PROPERTY(int humanLegs READ humanLegs);
+ 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; }
diff --git a/tests/auto/declarative/qmlparser/duplicateIDs.errors.txt b/tests/auto/declarative/qmlparser/duplicateIDs.errors.txt
index b03f735..99f4c7c 100644
--- a/tests/auto/declarative/qmlparser/duplicateIDs.errors.txt
+++ b/tests/auto/declarative/qmlparser/duplicateIDs.errors.txt
@@ -1 +1 @@
-3:5:id is not unique
+3:19:id is not unique
diff --git a/tests/auto/declarative/qmlparser/failingComponent.errors.txt b/tests/auto/declarative/qmlparser/failingComponent.errors.txt
index 12fb4e7..a18f2e7 100644
--- a/tests/auto/declarative/qmlparser/failingComponent.errors.txt
+++ b/tests/auto/declarative/qmlparser/failingComponent.errors.txt
@@ -1,2 +1,2 @@
-1:-1:Unable to create type FailingComponent
-2:5:Cannot assign value to non-existant property "a"
+2:5:Cannot assign to non-existant property "a"
diff --git a/tests/auto/declarative/qmlparser/fakeDotProperty.errors.txt b/tests/auto/declarative/qmlparser/fakeDotProperty.errors.txt
index a94b38e..25f22ce 100644
--- a/tests/auto/declarative/qmlparser/fakeDotProperty.errors.txt
+++ b/tests/auto/declarative/qmlparser/fakeDotProperty.errors.txt
@@ -1 +1 @@
-2:11:Cannot assign value to non-existant property "something"
+2:5:Cannot nest non-QObject property "value"
diff --git a/tests/auto/declarative/qmlparser/idProperty.txt b/tests/auto/declarative/qmlparser/idProperty.txt
index 9c7d6fb..c3c2e50 100644
--- a/tests/auto/declarative/qmlparser/idProperty.txt
+++ b/tests/auto/declarative/qmlparser/idProperty.txt
@@ -2,6 +2,6 @@ MyContainer {
property var object : MyObjectId
MyTypeObject {
- id: MyObjectId
+ id: "MyObjectId"
}
}
diff --git a/tests/auto/declarative/qmlparser/invalidID.2.errors.txt b/tests/auto/declarative/qmlparser/invalidID.2.errors.txt
index 6380750..9c54aab 100644
--- a/tests/auto/declarative/qmlparser/invalidID.2.errors.txt
+++ b/tests/auto/declarative/qmlparser/invalidID.2.errors.txt
@@ -1,2 +1,2 @@
-1:1:"" is not a valid id
+2:5:"" is not a valid object id
diff --git a/tests/auto/declarative/qmlparser/invalidID.3.errors.txt b/tests/auto/declarative/qmlparser/invalidID.3.errors.txt
index 05937f0..36cd489 100644
--- a/tests/auto/declarative/qmlparser/invalidID.3.errors.txt
+++ b/tests/auto/declarative/qmlparser/invalidID.3.errors.txt
@@ -1 +1 @@
-2:5:The id property cannot be fetched
+2:5:Invalid use of id property
diff --git a/tests/auto/declarative/qmlparser/invalidID.4.errors.txt b/tests/auto/declarative/qmlparser/invalidID.4.errors.txt
index 50c8960..bb811cf 100644
--- a/tests/auto/declarative/qmlparser/invalidID.4.errors.txt
+++ b/tests/auto/declarative/qmlparser/invalidID.4.errors.txt
@@ -1 +1 @@
-3:5:The object id may only be set once
+3:5:Invalid use of id property
diff --git a/tests/auto/declarative/qmlparser/invalidID.errors.txt b/tests/auto/declarative/qmlparser/invalidID.errors.txt
index eed1869..7cefb7e 100644
--- a/tests/auto/declarative/qmlparser/invalidID.errors.txt
+++ b/tests/auto/declarative/qmlparser/invalidID.errors.txt
@@ -1 +1 @@
-1:1:"1" is not a valid id
+2:5:"1" is not a valid object id
diff --git a/tests/auto/declarative/qmlparser/missingSignal.errors.txt b/tests/auto/declarative/qmlparser/missingSignal.errors.txt
index 5c612cc..bcee331 100644
--- a/tests/auto/declarative/qmlparser/missingSignal.errors.txt
+++ b/tests/auto/declarative/qmlparser/missingSignal.errors.txt
@@ -1 +1 @@
-2:5:Cannot assign binding to non-existant property "onClicked"
+2:5:Cannot assign to non-existant property "onClicked"
diff --git a/tests/auto/declarative/qmlparser/nonexistantProperty.1.errors.txt b/tests/auto/declarative/qmlparser/nonexistantProperty.1.errors.txt
index e8f1a91..6f85946 100644
--- a/tests/auto/declarative/qmlparser/nonexistantProperty.1.errors.txt
+++ b/tests/auto/declarative/qmlparser/nonexistantProperty.1.errors.txt
@@ -1 +1 @@
-1:15:Cannot assign value to non-existant property "something"
+1:15:Cannot assign to non-existant property "something"
diff --git a/tests/auto/declarative/qmlparser/nonexistantProperty.2.errors.txt b/tests/auto/declarative/qmlparser/nonexistantProperty.2.errors.txt
index c154f91..8d6dfb4 100644
--- a/tests/auto/declarative/qmlparser/nonexistantProperty.2.errors.txt
+++ b/tests/auto/declarative/qmlparser/nonexistantProperty.2.errors.txt
@@ -1 +1 @@
-2:5:Cannot assign value to non-existant property "something"
+2:5:Cannot assign to non-existant property "something"
diff --git a/tests/auto/declarative/qmlparser/nonexistantProperty.3.errors.txt b/tests/auto/declarative/qmlparser/nonexistantProperty.3.errors.txt
index a254d7d..8d6dfb4 100644
--- a/tests/auto/declarative/qmlparser/nonexistantProperty.3.errors.txt
+++ b/tests/auto/declarative/qmlparser/nonexistantProperty.3.errors.txt
@@ -1 +1 @@
-2:5:Cannot assign binding to non-existant property "something"
+2:5:Cannot assign to non-existant property "something"
diff --git a/tests/auto/declarative/qmlparser/nonexistantProperty.4.errors.txt b/tests/auto/declarative/qmlparser/nonexistantProperty.4.errors.txt
index a254d7d..8d6dfb4 100644
--- a/tests/auto/declarative/qmlparser/nonexistantProperty.4.errors.txt
+++ b/tests/auto/declarative/qmlparser/nonexistantProperty.4.errors.txt
@@ -1 +1 @@
-2:5:Cannot assign binding to non-existant property "something"
+2:5:Cannot assign to non-existant property "something"
diff --git a/tests/auto/declarative/qmlparser/nonexistantProperty.6.errors.txt b/tests/auto/declarative/qmlparser/nonexistantProperty.6.errors.txt
index 3183b6d..fac833e 100644
--- a/tests/auto/declarative/qmlparser/nonexistantProperty.6.errors.txt
+++ b/tests/auto/declarative/qmlparser/nonexistantProperty.6.errors.txt
@@ -1 +1 @@
-2:-1:Cannot assign to default property
+2:5:Cannot assign to non-existant default property
diff --git a/tests/auto/declarative/qmlparser/readOnly.1.errors.txt b/tests/auto/declarative/qmlparser/readOnly.1.errors.txt
index 89009ce..8608370 100644
--- a/tests/auto/declarative/qmlparser/readOnly.1.errors.txt
+++ b/tests/auto/declarative/qmlparser/readOnly.1.errors.txt
@@ -1 +1 @@
-2:21:Cannot assign value "Hello World" to the read-only property readOnlyString
+2:21:Invalid property assignment: read-only property
diff --git a/tests/auto/declarative/qmlparser/readOnly.2.errors.txt b/tests/auto/declarative/qmlparser/readOnly.2.errors.txt
index ab27946..633d56f 100644
--- a/tests/auto/declarative/qmlparser/readOnly.2.errors.txt
+++ b/tests/auto/declarative/qmlparser/readOnly.2.errors.txt
@@ -1 +1 @@
-2:-1:Cannot assign a binding to read-only property "readOnlyString"
+2:5:Invalid property assignment: read-only property
diff --git a/tests/auto/declarative/qmlparser/tst_qmlparser.cpp b/tests/auto/declarative/qmlparser/tst_qmlparser.cpp
index cdc2a72..7023263 100644
--- a/tests/auto/declarative/qmlparser/tst_qmlparser.cpp
+++ b/tests/auto/declarative/qmlparser/tst_qmlparser.cpp
@@ -98,7 +98,7 @@ void tst_qmlparser::errors_data()
QTest::newRow("nonExistantProperty.3") << "nonexistantProperty.3.txt" << "nonexistantProperty.3.errors.txt" << false;
QTest::newRow("nonExistantProperty.4") << "nonexistantProperty.4.txt" << "nonexistantProperty.4.errors.txt" << false;
QTest::newRow("nonExistantProperty.5") << "nonexistantProperty.5.txt" << "nonexistantProperty.5.errors.txt" << false;
- QTest::newRow("nonExistantProperty.6") << "nonexistantProperty.6.txt" << "nonexistantProperty.6.errors.txt" << true;
+ QTest::newRow("nonExistantProperty.6") << "nonexistantProperty.6.txt" << "nonexistantProperty.6.errors.txt" << false;
QTest::newRow("wrongType (string for int)") << "wrongType.1.txt" << "wrongType.1.errors.txt" << false;
QTest::newRow("wrongType (int for bool)") << "wrongType.2.txt" << "wrongType.2.errors.txt" << false;
@@ -117,7 +117,7 @@ void tst_qmlparser::errors_data()
QTest::newRow("wrongType (int for string)") << "wrongType.14.txt" << "wrongType.14.errors.txt" << false;
QTest::newRow("readOnly.1") << "readOnly.1.txt" << "readOnly.1.errors.txt" << false;
- QTest::newRow("readOnly.2") << "readOnly.2.txt" << "readOnly.2.errors.txt" << true;
+ QTest::newRow("readOnly.2") << "readOnly.2.txt" << "readOnly.2.errors.txt" << false;
QTest::newRow("listAssignment.1") << "listAssignment.1.txt" << "listAssignment.1.errors.txt" << false;
QTest::newRow("listAssignment.2") << "listAssignment.2.txt" << "listAssignment.2.errors.txt" << false;
@@ -344,8 +344,8 @@ void tst_qmlparser::dynamicProperties()
QVERIFY(object != 0);
QCOMPARE(object->property("intProperty"), QVariant(10));
QCOMPARE(object->property("boolProperty"), QVariant(false));
- QCOMPARE(object->property("doubleProperty"), QVariant((float)-10.1));
- QCOMPARE(object->property("realProperty"), QVariant((float)-19.9));
+ 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)));
diff --git a/tests/auto/declarative/qmlparser/unsupportedProperty.errors.txt b/tests/auto/declarative/qmlparser/unsupportedProperty.errors.txt
index a067ecb..7ccfc75 100644
--- a/tests/auto/declarative/qmlparser/unsupportedProperty.errors.txt
+++ b/tests/auto/declarative/qmlparser/unsupportedProperty.errors.txt
@@ -1 +1 @@
-2:5:Cannot assign value to property matrix of unknown type
+2:13:Invalid property assignment: unknown type QVariant::QMatrix
diff --git a/tests/auto/declarative/qmlparser/wrongType.1.errors.txt b/tests/auto/declarative/qmlparser/wrongType.1.errors.txt
index 8976ee1..194da94 100644
--- a/tests/auto/declarative/qmlparser/wrongType.1.errors.txt
+++ b/tests/auto/declarative/qmlparser/wrongType.1.errors.txt
@@ -1 +1 @@
-2:12:Cannot assign value "hello" to property value
+2:12:Invalid property assignment: int expected
diff --git a/tests/auto/declarative/qmlparser/wrongType.10.errors.txt b/tests/auto/declarative/qmlparser/wrongType.10.errors.txt
index 562cd6c..f391e2a 100644
--- a/tests/auto/declarative/qmlparser/wrongType.10.errors.txt
+++ b/tests/auto/declarative/qmlparser/wrongType.10.errors.txt
@@ -1 +1 @@
-2:23:Cannot assign value "12" to property dateTimeProperty
+2:23:Invalid property assignment: datetime expected
diff --git a/tests/auto/declarative/qmlparser/wrongType.11.errors.txt b/tests/auto/declarative/qmlparser/wrongType.11.errors.txt
index 24d27d5..9f5ebc9 100644
--- a/tests/auto/declarative/qmlparser/wrongType.11.errors.txt
+++ b/tests/auto/declarative/qmlparser/wrongType.11.errors.txt
@@ -1 +1 @@
-2:20:Cannot assign value "apples" to property pointProperty
+2:20:Invalid property assignment: point expected
diff --git a/tests/auto/declarative/qmlparser/wrongType.12.errors.txt b/tests/auto/declarative/qmlparser/wrongType.12.errors.txt
index b57e70e..4bbb2bf 100644
--- a/tests/auto/declarative/qmlparser/wrongType.12.errors.txt
+++ b/tests/auto/declarative/qmlparser/wrongType.12.errors.txt
@@ -1 +1 @@
-2:19:Cannot assign value "red" to property sizeProperty
+2:19:Invalid property assignment: size expected
diff --git a/tests/auto/declarative/qmlparser/wrongType.13.errors.txt b/tests/auto/declarative/qmlparser/wrongType.13.errors.txt
index 7ff4bf3..194da94 100644
--- a/tests/auto/declarative/qmlparser/wrongType.13.errors.txt
+++ b/tests/auto/declarative/qmlparser/wrongType.13.errors.txt
@@ -1 +1 @@
-2:12:Cannot assign value "12" to property value
+2:12:Invalid property assignment: int expected
diff --git a/tests/auto/declarative/qmlparser/wrongType.14.errors.txt b/tests/auto/declarative/qmlparser/wrongType.14.errors.txt
index ec41e01..f90b8c6 100644
--- a/tests/auto/declarative/qmlparser/wrongType.14.errors.txt
+++ b/tests/auto/declarative/qmlparser/wrongType.14.errors.txt
@@ -1 +1 @@
-2:23:Cannot assign value 10 to property stringProperty
+2:21:Invalid property assignment: string expected
diff --git a/tests/auto/declarative/qmlparser/wrongType.2.errors.txt b/tests/auto/declarative/qmlparser/wrongType.2.errors.txt
index 301d258..4353165 100644
--- a/tests/auto/declarative/qmlparser/wrongType.2.errors.txt
+++ b/tests/auto/declarative/qmlparser/wrongType.2.errors.txt
@@ -1 +1 @@
-2:14:Cannot assign value "5" to property enabled
+2:14:Invalid property assignment: boolean expected
diff --git a/tests/auto/declarative/qmlparser/wrongType.3.errors.txt b/tests/auto/declarative/qmlparser/wrongType.3.errors.txt
index 3afcc2b..87b4eed 100644
--- a/tests/auto/declarative/qmlparser/wrongType.3.errors.txt
+++ b/tests/auto/declarative/qmlparser/wrongType.3.errors.txt
@@ -1 +1 @@
-2:11:Cannot assign value "5,5x10" to property rect
+2:11:Invalid property assignment: rect expected
diff --git a/tests/auto/declarative/qmlparser/wrongType.4.errors.txt b/tests/auto/declarative/qmlparser/wrongType.4.errors.txt
index 6bf88be..57a0744 100644
--- a/tests/auto/declarative/qmlparser/wrongType.4.errors.txt
+++ b/tests/auto/declarative/qmlparser/wrongType.4.errors.txt
@@ -1 +1 @@
-2:19:Cannot assign value "InvalidEnumName" to property enumProperty
+2:19:Invalid property assignment: unknown enumeration
diff --git a/tests/auto/declarative/qmlparser/wrongType.5.errors.txt b/tests/auto/declarative/qmlparser/wrongType.5.errors.txt
index 0e40d84..0023d1d 100644
--- a/tests/auto/declarative/qmlparser/wrongType.5.errors.txt
+++ b/tests/auto/declarative/qmlparser/wrongType.5.errors.txt
@@ -1 +1 @@
-2:19:Cannot assign value "-13" to property uintProperty
+2:19:Invalid property assignment: unsigned int expected
diff --git a/tests/auto/declarative/qmlparser/wrongType.6.errors.txt b/tests/auto/declarative/qmlparser/wrongType.6.errors.txt
index 9692997..06349e7 100644
--- a/tests/auto/declarative/qmlparser/wrongType.6.errors.txt
+++ b/tests/auto/declarative/qmlparser/wrongType.6.errors.txt
@@ -1 +1 @@
-2:19:Cannot assign value "Hello" to property realProperty
+2:19:Invalid property assignment: double expected
diff --git a/tests/auto/declarative/qmlparser/wrongType.7.errors.txt b/tests/auto/declarative/qmlparser/wrongType.7.errors.txt
index f44073a..e053f3b 100644
--- a/tests/auto/declarative/qmlparser/wrongType.7.errors.txt
+++ b/tests/auto/declarative/qmlparser/wrongType.7.errors.txt
@@ -1 +1 @@
-2:20:Cannot assign value "12" to property colorProperty
+2:20:Invalid property assignment: color expected
diff --git a/tests/auto/declarative/qmlparser/wrongType.8.errors.txt b/tests/auto/declarative/qmlparser/wrongType.8.errors.txt
index 8a45ffb..b11f92b 100644
--- a/tests/auto/declarative/qmlparser/wrongType.8.errors.txt
+++ b/tests/auto/declarative/qmlparser/wrongType.8.errors.txt
@@ -1 +1 @@
-2:19:Cannot assign value "12" to property dateProperty
+2:19:Invalid property assignment: date expected
diff --git a/tests/auto/declarative/qmlparser/wrongType.9.errors.txt b/tests/auto/declarative/qmlparser/wrongType.9.errors.txt
index cba3339..419a5ce 100644
--- a/tests/auto/declarative/qmlparser/wrongType.9.errors.txt
+++ b/tests/auto/declarative/qmlparser/wrongType.9.errors.txt
@@ -1 +1 @@
-2:19:Cannot assign value "12" to property timeProperty
+2:19:Invalid property assignment: time expected