diff options
Diffstat (limited to 'tests/auto/corelib/text/qstring/tst_qstring.cpp')
-rw-r--r-- | tests/auto/corelib/text/qstring/tst_qstring.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/auto/corelib/text/qstring/tst_qstring.cpp b/tests/auto/corelib/text/qstring/tst_qstring.cpp index bfecbf2b4b..2e7b0fb1ed 100644 --- a/tests/auto/corelib/text/qstring/tst_qstring.cpp +++ b/tests/auto/corelib/text/qstring/tst_qstring.cpp @@ -522,9 +522,6 @@ private slots: void stringRef_local8Bit_data(); void stringRef_local8Bit(); void fromLatin1(); -#if QT_DEPRECATED_SINCE(5, 0) - void fromAscii(); -#endif void fromUcs4(); void toUcs4(); void arg(); @@ -4612,32 +4609,6 @@ void tst_QString::fromLatin1() QVERIFY(a.size() == 5); } -#if QT_DEPRECATED_SINCE(5, 0) -QT_WARNING_PUSH -QT_WARNING_DISABLE_DEPRECATED -void tst_QString::fromAscii() -{ - QString a; - a = QString::fromAscii( 0 ); - QVERIFY( a.isNull() ); - QVERIFY( a.isEmpty() ); - a = QString::fromAscii( "" ); - QVERIFY( !a.isNull() ); - QVERIFY( a.isEmpty() ); - - a = QString::fromAscii(0, 0); - QVERIFY(a.isNull()); - a = QString::fromAscii(0, 5); - QVERIFY(a.isNull()); - a = QString::fromAscii("\0abcd", 0); - QVERIFY(!a.isNull()); - QVERIFY(a.isEmpty()); - a = QString::fromAscii("\0abcd", 5); - QVERIFY(a.size() == 5); -} -QT_WARNING_POP -#endif - void tst_QString::fromUcs4() { const uint *null = 0; |