Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F113185
tst_RoomMemberListPage.qml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
896 B
Referenced Files
None
Subscribers
None
tst_RoomMemberListPage.qml
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2023-2024 tusooa <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import
QtQuick
2.15
import
QtQuick
.
Layouts
1.15
import
QtTest
1.0
import
'../../contents/ui'
as
Kazv
import
'../../contents/ui/room-settings'
as
RS
import
'test-helpers'
as
QmlHelpers
import
moe
.
kazv
.
mxc
.
kazv
0.0
as
MK
QmlHelpers
.
TestItem
{
id: item
property
var
room:
QtObject
{
property
var
refreshState:
mockHelper
.
promise
()
}
property
var
pageComp:
Component
{
RS
.
RoomMemberListPage
{
}
}
TestCase
{
id: roomMemberListPageTest
name:
'RoomMemberListPageTest'
when:
windowShown
function
init
()
{
mockHelper
.
clearAll
();
}
function
test_loadState
()
{
const
page
=
pageComp
.
createObject
(
item
,
{
room
,
members:
0
});
tryVerify
(()
=>
room
.
refreshState
.
calledTimes
());
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 3:50 PM (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39450
Default Alt Text
tst_RoomMemberListPage.qml (896 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment