blob: 01146c0b0f6297e0f4ede7331bdb98054842f8e2 (
plain)
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
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
import QtTest
import QtLocation
TestCase {
id: testCase
name: "ContactDetail"
property contactDetail emptyContactDetail
function test_empty() {
compare(emptyContactDetail.label, "");
compare(emptyContactDetail.value, "");
}
property contactDetail qmlContactDetail
qmlContactDetail {
label: "Phone"
value: "12345"
}
function test_qmlConstructedContactDetail() {
compare(qmlContactDetail.label, "Phone");
compare(qmlContactDetail.value, "12345");
}
}
|