diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-12-30 00:46:05 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-12-30 00:46:05 (GMT) |
commit | 6981c17455f949fd4fccbaf1bd42ab48f95d4212 (patch) | |
tree | 491b00d133840db5f8d9d8b2c02dab193a4bc4c4 /tests | |
parent | a31d271bdd4594ea455736a0000cd3493b0efc93 (diff) | |
download | Qt-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.cpp | 3 |
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()))); } } } |