summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-05-10 02:56:43 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-05-10 02:56:43 (GMT)
commit9fabb4624a3b1209bc7fb5a4edd919c62df20233 (patch)
tree048b6ca845adf389983d5dd3b0feb2d5d4bc1d84 /src
parent346aa62e0ca4d02c32cae227165db004d2f15214 (diff)
downloadQt-9fabb4624a3b1209bc7fb5a4edd919c62df20233.zip
Qt-9fabb4624a3b1209bc7fb5a4edd919c62df20233.tar.gz
Qt-9fabb4624a3b1209bc7fb5a4edd919c62df20233.tar.bz2
Add some test asserts
Diffstat (limited to 'src')
-rw-r--r--src/declarative/util/qdeclarativepropertychanges.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/util/qdeclarativepropertychanges.cpp b/src/declarative/util/qdeclarativepropertychanges.cpp
index c7e3bc5..6e88259 100644
--- a/src/declarative/util/qdeclarativepropertychanges.cpp
+++ b/src/declarative/util/qdeclarativepropertychanges.cpp
@@ -163,11 +163,13 @@ public:
virtual void execute(Reason) {
ownedExpression = QDeclarativePropertyPrivate::setSignalExpression(property, expression);
+ Q_ASSERT(expression != ownedExpression);
}
virtual bool isReversable() { return true; }
virtual void reverse(Reason) {
ownedExpression = QDeclarativePropertyPrivate::setSignalExpression(property, reverseExpression);
+ Q_ASSERT(reverseExpression != ownedExpression);
}
virtual void saveOriginals() {
@@ -177,6 +179,7 @@ public:
virtual void rewind() {
ownedExpression = QDeclarativePropertyPrivate::setSignalExpression(property, rewindExpression);
+ Q_ASSERT(rewindExpression != ownedExpression);
}
virtual void saveCurrentValues() {
rewindExpression = QDeclarativePropertyPrivate::signalExpression(property);