diff options
author | Jan Arve Saether <jan-arve.saether@theqtcompany.com> | 2015-02-16 17:17:23 +0100 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@theqtcompany.com> | 2015-02-17 11:55:39 +0000 |
commit | 395f0181ee6d8a9decedea62a096c69a01a48a7c (patch) | |
tree | f906a8bd3fdc12b0ee4f80fd88eb421aa948ec99 /tests/auto/other | |
parent | bcfacd4b6f35dfd00f0f04d562f345bbc98cec13 (diff) |
Fix crash in QAccessibleTextWidget::attributes()
Task-number: QTBUG-44006
Change-Id: I79d7d84206a3e4abcd49c7c6e5e91b7c9c753dd6
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Diffstat (limited to 'tests/auto/other')
-rw-r--r-- | tests/auto/other/qaccessibility/tst_qaccessibility.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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() |