diff options
author | Jędrzej Nowacki <jedrzej.nowacki@digia.com> | 2013-11-25 14:56:50 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-26 10:45:45 +0100 |
commit | 0b8906110225b9d2c45807dfe14ab8d25b03de67 (patch) | |
tree | fb7472d24b9547bd8332c41b9875a83f8cc0e519 /tests/auto | |
parent | 64251416c69f29959d85ce0eaab6ec1c842a97f3 (diff) | |
download | qtenginio-0b8906110225b9d2c45807dfe14ab8d25b03de67.tar.gz |
Improve qml test: use compare over verify
Change-Id: I4bd00f99f456dbbd65fd2bd47b90f0b6ba20e718
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qmltests/tst_identity.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qmltests/tst_identity.qml b/tests/auto/qmltests/tst_identity.qml index 10baffd..3cb4e80 100644 --- a/tests/auto/qmltests/tst_identity.qml +++ b/tests/auto/qmltests/tst_identity.qml @@ -101,14 +101,14 @@ Item { verify(enginio.authenticationState !== Enginio.Authenticated) enginio.identity = validIdentity sessionAuthenticatedSpy.wait() - verify(enginio.authenticationState === Enginio.Authenticated) + compare(enginio.authenticationState, Enginio.Authenticated) // reassign the same enginio.identity = null tryCompare(enginio, "authenticationState", Enginio.NotAuthenticated) enginio.identity = validIdentity sessionAuthenticatedSpy.wait() - verify(enginio.authenticationState === Enginio.Authenticated) + compare(enginio.authenticationState, Enginio.Authenticated) } function test_assignInvalidIdentity() { |