diff -r b72c6db6890b -r 5dc02b23752f tests/auto/qurl/tst_qurl.cpp --- a/tests/auto/qurl/tst_qurl.cpp Wed Jun 23 19:07:03 2010 +0300 +++ b/tests/auto/qurl/tst_qurl.cpp Tue Jul 06 15:10:48 2010 +0300 @@ -193,6 +193,7 @@ void fromUserInput(); void task_199967(); void task_240612(); + void taskQTBUG_6962(); #ifdef QT3_SUPPORT void dirPath(); @@ -3903,5 +3904,13 @@ << QUrl::fromEncoded("http://www.foo.com:8080/newfile.html"); } +void tst_QUrl::taskQTBUG_6962() +{ + //bug 6962: empty authority ignored by setAuthority + QUrl url("http://example.com/something"); + url.setAuthority(QString()); + QCOMPARE(url.authority(), QString()); +} + QTEST_MAIN(tst_QUrl) #include "tst_qurl.moc"