From 9fabb4624a3b1209bc7fb5a4edd919c62df20233 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Mon, 10 May 2010 12:56:43 +1000 Subject: Add some test asserts --- src/declarative/util/qdeclarativepropertychanges.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v0.12