tst_qurl{,internal}: Use U+FB01 for normalization to ASCII test cases
Use U+FB01 LATIN SMALL LIGATURE FI instead of U+00DF LATIN SMALL LETTER SHARP S in testcases that need non-ASCII URLs that are normalized to ASCII. The latter is not normalized to ASCII when using UTS #46 nontransitional processing. Task-number: QTBUG-85371 Change-Id: I8c153feb58e556b1d31439018cc84d8e8f1de1a7 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
d9881799c1
commit
8b5de677a7
@ -2081,8 +2081,9 @@ void tst_QUrl::hasQuery()
|
||||
|
||||
void tst_QUrl::nameprep()
|
||||
{
|
||||
QUrl url(QString::fromUtf8("http://www.fu""\xc3""\x9f""ball.de/"));
|
||||
QCOMPARE(url.toString(), QString::fromLatin1("http://www.fussball.de/"));
|
||||
// U+FB01 LATIN SMALL LIGATURE FI
|
||||
QUrl url(u"http://www.\uFB01le.de/"_qs);
|
||||
QCOMPARE(url.toString(), QStringLiteral(u"http://www.file.de/"));
|
||||
}
|
||||
|
||||
void tst_QUrl::isValid()
|
||||
|
@ -258,8 +258,9 @@ void tst_QUrlInternal::ace_testsuite_data()
|
||||
QTest::newRow("ascii-mixed") << "FLuke" << "fluke" << "fluke" << "fluke";
|
||||
QTest::newRow("ascii-upper") << "FLUKE" << "fluke" << "fluke" << "fluke";
|
||||
|
||||
QTest::newRow("asciifolded") << QString::fromLatin1("stra\337e") << "strasse" << "." << "strasse";
|
||||
QTest::newRow("asciifolded-dotcom") << QString::fromLatin1("stra\337e.example.com") << "strasse.example.com" << "." << "strasse.example.com";
|
||||
// U+FB01 LATIN SMALL LIGATURE FI
|
||||
QTest::newRow("asciifolded") << u"\uFB01le"_qs << "file" << "." << "file";
|
||||
QTest::newRow("asciifolded-dotcom") << u"\uFB01le.example.com"_qs << "file.example.com" << "." << "file.example.com";
|
||||
QTest::newRow("greek-mu") << QString::fromLatin1("\265V")
|
||||
<<"xn--v-lmb"
|
||||
<< "."
|
||||
|
Loading…
Reference in New Issue
Block a user