Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2752142
mediawiki.inspect.test.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
507 B
Referenced Files
None
Subscribers
None
mediawiki.inspect.test.js
View Options
QUnit
.
module
(
'mediawiki.inspect'
,
()
=>
{
QUnit
.
test
(
'.getModuleSize() - scripts'
,
(
assert
)
=>
{
// Use eval so that the size doesn't change depending on minification
/* eslint-disable no-eval */
mw
.
loader
.
impl
(
eval
(
"(function(){return['test.inspect.script',function (){'example';}];})"
)
);
return
mw
.
loader
.
using
(
'test.inspect.script'
).
then
(
()
=>
{
assert
.
strictEqual
(
mw
.
inspect
.
getModuleSize
(
'test.inspect.script'
),
66
,
'test.inspect.script'
);
}
);
}
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 3, 19:37 (1 d, 3 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
52/8f/bd1fbbef76158a05481fd81f310c
Default Alt Text
mediawiki.inspect.test.js (507 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment