tst_QDataUrl: add a test with spaces around the charset parameter
Requested by Ivan Solovev in review. Pick-to: 6.9 6.8 6.5 5.15 Change-Id: I2f3dee8aad16af6748faa7660e2508e8ecd1709f Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
This commit is contained in:
parent
64693034ae
commit
1285dbeb3c
@ -41,6 +41,8 @@ void tst_QDataUrl::decode_data()
|
||||
"text/plain"_L1, QByteArray::fromPercentEncoding("%E2%88%9A"));
|
||||
row("everythingIsCaseInsensitive", "Data:texT/PlaiN;charSet=iSo-8859-1;Base64,SGVsbG8=", true,
|
||||
"texT/PlaiN;charSet=iSo-8859-1"_L1, QByteArrayLiteral("Hello"));
|
||||
row("spacesAroundCharset", "data:%20charset%20%20=%20UTF-8,Hello", true,
|
||||
"text/plain;charset = UTF-8"_L1, QByteArrayLiteral("Hello"));
|
||||
row("prematureCharsetEnd", "data:charset,", true,
|
||||
"charset", ""); // nonsense result, but don't crash
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user