diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2010-12-22 13:04:26 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-12-22 13:04:26 (GMT) |
commit | 6210542b3fb2b577512f5e2970f14303d1e5f21a (patch) | |
tree | 47c14557ea01a4dd54a8314a50f6c5f0060a46d7 /tests/auto/qmessagebox | |
parent | 5e5a637cca3709a64f7dfa4e668a8c9d985e9579 (diff) | |
download | Qt-6210542b3fb2b577512f5e2970f14303d1e5f21a.zip Qt-6210542b3fb2b577512f5e2970f14303d1e5f21a.tar.gz Qt-6210542b3fb2b577512f5e2970f14303d1e5f21a.tar.bz2 |
tst_qmessagebox: add debug to know why it fails
Diffstat (limited to 'tests/auto/qmessagebox')
-rw-r--r-- | tests/auto/qmessagebox/tst_qmessagebox.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qmessagebox/tst_qmessagebox.cpp b/tests/auto/qmessagebox/tst_qmessagebox.cpp index 54d199c..f6ee764 100644 --- a/tests/auto/qmessagebox/tst_qmessagebox.cpp +++ b/tests/auto/qmessagebox/tst_qmessagebox.cpp @@ -677,8 +677,10 @@ void tst_QMessageBox::detailsButtonText() QAbstractButton* btn = NULL; foreach(btn, list) { if (btn && (btn->inherits("QPushButton"))) { - if(btn->text() != QMessageBox::tr("OK") && btn->text() != QMessageBox::tr("Show Details...")) + if (btn->text() != QMessageBox::tr("OK") && btn->text() != QMessageBox::tr("Show Details...")) { + qDebug() << btn->text(); QFAIL("Incorrect messagebox button text!"); + } } } } |