diff options
author | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2019-05-06 16:03:37 +0200 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@qt.io> | 2019-05-07 12:53:25 +0000 |
commit | 4a4842118d2303a8d851d1d8b85fe182d3fe492a (patch) | |
tree | d6730afb592bd109ee63e112e120c5f82d10bce6 /tests/auto/quick/qquickaccessible/data | |
parent | 3df85008591dffc64427095b022421469cb9a866 (diff) |
Accessibility: Make sure StaticText is marked read-only
Test more of the text properties. This is still very incomplete, but a
small step forward.
Also make sure that editable text reports the editable state.
Fixes: QTBUG-75002
Change-Id: I9e43c980d8fa91671acb4e40e5d9162854884ee7
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickaccessible/data')
-rw-r--r-- | tests/auto/quick/qquickaccessible/data/text.qml (renamed from tests/auto/quick/qquickaccessible/data/statictext.qml) | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickaccessible/data/statictext.qml b/tests/auto/quick/qquickaccessible/data/text.qml index 1092f33daf..88f292a61f 100644 --- a/tests/auto/quick/qquickaccessible/data/statictext.qml +++ b/tests/auto/quick/qquickaccessible/data/text.qml @@ -28,4 +28,22 @@ Item { Accessible.name: "The Hello 2 accessible text" Accessible.description: "A text description" } + + TextInput { + x: 100 + y: 80 + width: 200 + height: 40 + text: "A text input" + Accessible.role: Accessible.EditableText + } + + TextEdit { + x: 100 + y: 120 + width: 200 + height: 100 + text: "A multi-line text edit\nTesting Accessibility." + Accessible.role: Accessible.EditableText + } } |