Commit 8e3c9c06 authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: work on manual tests

Change-Id: I5f74c5fc2746e4195bdd5af405cb06cf8997cf6b
Reviewed-on: http://codereview.qt.nokia.com/1690

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 8f826aa5
......@@ -581,35 +581,49 @@ int testCatchThrow()
return gotit;
}
void testQDate()
{
QDate date;
date = QDate::currentDate();
date = date.addDays(5);
date = date.addDays(5);
date = date.addDays(5);
date = date.addDays(5);
}
namespace qdatetime {
void testQTime()
{
QTime time;
time = QTime::currentTime();
time = time.addSecs(5);
time = time.addSecs(5);
time = time.addSecs(5);
time = time.addSecs(5);
}
void testQDate()
{
QDate date;
// <== Break here.
// Step, check display.
date = QDate::currentDate();
date = date.addDays(5);
date = date.addDays(5);
dummyStatement(&date);
}
void testQDateTime()
{
QDateTime date;
date = QDateTime::currentDateTime();
date = date.addSecs(5);
date = date.addSecs(5);
date = date.addSecs(5);
date = date.addSecs(5);
}
void testQTime()
{
QTime time;
// <== Break here.
// Step, check display.
time = QTime::currentTime();
time = time.addSecs(5);
time = time.addSecs(5);
dummyStatement(&time);
}
void testQDateTime()
{
QDateTime date;
// <== Break here.
// Step, check display.
date = QDateTime::currentDateTime();
date = date.addSecs(5);
date = date.addSecs(5);
dummyStatement(&date);
}
void testDateTime()
{
testQDate();
testQDateTime();
testQTime();
}
} // namespace qdatetime
QFileInfo testQFileInfo()
{
......@@ -3232,9 +3246,7 @@ int main(int argc, char *argv[])
//testEndlessRecursion();
testQStack();
testPointer();
testQDate();
testQDateTime();
testQTime();
qdatetime::testDateTime();
testQFileInfo();
testQFixed();
testObject1();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment