summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/text/qstringbuilder
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2021-12-21 07:45:59 +0100
committerMarc Mutz <marc.mutz@qt.io>2021-12-22 13:01:25 +0100
commitb6239f70f57961cceec5f0c5f56e3f94b1d5a92a (patch)
treea2ed50947f07110e93a0e512f7e2d6df9ba51160 /tests/auto/corelib/text/qstringbuilder
parentbd40e43695b5ad89697453d0f8f8476940b42bc7 (diff)
tst_QStringBuilder: remove test that doesn't test anything
We now have a more reliable test for the case with freeSpaceAtBegin(), so remove the old test, after we verified it actually doesn't even test that case. Task-number: QTBUG-99330 Pick-to: 6.3 6.2 Change-Id: Ic108a722cd2fef1e63a05085a76d7572d1f8c875 Reviewed-by: Anton Kudryavtsev <antkudr@mail.ru> Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'tests/auto/corelib/text/qstringbuilder')
-rw-r--r--tests/auto/corelib/text/qstringbuilder/qstringbuilder1/stringbuilder.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/auto/corelib/text/qstringbuilder/qstringbuilder1/stringbuilder.cpp b/tests/auto/corelib/text/qstringbuilder/qstringbuilder1/stringbuilder.cpp
index 65157e6be5..b4c5ebb968 100644
--- a/tests/auto/corelib/text/qstringbuilder/qstringbuilder1/stringbuilder.cpp
+++ b/tests/auto/corelib/text/qstringbuilder/qstringbuilder1/stringbuilder.cpp
@@ -380,16 +380,6 @@ void runScenario()
QByteArray ba2 = withZero;
ba2 += ba2 P withZero;
QCOMPARE(ba2, QByteArray(withZero + withZero + withZero));
-
- // With space allocated in front, mirroring what happens with QHttpMultiPart in QNAM
- QByteArray byteArray;
- byteArray.reserve(70);
- byteArray.insert(0, "multipart/");
- byteArray.insert(byteArray.size(), "mixed");
- QEXPECT_FAIL("", "there's no freeSpaceAtBegin()?!", Continue);
- QVERIFY(byteArray.data_ptr().freeSpaceAtBegin() > 0);
- byteArray += "; boundary=\"" P QByteArray(30, 'o') P '"';
- QCOMPARE(byteArray, "multipart/mixed; boundary=\"oooooooooooooooooooooooooooooo\"");
}
checkItWorksWithFreeSpaceAtBegin(QByteArray(UTF8_LITERAL), "1234");