diff options
author | Eduardo M. Fleury <eduardo.fleury@openbossa.org> | 2009-10-27 21:34:01 (GMT) |
---|---|---|
committer | Eduardo M. Fleury <eduardo.fleury@openbossa.org> | 2009-11-04 23:28:18 (GMT) |
commit | d4d6901d82476e92f4c318d8d6e9da5d3410920f (patch) | |
tree | 6a5b6663ecc2b76375dfc6e80582e7860bbb889a /tests/auto | |
parent | 52d737eb6f4b79cd0c7fc7ee1d041fb19d286a27 (diff) | |
download | Qt-d4d6901d82476e92f4c318d8d6e9da5d3410920f.zip Qt-d4d6901d82476e92f4c318d8d6e9da5d3410920f.tar.gz Qt-d4d6901d82476e92f4c318d8d6e9da5d3410920f.tar.bz2 |
QGAL (Test): Disable simplification test when that is off
Prevent failures when the test is run with QT_ANCHORLAYOUT_NO_SIMPLIFICATION
Signed-off-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp b/tests/auto/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp index 00bfe65..53e27dc 100644 --- a/tests/auto/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp +++ b/tests/auto/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp @@ -342,8 +342,10 @@ void tst_QGraphicsAnchorLayout::layoutDirection() QCOMPARE(checkReverseDirection(p), true); - QVERIFY(usedSimplex(l, Qt::Horizontal)); - QVERIFY(!usedSimplex(l, Qt::Vertical)); + if (hasSimplification) { + QVERIFY(usedSimplex(l, Qt::Horizontal)); + QVERIFY(!usedSimplex(l, Qt::Vertical)); + } delete p; delete view; |