summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2010-12-30 00:46:05 (GMT)
committerRohan McGovern <rohan.mcgovern@nokia.com>2010-12-30 00:46:05 (GMT)
commit6981c17455f949fd4fccbaf1bd42ab48f95d4212 (patch)
tree491b00d133840db5f8d9d8b2c02dab193a4bc4c4 /tests
parenta31d271bdd4594ea455736a0000cd3493b0efc93 (diff)
downloadQt-6981c17455f949fd4fccbaf1bd42ab48f95d4212.zip
Qt-6981c17455f949fd4fccbaf1bd42ab48f95d4212.tar.gz
Qt-6981c17455f949fd4fccbaf1bd42ab48f95d4212.tar.bz2
tst_qmessagebox: make the failure message better for detailsButtonText
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qmessagebox/tst_qmessagebox.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/qmessagebox/tst_qmessagebox.cpp b/tests/auto/qmessagebox/tst_qmessagebox.cpp
index a39d458..9e497fa 100644
--- a/tests/auto/qmessagebox/tst_qmessagebox.cpp
+++ b/tests/auto/qmessagebox/tst_qmessagebox.cpp
@@ -714,8 +714,7 @@ void tst_QMessageBox::detailsButtonText()
foreach(btn, list) {
if (btn && (btn->inherits("QPushButton"))) {
if (btn->text() != QMessageBox::tr("OK") && btn->text() != QMessageBox::tr("Show Details...")) {
- qDebug() << btn->text();
- QFAIL("Incorrect messagebox button text!");
+ QFAIL(qPrintable(QString("Unexpected messagebox button text: %1").arg(btn->text())));
}
}
}