diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-12-19 12:53:44 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-12-20 13:36:18 +0000 |
commit | 4367be99cc89c733b8667a30c8a82dac21ba08bb (patch) | |
tree | 4085b1332ff2720d5e0f63a144aef0071e1cabbe /tests/auto/customization/data/styles/incomplete/Switch.qml | |
parent | aaedef9fec97329b7ca5568670de571f5b8e8df8 (diff) |
Make tst_customization easier to maintain
Maintain the tested controls and delegates in a single array that can
be re-used for testing all styles without repetitive and error-prone
hand-written data rows.
For this to work, the structure of the tested styles must match. The
"incomplete" and "override" styles filled in all possible delegates,
whereas the "simple" style filled in only the normally used delegates.
The test styles have now been synced with the structure of our built-
in styles. For example, Dials and Sliders don't normally have a content
item, and CheckBoxes and RadioButtons don't normally have a background.
Change-Id: I48a26ee170f66882c55b54a282f2e4b3a3875f9a
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/customization/data/styles/incomplete/Switch.qml')
-rw-r--r-- | tests/auto/customization/data/styles/incomplete/Switch.qml | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/auto/customization/data/styles/incomplete/Switch.qml b/tests/auto/customization/data/styles/incomplete/Switch.qml index ef661b43..94f6cd8b 100644 --- a/tests/auto/customization/data/styles/incomplete/Switch.qml +++ b/tests/auto/customization/data/styles/incomplete/Switch.qml @@ -62,8 +62,4 @@ T.Switch { contentItem: Item { objectName: "switch-contentItem-incomplete" } - - background: Item { - objectName: "switch-background-incomplete" - } } |