KUrl or QUrl bug?
Sebastian Trüg
trueg at kde.org
Fri Jun 18 10:31:34 BST 2010
yes, the first test case is bogus. The bug is still valid though.
I updated the test for the Qt bug report.
Cheers,
Sebastian
On 06/18/2010 08:12 AM, André Wöbbeking wrote:
> On Thursday 17 June 2010, Sebastian Trüg wrote:
>> Hi guys,
>>
>> please find attached a patch to the kurltest which will make it fail
>> since an url on which you add a query item and then remove it are not
>> equal anymore.
>
> KUrl url("http://www.foobar.com/");
> url.addQueryItem(QLatin1String("foo"), QLatin1String("bar"));
> KUrl url2(url);
> KUrl url3(url);
>
> url2.removeQueryItem(QLatin1String("foo"));
> QCOMPARE(url, url2);
>
> This one must fail as url still contains the query, no?
>
More information about the kde-core-devel
mailing list