diff options
author | Eduardo M. Fleury <eduardo.fleury@openbossa.org> | 2009-11-11 22:22:42 (GMT) |
---|---|---|
committer | Eduardo M. Fleury <eduardo.fleury@openbossa.org> | 2009-11-12 21:35:26 (GMT) |
commit | e7689dbab0e9a491d0ac6ead5b9412bf6ff86be0 (patch) | |
tree | e3c0d0f7144ceeddb203c20fffea8b40ebcbc681 /tests | |
parent | 118412e46f5b5af58eaa3012f9fb086894f9b5f2 (diff) | |
download | Qt-e7689dbab0e9a491d0ac6ead5b9412bf6ff86be0.zip Qt-e7689dbab0e9a491d0ac6ead5b9412bf6ff86be0.tar.gz Qt-e7689dbab0e9a491d0ac6ead5b9412bf6ff86be0.tar.bz2 |
QGAL (Test): Fix order of parameters in QCOMPARE
The order is relevant when the test fails and QTest prints the
failure message refering to the values as the expected and actual
ones.
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')
-rw-r--r-- | tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp b/tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp index 0fbd069..bca59c3 100644 --- a/tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp +++ b/tests/auto/qgraphicsanchorlayout1/tst_qgraphicsanchorlayout1.cpp @@ -1722,7 +1722,7 @@ void tst_QGraphicsAnchorLayout1::testBasicLayout() QRectF expected = truncate(item.rect); QRectF actual = truncate(widgets[item.index]->geometry()); - QCOMPARE(expected, actual); + QCOMPARE(actual, expected); } // Test mirrored mode @@ -1739,7 +1739,7 @@ void tst_QGraphicsAnchorLayout1::testBasicLayout() QRectF expected = truncate(mirroredRect); QRectF actual = truncate(widgets[item.index]->geometry()); - QCOMPARE(expected, actual); + QCOMPARE(actual, expected); delete widgets[item.index]; } |