Add two compound URL invalidity cases for isValid()
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 19 Sep 2012 12:28:25 +0000 (14:28 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 2 Oct 2012 20:34:42 +0000 (22:34 +0200)
commit7d62f8ace542e04e3ddf92eec4fdad8d34ac9585
tree525c7a6285cfdfd322a9ec5672b281455dfc0183
parenta0af0fbcd4a41fb7be6abf558296682182cdffa0
Add two compound URL invalidity cases for isValid()

These two errors can only happen if one calls setPath() explicitly. They
cannot happen for parsed URLs, which is why they are only caught with
isValid(). It's not possible to set the error condition in setPath()
either because they depend on the presence / absence of the authority
and scheme.

Also update all the unit tests that set a path not starting with a slash
and were just "freeloaders" on the previous behaviour.

Change-Id: Ice58cd4589a850452d7573a5b19667bbab2fb43e
Reviewed-by: David Faure <faure@kde.org>
src/corelib/io/qurl.cpp
src/corelib/io/qurl_p.h
tests/auto/corelib/io/qurl/tst_qurl.cpp