diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-04-19 06:15:57 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2011-04-19 07:14:24 (GMT) |
commit | 3ca51d87296bcb3098d7de14294fef9294fd5ed4 (patch) | |
tree | bde740039b0ad2d2f7a1a5c10992e4c2a59b65c1 | |
parent | cf911bc0d297ed30e615fd115b0d3ae574cb2412 (diff) | |
download | Qt-3ca51d87296bcb3098d7de14294fef9294fd5ed4.zip Qt-3ca51d87296bcb3098d7de14294fef9294fd5ed4.tar.gz Qt-3ca51d87296bcb3098d7de14294fef9294fd5ed4.tar.bz2 |
Ignore expected warning in accessibility autotest
Change-Id: I4b614766d2451dde51ab1207267301a2fe7dd0f6
Reviewed-by: Rohan McGovern
-rw-r--r-- | tests/auto/qaccessibility/tst_qaccessibility.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qaccessibility/tst_qaccessibility.cpp b/tests/auto/qaccessibility/tst_qaccessibility.cpp index 888f449..ebd01bb 100644 --- a/tests/auto/qaccessibility/tst_qaccessibility.cpp +++ b/tests/auto/qaccessibility/tst_qaccessibility.cpp @@ -3826,6 +3826,8 @@ void tst_QAccessibility::accelerators() QCOMPARE(accLineEdit->text(QAccessible::Accelerator, 0), QKeySequence(Qt::ALT).toString(QKeySequence::NativeText) + QLatin1String("A")); label->setText(tr("Q &&A")); QCOMPARE(accLineEdit->text(QAccessible::Accelerator, 0), QString()); + + QTest::ignoreMessage(QtWarningMsg, "QKeySequence::mnemonic: \"Q &A&B\" contains multiple occurrences of '&'"); label->setText(tr("Q &A&B")); QCOMPARE(accLineEdit->text(QAccessible::Accelerator, 0), QKeySequence(Qt::ALT).toString(QKeySequence::NativeText) + QLatin1String("A")); |