diff options
Diffstat (limited to 'tests/auto/corelib')
-rw-r--r-- | tests/auto/corelib/io/qurl/tst_qurl.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/auto/corelib/io/qurl/tst_qurl.cpp b/tests/auto/corelib/io/qurl/tst_qurl.cpp index f94b0441f8..8b4908f977 100644 --- a/tests/auto/corelib/io/qurl/tst_qurl.cpp +++ b/tests/auto/corelib/io/qurl/tst_qurl.cpp @@ -2991,15 +2991,21 @@ void tst_QUrl::setComponents_data() QTest::newRow("userinfo-empty") << QUrl("http://user:pass@example.com") << int(UserInfo) << "" << Tolerant << true << PrettyDecoded << "" << "http://@example.com"; + QTest::newRow("userinfo-colon") << QUrl("http://user@example.com") + << int(UserInfo) << ":" << Tolerant << true + << PrettyDecoded << ":" << "http://:@example.com"; QTest::newRow("username-null") << QUrl("http://user@example.com") << int(UserName) << QString() << Tolerant << true << PrettyDecoded << QString() << "http://example.com"; QTest::newRow("username-empty") << QUrl("http://user@example.com") << int(UserName) << "" << Tolerant << true << PrettyDecoded << "" << "http://@example.com"; - QTest::newRow("username-empty-path-nonempty") << QUrl("http://user:pass@example.com") - << int(UserName) << "" << Tolerant << true - << PrettyDecoded << "" << "http://:pass@example.com"; + QTest::newRow("username-empty-password-nonempty") << QUrl("http://user:pass@example.com") + << int(UserName) << "" << Tolerant << true + << PrettyDecoded << "" << "http://:pass@example.com"; + QTest::newRow("username-empty-password-empty") << QUrl("http://user:@example.com") + << int(UserName) << "" << Tolerant << true + << PrettyDecoded << "" << "http://:@example.com"; QTest::newRow("password-null") << QUrl("http://user:pass@example.com") << int(Password) << QString() << Tolerant << true << PrettyDecoded << QString() << "http://user@example.com"; |