Remove Q_ASSERT from qgraphicsanchorlayout test
authorJason McDonald <jason.mcdonald@nokia.com>
Tue, 3 May 2011 00:38:03 +0000 (10:38 +1000)
committerRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 18 May 2011 00:46:42 +0000 (10:46 +1000)
commit319197880eb8a5d92d2afa4bb22cbdf5193c88de
treebfc52c584be27a8075c68378f238c743a5736445
parent5bdf574941475d834451142506b5cdb452027f7d
Remove Q_ASSERT from qgraphicsanchorlayout test

Q_ASSERT will only catch a violation of the precondition of the
checkReverseDirection function in a debug build.  This commit replaces
the Q_ASSERT with QVERIFY'ing the precondition (that the widget has a
layout) before calling the function.

Change-Id: Ibaa2b52b7d67fa20784e0df022e8c8169da0e50e
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit d1011fc9328fa335bc69a065b29e77ce60608c55)
tests/auto/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp