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
}
|