Make QUrl::errorString() usable for QtTest output in invalid URLs
authorThiago Macieira <thiago.macieira@intel.com>
Tue, 18 Sep 2012 21:07:46 +0000 (23:07 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 2 Oct 2012 20:34:42 +0000 (22:34 +0200)
commit59ad0019dcbb59b25a0d252575fe831b189d16f6
tree80e9c85e11f707b11df8477426871915507062fa
parentadce435a0c6f6d515fa4dd3af86c725843158514
Make QUrl::errorString() usable for QtTest output in invalid URLs

If an URL is invalid, let's indicate that in the test output. To be
helpful, let's make QUrl::errorString() include the component form of
the URL.

Change-Id: Iaafe16973ded79c7ea688fbb23808d91253e8c14
Reviewed-by: David Faure <faure@kde.org>
src/corelib/io/qurl.cpp
src/testlib/qtest.h
tests/auto/testlib/selftests/expected_datetime.lightxml
tests/auto/testlib/selftests/expected_datetime.txt
tests/auto/testlib/selftests/expected_datetime.xml
tests/auto/testlib/selftests/expected_datetime.xunitxml