Make sure tryCompare value argument is not undefined
authorAlbert Astals Cid <albert.astals@canonical.com>
Wed, 15 May 2013 15:28:35 +0000 (17:28 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 29 May 2013 06:23:09 +0000 (08:23 +0200)
commit3414cc6c7a4e021ec2c9a4f369acc2a0a0568c58
treed7e6ebf8d60d12623ed349bdbe7f1fe4b33ecdbf
parent114c9a16e240558a8aea2004696369e78ef5ac80
Make sure tryCompare value argument is not undefined

It happens often that people convert a
compare(foo.bar, 3)
to a
tryCompare(foo.bar, 3)
and unfortunately that succeeds but doesn't do what they expected

This makes tryCompare fail if no third argument is given

Task-number: QTBUG-31427

Change-Id: I0c9618dae9aad4be55aa35c3e2dcf3535728beaa
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
dist/changes-5.1.0
src/imports/testlib/TestCase.qml