From d9162554e8f8242499548137fde978a397aad4a6 Mon Sep 17 00:00:00 2001 From: Jenny Lofthus Date: Mon, 16 May 2022 15:56:24 +0200 Subject: Controls: add baseline test for Switch Change-Id: I9eb22c6639148f75bd7a52c69b8f5ce60258b7d6 Reviewed-by: Oliver Eftevaag Reviewed-by: Mathias Brevik --- tests/baseline/controls/data/switch/switch.qml | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 tests/baseline/controls/data/switch/switch.qml diff --git a/tests/baseline/controls/data/switch/switch.qml b/tests/baseline/controls/data/switch/switch.qml new file mode 100644 index 0000000000..b19e9d4cfc --- /dev/null +++ b/tests/baseline/controls/data/switch/switch.qml @@ -0,0 +1,37 @@ +import QtQuick +import QtQuick.Controls +import QtQuick.Layouts + +ColumnLayout { + spacing: 2 + width: 200 + + Switch { + text: qsTr("First") + } + + Switch { + text: qsTr("Second") + checked: true + } + + Switch { + text: qsTr("Third") + enabled: false + } + + Switch { + text: qsTr("Fourth") + LayoutMirroring.enabled: true + } + + Switch { + text: qsTr("Sixth") + focus: true + } + + Switch { + text: qsTr("Seventh") + down: true + } +} -- cgit v1.2.3