equal
deleted
inserted
replaced
192 void fromUserInput_data(); |
192 void fromUserInput_data(); |
193 void fromUserInput(); |
193 void fromUserInput(); |
194 void task_199967(); |
194 void task_199967(); |
195 void task_240612(); |
195 void task_240612(); |
196 void taskQTBUG_6962(); |
196 void taskQTBUG_6962(); |
|
197 void taskQTBUG_8701(); |
197 |
198 |
198 #ifdef QT3_SUPPORT |
199 #ifdef QT3_SUPPORT |
199 void dirPath(); |
200 void dirPath(); |
200 #endif |
201 #endif |
201 }; |
202 }; |
3910 QUrl url("http://example.com/something"); |
3911 QUrl url("http://example.com/something"); |
3911 url.setAuthority(QString()); |
3912 url.setAuthority(QString()); |
3912 QCOMPARE(url.authority(), QString()); |
3913 QCOMPARE(url.authority(), QString()); |
3913 } |
3914 } |
3914 |
3915 |
|
3916 void tst_QUrl::taskQTBUG_8701() |
|
3917 { |
|
3918 //bug 8701: foo:///bar mangled to foo:/bar |
|
3919 QString foo_triple_bar("foo:///bar"), foo_uni_bar("foo:/bar"); |
|
3920 |
|
3921 QCOMPARE(foo_triple_bar, QUrl(foo_triple_bar).toString()); |
|
3922 QCOMPARE(foo_uni_bar, QUrl(foo_uni_bar).toString()); |
|
3923 |
|
3924 QCOMPARE(foo_triple_bar, QUrl(foo_triple_bar, QUrl::StrictMode).toString()); // fails |
|
3925 QCOMPARE(foo_uni_bar, QUrl(foo_uni_bar, QUrl::StrictMode).toString()); |
|
3926 } |
|
3927 |
3915 QTEST_MAIN(tst_QUrl) |
3928 QTEST_MAIN(tst_QUrl) |
3916 #include "tst_qurl.moc" |
3929 #include "tst_qurl.moc" |