Remove Q_ASSERT from accessibility autotest
authorJason McDonald <jason.mcdonald@nokia.com>
Tue, 19 Apr 2011 03:55:05 +0000 (13:55 +1000)
committerRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 18 May 2011 00:46:40 +0000 (10:46 +1000)
commit6bc4d8b58fb3bc152c00ac75f67eb6a460ae639a
tree1122b1fbedb269ec2450d86872b93fb90c2aa07c
parent29851474c70c5e2a5e3d521c0db3abf0837d8df0
Remove Q_ASSERT from accessibility autotest

Instead of crashing when we can't get a QAccessibleInterface for a
widget, output a useful warning and return a value that makes the test
fail gracefully.

Change-Id: I0b292cdd8f5a59e26bdc9b0b67cea2b58591df7d
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit d8dc5bfdff25d72e8276c6e80080d72315abe7e0)
tests/auto/qaccessibility/tst_qaccessibility.cpp