aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickaccessible/data
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@digia.com>2014-09-23 11:24:58 +0200
committerJan Arve Sæther <jan-arve.saether@theqtcompany.com>2014-10-20 17:10:01 +0200
commit09a67ad96508dad0e85137c68d9e45fc3544a138 (patch)
treee605409bea60b5a742ac15604f92035d02b2e8ff /tests/auto/quick/qquickaccessible/data
parent7f692693d98522187029e82c746627e3bd51be67 (diff)
Make test more robust against ignored children.
With the upcoming change that changes the semantics of Accessible.ignored, some assumptions in the test does not hold anymore. Change-Id: I9b34f1ecc61fc0d4e8abe5a5505a5bcff44501d4 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Diffstat (limited to 'tests/auto/quick/qquickaccessible/data')
-rw-r--r--tests/auto/quick/qquickaccessible/data/checkbuttons.qml1
-rw-r--r--tests/auto/quick/qquickaccessible/data/hittest.qml42
-rw-r--r--tests/auto/quick/qquickaccessible/data/statictext.qml2
3 files changed, 45 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickaccessible/data/checkbuttons.qml b/tests/auto/quick/qquickaccessible/data/checkbuttons.qml
index 8769c04095..8424e3b2d5 100644
--- a/tests/auto/quick/qquickaccessible/data/checkbuttons.qml
+++ b/tests/auto/quick/qquickaccessible/data/checkbuttons.qml
@@ -3,6 +3,7 @@ import QtQuick 2.0
Item {
width: 400
height: 400
+ Accessible.name: "root"
// button, not checkable
Rectangle {
diff --git a/tests/auto/quick/qquickaccessible/data/hittest.qml b/tests/auto/quick/qquickaccessible/data/hittest.qml
index 07e2bbaaf6..97eb6013a1 100644
--- a/tests/auto/quick/qquickaccessible/data/hittest.qml
+++ b/tests/auto/quick/qquickaccessible/data/hittest.qml
@@ -40,6 +40,7 @@ Rectangle {
width: 640
height: 480
color: "white"
+ Accessible.name: "root"
Rectangle {
id: header
color: "#c0c0c0"
@@ -165,4 +166,45 @@ Rectangle {
}
}
+ TextRect {
+ x: 0
+ y: 300
+ text: "rect3"
+ width: 200
+ height: 100
+ color: "#ffa0a0"
+ TextRect {
+ x: 10
+ y: 10
+ text: "rect30"
+ width: 80
+ height: 80
+ color: "#ffa0a0"
+ TextRect {
+ x: 30
+ y: 50
+ text: "rect300"
+ width: 80
+ height: 80
+ color: "#ffa0a0"
+ }
+ }
+ TextRect {
+ x: 100
+ y: 10
+ text: "rect31"
+ width: 80
+ height: 80
+ color: "#ffa0a0"
+ TextRect {
+ x: -50
+ y: 60
+ z: -3
+ text: "rect310"
+ width: 80
+ height: 80
+ color: "#ffa0a0"
+ }
+ }
+ }
}
diff --git a/tests/auto/quick/qquickaccessible/data/statictext.qml b/tests/auto/quick/qquickaccessible/data/statictext.qml
index 7cf1b707a0..1092f33daf 100644
--- a/tests/auto/quick/qquickaccessible/data/statictext.qml
+++ b/tests/auto/quick/qquickaccessible/data/statictext.qml
@@ -3,6 +3,8 @@ import QtQuick 2.0
Item {
width: 400
height: 400
+ Accessible.name: "root"
+ Accessible.role: Accessible.Client
Text {
x: 100