summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickrectangle/tst_qquickrectangle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickrectangle/tst_qquickrectangle.cpp')
-rw-r--r--tests/auto/quick/qquickrectangle/tst_qquickrectangle.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/auto/quick/qquickrectangle/tst_qquickrectangle.cpp b/tests/auto/quick/qquickrectangle/tst_qquickrectangle.cpp
index b34612ee88..832b973d96 100644
--- a/tests/auto/quick/qquickrectangle/tst_qquickrectangle.cpp
+++ b/tests/auto/quick/qquickrectangle/tst_qquickrectangle.cpp
@@ -159,17 +159,15 @@ void tst_qquickrectangle::gradient_multiple()
// Start off clean
QQuickItemPrivate *firstRectPriv = QQuickItemPrivate::get(firstRect);
QQuickItemPrivate *secondRectPriv = QQuickItemPrivate::get(secondRect);
- bool firstIsDirty = firstRectPriv->dirtyAttributes & QQuickItemPrivate::Content;
+ QTRY_VERIFY(!(firstRectPriv->dirtyAttributes & QQuickItemPrivate::Content));
bool secondIsDirty = secondRectPriv->dirtyAttributes & QQuickItemPrivate::Content;
- QVERIFY(!firstIsDirty);
QVERIFY(!secondIsDirty);
QMetaObject::invokeMethod(view.rootObject(), "changeGradient");
// Changing the gradient should have scheduled an update of both items
- firstIsDirty = firstRectPriv->dirtyAttributes & QQuickItemPrivate::Content;
+ QTRY_VERIFY(firstRectPriv->dirtyAttributes & QQuickItemPrivate::Content);
secondIsDirty = secondRectPriv->dirtyAttributes & QQuickItemPrivate::Content;
- QVERIFY(firstIsDirty);
QVERIFY(secondIsDirty);
}