summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-11-29 16:37:01 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-30 07:49:32 +0100
commit75b66dc8b036c4f4ef3ff8ea109efd698b72732d (patch)
treebb0d914726e2d49518960aa1f7264ed4e1c42702 /tests/auto/corelib/io
parentfad19e18af7fd317a2f4e8daf537cbb46c63b8a7 (diff)
Cleanup corelib autotests
Remove references to the old bug tracker. The data from the old bug tracker is no longer accessible, so these markers are meaningless. Change-Id: Ib9d029d52b70fd0a512b9532d65f03763eabfe57 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/corelib/io')
-rw-r--r--tests/auto/corelib/io/qbuffer/tst_qbuffer.cpp1
-rw-r--r--tests/auto/corelib/io/qdatastream/tst_qdatastream.cpp2
-rw-r--r--tests/auto/corelib/io/qfile/tst_qfile.cpp4
-rw-r--r--tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp11
-rw-r--r--tests/auto/corelib/io/qiodevice/tst_qiodevice.cpp3
-rw-r--r--tests/auto/corelib/io/qprocess/tst_qprocess.cpp1
-rw-r--r--tests/auto/corelib/io/qsettings/tst_qsettings.cpp2
-rw-r--r--tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp1
-rw-r--r--tests/auto/corelib/io/qurl/tst_qurl.cpp16
9 files changed, 16 insertions, 25 deletions
diff --git a/tests/auto/corelib/io/qbuffer/tst_qbuffer.cpp b/tests/auto/corelib/io/qbuffer/tst_qbuffer.cpp
index f52a71b77f..296fa446b0 100644
--- a/tests/auto/corelib/io/qbuffer/tst_qbuffer.cpp
+++ b/tests/auto/corelib/io/qbuffer/tst_qbuffer.cpp
@@ -345,7 +345,6 @@ void tst_QBuffer::seekTest()
}
// Special case 2: seeking to an arbitrary position beyond the buffer auto-expands it
- // (see Task 184730)
{
char c;
const int offset = 1; // any positive integer will do
diff --git a/tests/auto/corelib/io/qdatastream/tst_qdatastream.cpp b/tests/auto/corelib/io/qdatastream/tst_qdatastream.cpp
index 9756eef8f9..db54db661d 100644
--- a/tests/auto/corelib/io/qdatastream/tst_qdatastream.cpp
+++ b/tests/auto/corelib/io/qdatastream/tst_qdatastream.cpp
@@ -3057,7 +3057,6 @@ void tst_QDataStream::compatibility_Qt3()
QDataStream in(stream);
in.setVersion(QDataStream::Qt_3_3);
- //task 196100
quint32 type;
in >> type;
//29 is the type of a QByteArray in Qt3
@@ -3066,7 +3065,6 @@ void tst_QDataStream::compatibility_Qt3()
in >> ba2;
QCOMPARE(ba2, ba);
- //task196415
quint32 color;
in >> color;
QCOMPARE(color, invalidColor);
diff --git a/tests/auto/corelib/io/qfile/tst_qfile.cpp b/tests/auto/corelib/io/qfile/tst_qfile.cpp
index 31ddd6298b..2b71bb738c 100644
--- a/tests/auto/corelib/io/qfile/tst_qfile.cpp
+++ b/tests/auto/corelib/io/qfile/tst_qfile.cpp
@@ -2363,9 +2363,7 @@ void tst_QFile::rename()
Here, we reproduce that condition by having a QFile sub-class with this
peculiar atEnd() behavior.
-
- See task 231583.
- */
+*/
void tst_QFile::renameWithAtEndSpecialFile() const
{
class PeculiarAtEnd : public QFile
diff --git a/tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp b/tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp
index 06e16ec35f..d5de61f4ed 100644
--- a/tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp
+++ b/tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp
@@ -447,7 +447,7 @@ void tst_QFileInfo::absolutePath_data()
QString nonCurrentDrivePrefix =
drivePrefix.left(1).compare("X", Qt::CaseInsensitive) == 0 ? QString("Y:") : QString("X:");
- // Make sure drive-relative paths return correct absolute paths (task 255326)
+ // Make sure drive-relative paths return correct absolute paths.
QTest::newRow("<current drive>:my.dll") << drivePrefix + "my.dll" << QDir::currentPath() << "my.dll";
QTest::newRow("<not current drive>:my.dll") << nonCurrentDrivePrefix + "my.dll"
<< nonCurrentDrivePrefix + "/"
@@ -460,7 +460,6 @@ void tst_QFileInfo::absolutePath_data()
QTest::newRow("/test") << "/test" << drivePrefix + "/" << "test";
#if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
- // see task 102898
QTest::newRow("c:\\autoexec.bat") << "c:\\autoexec.bat" << "C:/"
<< "autoexec.bat";
#endif
@@ -498,7 +497,7 @@ void tst_QFileInfo::absFilePath_data()
QTest::newRow(".") << curr << QDir::currentPath();
QTest::newRow("absFilePath") << "c:\\home\\andy\\tmp.txt" << "C:/home/andy/tmp.txt";
- // Make sure drive-relative paths return correct absolute paths (task 255326)
+ // Make sure drive-relative paths return correct absolute paths.
drivePrefix = QDir::currentPath().left(2);
QString nonCurrentDrivePrefix =
drivePrefix.left(1).compare("X", Qt::CaseInsensitive) == 0 ? QString("Y:") : QString("X:");
@@ -866,7 +865,7 @@ void tst_QFileInfo::size()
QFETCH(QString, file);
QFileInfo fi(file);
- (void)fi.permissions(); // see task 104198
+ (void)fi.permissions();
QTEST(int(fi.size()), "size");
}
@@ -876,8 +875,8 @@ void tst_QFileInfo::systemFiles()
QSKIP("This is a Windows only test");
#endif
QFileInfo fi("c:\\pagefile.sys");
- QVERIFY(fi.exists()); // task 167099
- QVERIFY(fi.size() > 0); // task 189202
+ QVERIFY(fi.exists());
+ QVERIFY(fi.size() > 0);
QVERIFY(fi.lastModified().isValid());
}
diff --git a/tests/auto/corelib/io/qiodevice/tst_qiodevice.cpp b/tests/auto/corelib/io/qiodevice/tst_qiodevice.cpp
index bb9751fe03..02a04a5fe5 100644
--- a/tests/auto/corelib/io/qiodevice/tst_qiodevice.cpp
+++ b/tests/auto/corelib/io/qiodevice/tst_qiodevice.cpp
@@ -552,7 +552,8 @@ public:
};
-// This is a testcase for the bug fixed with bd287865
+// This is a regression test for an old bug where peeking at
+// more than one character failed to put them back.
void tst_QIODevice::peekBug()
{
PeekBug peekBug;
diff --git a/tests/auto/corelib/io/qprocess/tst_qprocess.cpp b/tests/auto/corelib/io/qprocess/tst_qprocess.cpp
index f5eb930352..32cd6b7266 100644
--- a/tests/auto/corelib/io/qprocess/tst_qprocess.cpp
+++ b/tests/auto/corelib/io/qprocess/tst_qprocess.cpp
@@ -1867,7 +1867,6 @@ void tst_QProcess::atEnd2()
//-----------------------------------------------------------------------------
void tst_QProcess::waitForReadyReadForNonexistantProcess()
{
- // This comes from task 108968
// Start a program that doesn't exist, process events and then try to waitForReadyRead
qRegisterMetaType<QProcess::ProcessError>("QProcess::ProcessError");
qRegisterMetaType<QProcess::ExitStatus>("QProcess::ExitStatus");
diff --git a/tests/auto/corelib/io/qsettings/tst_qsettings.cpp b/tests/auto/corelib/io/qsettings/tst_qsettings.cpp
index 03366aabff..1388627325 100644
--- a/tests/auto/corelib/io/qsettings/tst_qsettings.cpp
+++ b/tests/auto/corelib/io/qsettings/tst_qsettings.cpp
@@ -1646,7 +1646,7 @@ void tst_QSettings::testChildKeysAndGroups()
settings1.endGroup();
settings1.endGroup();
- { // task 53792
+ {
QSettings settings2("other.software.org");
settings2.setValue("viewbar/foo/test1", "1");
settings2.setValue("viewbar/foo/test2", "2");
diff --git a/tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp b/tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp
index b3a30d75e9..049ab2d8f1 100644
--- a/tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp
+++ b/tests/auto/corelib/io/qtextstream/tst_qtextstream.cpp
@@ -1595,7 +1595,6 @@ void tst_QTextStream::numeralCase_data()
QTest::newRow("oct 2") << oct_ << base << noop_ << noop_ << 31 << "037";
}
-// From Task 125496
void tst_QTextStream::numeralCase()
{
QFETCH(QTextStreamFunction, func1);
diff --git a/tests/auto/corelib/io/qurl/tst_qurl.cpp b/tests/auto/corelib/io/qurl/tst_qurl.cpp
index f565989394..c47d340edc 100644
--- a/tests/auto/corelib/io/qurl/tst_qurl.cpp
+++ b/tests/auto/corelib/io/qurl/tst_qurl.cpp
@@ -878,13 +878,13 @@ void tst_QUrl::toString_data()
<< uint(QUrl::None)
<< QString::fromLatin1("http://andreas:hemmelig@www.vg.no/?my=query&your=query#yougotfragged");
- QTest::newRow("nopath_task31320") << QString::fromLatin1("host://protocol")
- << uint(QUrl::None)
- << QString::fromLatin1("host://protocol");
+ QTest::newRow("nopath") << QString::fromLatin1("host://protocol")
+ << uint(QUrl::None)
+ << QString::fromLatin1("host://protocol");
- QTest::newRow("underscore_QTBUG-7434") << QString::fromLatin1("http://foo_bar.host.com/rss.php")
- << uint(QUrl::None)
- << QString::fromLatin1("http://foo_bar.host.com/rss.php");
+ QTest::newRow("underscore") << QString::fromLatin1("http://foo_bar.host.com/rss.php")
+ << uint(QUrl::None)
+ << QString::fromLatin1("http://foo_bar.host.com/rss.php");
}
void tst_QUrl::toString()
@@ -1192,7 +1192,7 @@ void tst_QUrl::compat_constructor_03_data()
QTest::newRow( "windowsDrive04" ) << QString( "c:WinNT/" ) << QString( "c:WinNT/" );
QTest::newRow( "windowsDrive05" ) << QString( "c:autoexec.bat" ) << QString( "c:autoexec.bat" );
- QTest::newRow("task31280") << QString("protocol://host") << QString("protocol://host");
+ QTest::newRow("nopath") << QString("protocol://host") << QString("protocol://host");
}
void tst_QUrl::compat_constructor_03()
@@ -1923,13 +1923,11 @@ void tst_QUrl::tolerantParser()
}
{
- // task 243557
QByteArray tsdgeos("http://google.com/c?c=Translation+%C2%BB+trunk|");
QUrl tsdgeosQUrl;
tsdgeosQUrl.setEncodedUrl(tsdgeos, QUrl::TolerantMode);
QVERIFY(tsdgeosQUrl.isValid()); // failed in Qt-4.4, works in Qt-4.5
QByteArray tsdgeosExpected("http://google.com/c?c=Translation+%C2%BB+trunk%7C");
- //QCOMPARE(tsdgeosQUrl.toEncoded(), tsdgeosExpected); // unusable output from qtestlib...
QCOMPARE(QString(tsdgeosQUrl.toEncoded()), QString(tsdgeosExpected));
}