forked from qt-creator/qt-creator
debugger: add manual test for QDateTime, also extend script test a bit
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
#include <QtCore/QDebug>
|
#include <QtCore/QDebug>
|
||||||
|
#include <QtCore/QDateTime>
|
||||||
#include <QtCore/QDir>
|
#include <QtCore/QDir>
|
||||||
#include <QtCore/QHash>
|
#include <QtCore/QHash>
|
||||||
#include <QtCore/QLibrary>
|
#include <QtCore/QLibrary>
|
||||||
@@ -194,6 +195,16 @@ void testQByteArray()
|
|||||||
ba += 2;
|
ba += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void testQDateTime()
|
||||||
|
{
|
||||||
|
QDateTime date;
|
||||||
|
date = QDateTime::currentDateTime();
|
||||||
|
date = date.addSecs(5);
|
||||||
|
date = date.addSecs(5);
|
||||||
|
date = date.addSecs(5);
|
||||||
|
date = date.addSecs(5);
|
||||||
|
}
|
||||||
|
|
||||||
void testQFileInfo()
|
void testQFileInfo()
|
||||||
{
|
{
|
||||||
QFileInfo fi("/tmp/t");
|
QFileInfo fi("/tmp/t");
|
||||||
@@ -553,6 +564,7 @@ void testQSet()
|
|||||||
QObject ob;
|
QObject ob;
|
||||||
QSet<QPointer<QObject> > hash;
|
QSet<QPointer<QObject> > hash;
|
||||||
QPointer<QObject> ptr(&ob);
|
QPointer<QObject> ptr(&ob);
|
||||||
|
ptr;
|
||||||
//hash.insert(ptr);
|
//hash.insert(ptr);
|
||||||
//hash.insert(ptr);
|
//hash.insert(ptr);
|
||||||
//hash.insert(ptr);
|
//hash.insert(ptr);
|
||||||
@@ -592,7 +604,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
QSharedDataPointer<EmployeeData> d;
|
QSharedDataPointer<EmployeeData> d;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
void testQSharedPointer()
|
void testQSharedPointer()
|
||||||
@@ -1301,6 +1313,7 @@ int main(int argc, char *argv[])
|
|||||||
testQStack();
|
testQStack();
|
||||||
testUninitialized();
|
testUninitialized();
|
||||||
testPointer();
|
testPointer();
|
||||||
|
testQDateTime();
|
||||||
testQFileInfo();
|
testQFileInfo();
|
||||||
testObject1();
|
testObject1();
|
||||||
testVector1();
|
testVector1();
|
||||||
|
Reference in New Issue
Block a user