aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <[email protected]>2016-12-31 17:12:15 +0100
committerAlbert Astals Cid <[email protected]>2016-12-31 17:12:15 +0100
commit4680718bfe6cb0c9d5608eca6131a2c1f7b24c1b (patch)
tree904978fc499f99d8833cdf7d370245cd731c91a0
parent1fd3552575467bffb2010a89b1800e783ad02b88 (diff)
Add datetime to debug to try to figure out what's getting stuck
-rw-r--r--autotests/kfiledialog_unittest.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/autotests/kfiledialog_unittest.cpp b/autotests/kfiledialog_unittest.cpp
index 1354222..f71950c 100644
--- a/autotests/kfiledialog_unittest.cpp
+++ b/autotests/kfiledialog_unittest.cpp
@@ -258,79 +258,79 @@ private Q_SLOTS:
QFETCH(bool, qtOverwriteOption);
QFETCH(bool, messageBoxExpected);
- qDebug() << "1";
+ qDebug() << QDateTime::currentDateTime() << "1";
QTemporaryFile tempFile(QDir::tempPath()+"/kfiledialogtest_XXXXXX");
- qDebug() << "1.1";
+ qDebug() << QDateTime::currentDateTime() << "1.1";
tempFile.setAutoRemove(true);
- qDebug() << "1.2";
+ qDebug() << QDateTime::currentDateTime() << "1.2";
tempFile.open();
- qDebug() << "1.3";
+ qDebug() << QDateTime::currentDateTime() << "1.3";
QString tempName = tempFile.fileName();
- qDebug() << "1.4";
+ qDebug() << QDateTime::currentDateTime() << "1.4";
tempFile.close();
- qDebug() << "1.5";
+ qDebug() << QDateTime::currentDateTime() << "1.5";
int idx = tempName.lastIndexOf('/');
- qDebug() << "2";
+ qDebug() << QDateTime::currentDateTime() << "2";
QFileDialog dialog;
- qDebug() << "2.1";
+ qDebug() << QDateTime::currentDateTime() << "2.1";
dialog.setAcceptMode(QFileDialog::AcceptSave);
- qDebug() << "2.2";
+ qDebug() << QDateTime::currentDateTime() << "2.2";
if (qtOverwriteOption) dialog.setOption(QFileDialog::DontConfirmOverwrite);
- qDebug() << "2.3";
+ qDebug() << QDateTime::currentDateTime() << "2.3";
dialog.setDirectory(tempName.left(idx+1));
- qDebug() << "2.4";
+ qDebug() << QDateTime::currentDateTime() << "2.4";
dialog.selectFile(tempName.mid(idx+1));
- qDebug() << "2.5";
+ qDebug() << QDateTime::currentDateTime() << "2.5";
dialog.open();
- qDebug() << "3";
+ qDebug() << QDateTime::currentDateTime() << "3";
KFileWidget *fw = findFileWidget();
- qDebug() << "3.1";
+ qDebug() << QDateTime::currentDateTime() << "3.1";
QVERIFY(fw);
- qDebug() << "3.2";
+ qDebug() << QDateTime::currentDateTime() << "3.2";
QTest::qWaitForWindowExposed(fw->window());
- qDebug() << "3.3";
+ qDebug() << QDateTime::currentDateTime() << "3.3";
QCOMPARE(fw->isVisible(), true);
- qDebug() << "4";
+ qDebug() << QDateTime::currentDateTime() << "4";
messageBoxSeen = false;
checkMessageBoxRun = false;
- qDebug() << "4.1";
- QTimer::singleShot(5000, this, SLOT(checkMessageBox()));
- qDebug() << "4.2";
+ qDebug() << QDateTime::currentDateTime() << "4.1";
+ QTimer::singleShot(3500, this, SLOT(checkMessageBox()));
+ qDebug() << QDateTime::currentDateTime() << "4.2";
fw->slotOk();
- qDebug() << "5";
+ qDebug() << QDateTime::currentDateTime() << "5";
fw->slotCancel();
- qDebug() << "5.1";
+ qDebug() << QDateTime::currentDateTime() << "5.1";
QTRY_VERIFY(checkMessageBoxRun);
QVERIFY(messageBoxSeen == messageBoxExpected);
- qDebug() << "6";
+ qDebug() << QDateTime::currentDateTime() << "6";
}
protected Q_SLOTS:
void checkMessageBox()
{
checkMessageBoxRun = true;
- qDebug() << "A";
+ qDebug() << QDateTime::currentDateTime() << "A";
QDialog *msgbox = findMessageBox();
- qDebug() << "B";
+ qDebug() << QDateTime::currentDateTime() << "B";
if (!msgbox) return;
- qDebug() << "C";
+ qDebug() << QDateTime::currentDateTime() << "C";
QTest::qWaitForWindowExposed(msgbox);
- qDebug() << "D";
+ qDebug() << QDateTime::currentDateTime() << "D";
QCOMPARE(msgbox->isVisible(), true);
- qDebug() << "E";
+ qDebug() << QDateTime::currentDateTime() << "E";
messageBoxSeen = true;
- qDebug() << "F";
+ qDebug() << QDateTime::currentDateTime() << "F";
msgbox->close();
- qDebug() << "G";
+ qDebug() << QDateTime::currentDateTime() << "G";
}
private: