tst_qurl: add tests for mailto parsing and toString. No bug.
This was prompted by https://git.reviewboard.kde.org/r/119221 Change-Id: Ia148f07f6d711df533693918bbedfa5e7dc02cd5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
ae99f83312
commit
6f3bb0aafa
@ -1027,6 +1027,13 @@ void tst_QUrl::toString_data()
|
||||
QTest::newRow("underscore") << QString::fromLatin1("http://foo_bar.host.com/rss.php")
|
||||
<< uint(QUrl::None)
|
||||
<< QString::fromLatin1("http://foo_bar.host.com/rss.php");
|
||||
|
||||
QTest::newRow("mailto-brackets") << QString::fromLatin1("mailto:test[at]gmail[dot]com")
|
||||
<< uint(QUrl::PrettyDecoded)
|
||||
<< QString::fromLatin1("mailto:test[at]gmail[dot]com");
|
||||
QTest::newRow("mailto-query") << QString::fromLatin1("mailto:?to=test@example.com")
|
||||
<< uint(QUrl::PrettyDecoded)
|
||||
<< QString::fromLatin1("mailto:?to=test@example.com");
|
||||
}
|
||||
|
||||
void tst_QUrl::toString()
|
||||
|
Loading…
Reference in New Issue
Block a user