Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4123353
integration.test.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
670 B
Referenced Files
None
Subscribers
None
integration.test.js
View Options
/*!
* Minerva integration tests.
*
* This should only be used to test APIs that Minerva depends on to work.
* For unit tests please see tests/jest.
*/
QUnit
.
module
(
'Minerva (integration)'
,
()
=>
{
QUnit
.
test
(
'[T356653] Client preferences: Check assumptions about the cookie it writes to'
,
function
(
assert
)
{
mw
.
cookie
.
set
(
'mwclientpreferences'
,
''
);
this
.
sandbox
.
stub
(
mw
.
user
,
'isAnon'
).
returns
(
true
);
document
.
documentElement
.
setAttribute
(
'class'
,
'skin-theme-clientpref-day'
);
mw
.
user
.
clientPrefs
.
set
(
'skin-theme'
,
'night'
);
assert
.
strictEqual
(
mw
.
cookie
.
get
(
'mwclientpreferences'
),
'skin-theme-clientpref-night'
);
}
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 19, 06:05 (5 d, 1 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
86/b0/ea8e380671a46fb9a8d54a64373b
Default Alt Text
integration.test.js (670 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment