Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F113198
tst_Device.qml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
792 B
Referenced Files
None
Subscribers
None
tst_Device.qml
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2023 tusooa <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import
QtQuick
2.3
import
QtTest
1.0
import
'../../contents/ui/device-mgmt'
as
KazvDM
import
'test-helpers'
as
QmlHelpers
QmlHelpers
.
TestItem
{
property
var
deviceItem:
({
deviceId:
'some-id'
,
displayName:
'name'
,
trustLevel:
'unseen'
})
KazvDM
.
Device
{
id: device
}
TestCase
{
id: deviceTest
name:
'DeviceTest'
when:
windowShown
function
initTestCase
()
{
device
.
item
=
deviceItem
;
}
function
test_device
()
{
verify
(
findChild
(
device
,
'deviceIdLabel'
).
text
===
'some-id'
);
verify
(
findChild
(
device
,
'trustLevelLabel'
).
text
===
l10n
.
get
(
'device-trust-level-unseen'
));
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 3:50 PM (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39463
Default Alt Text
tst_Device.qml (792 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment