From 395f0181ee6d8a9decedea62a096c69a01a48a7c Mon Sep 17 00:00:00 2001 From: Jan Arve Saether Date: Mon, 16 Feb 2015 17:17:23 +0100 Subject: Fix crash in QAccessibleTextWidget::attributes() Task-number: QTBUG-44006 Change-Id: I79d7d84206a3e4abcd49c7c6e5e91b7c9c753dd6 Reviewed-by: Frederik Gladhorn --- tests/auto/other/qaccessibility/tst_qaccessibility.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp index e59509a944..6be339d16b 100644 --- a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp +++ b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp @@ -733,6 +733,7 @@ void tst_QAccessibility::textAttributes_data() QTest::newRow("left right left aligned 10") << leftRightLeftAligned << 10 << 10 << 11 << rightAlign; QTest::newRow("left right left aligned 11") << leftRightLeftAligned << 11 << 11 << 15 << bold; QTest::newRow("left right left aligned 15") << leftRightLeftAligned << 15 << 11 << 15 << bold; + QTest::newRow("empty with no fragments") << QString::fromLatin1("\n\n\n\n") << 0 << 0 << 1 << defaults; } void tst_QAccessibility::textAttributes() -- cgit v1.2.3