Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F325874
tst_Device.qml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
845 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.js'
as
Helpers
Item
{
width:
800
height:
600
property
var
l10n:
Helpers
.
fluentMock
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
Thu, Apr 24, 4:26 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
87275
Default Alt Text
tst_Device.qml (845 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment