Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7405729
ve.ui.WindowAction.test.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
693 B
Referenced Files
None
Subscribers
None
ve.ui.WindowAction.test.js
View Options
/*!
* VisualEditor UserInterface Actions WindowAction tests.
*
* @copyright See AUTHORS.txt
*/
QUnit
.
module
(
've.ui.WindowAction'
);
/* Tests */
QUnit
.
test
(
'Basic open/close'
,
(
assert
)
=>
{
const
surface
=
ve
.
test
.
utils
.
createSurfaceFromHtml
(
''
),
windowAction
=
ve
.
ui
.
actionFactory
.
create
(
'window'
,
surface
),
dialogs
=
surface
.
getDialogs
(),
done
=
assert
.
async
(
2
);
dialogs
.
once
(
'opening'
,
(
win
,
opening
)
=>
{
opening
.
then
(
()
=>
{
assert
.
true
(
true
,
'Window opened'
);
windowAction
.
close
(
'message'
);
done
();
}
);
}
);
dialogs
.
once
(
'closing'
,
()
=>
{
assert
.
true
(
true
,
'Window closed'
);
done
();
}
);
windowAction
.
open
(
'message'
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 21, 20:02 (21 h, 18 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
dc/8d/8f1373a1fc25337e6853b52346ba
Default Alt Text
ve.ui.WindowAction.test.js (693 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment