blob: de4738a240dfa6f0ee23baeb8473c11cb8ee16e2 (
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) 2016 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: "User"
property user emptyUser
function test_empty() {
compare(emptyUser.userId, "");
compare(emptyUser.name, "");
}
property user qmlUser
qmlUser {
userId: "testuser"
name: "Test User"
}
function test_qmlConstructedUser() {
compare(qmlUser.userId, "testuser");
compare(qmlUser.name, "Test User");
}
}
|