File: test_MultiInfoView.qml

package info (click to toggle)
ausweisapp2 2.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,632 kB
  • sloc: cpp: 114,622; python: 2,833; xml: 1,426; java: 923; sh: 186; makefile: 7
file content (38 lines) | stat: -rw-r--r-- 671 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
 * Copyright (c) 2020-2026 Governikus GmbH & Co. KG, Germany
 */
import QtTest
import Governikus.MultiInfoView

TestCase {
	id: parent

	function test_load_MultiInfoView(data) {
		let item = createTemporaryQmlObject("
			import Governikus.MultiInfoView
			MultiInfoView {
				width: 500
				infoContent: MultiInfoData {
					contentType: %1
				}
			}
			".arg(data.contentType), parent);
		item.destroy();
	}
	function test_load_MultiInfoView_data() {
		return [
			{
				"contentType": MultiInfoData.Type.PIN
			},
			{
				"contentType": MultiInfoData.Type.CAN
			},
			{
				"contentType": MultiInfoData.Type.PUK
			}
		];
	}

	visible: true
	when: windowShown
}