Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4095314
ve.Node.test.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
663 B
Referenced Files
None
Subscribers
None
ve.Node.test.js
View Options
/*!
* VisualEditor Node tests.
*
* @copyright See AUTHORS.txt
*/
QUnit
.
module
(
've.Node'
);
/* Stubs */
ve
.
NodeStub
=
function
VeNodeStub
()
{
// Parent constructor
ve
.
Node
.
call
(
this
);
};
OO
.
inheritClass
(
ve
.
NodeStub
,
ve
.
Node
);
ve
.
NodeStub
.
static
.
name
=
'stub'
;
/* Tests */
QUnit
.
test
(
'getType'
,
(
assert
)
=>
{
const
node
=
new
ve
.
NodeStub
();
assert
.
strictEqual
(
node
.
getType
(),
'stub'
);
}
);
QUnit
.
test
(
'getParent'
,
(
assert
)
=>
{
const
node
=
new
ve
.
NodeStub
();
assert
.
strictEqual
(
node
.
getParent
(),
null
);
}
);
QUnit
.
test
(
'getRoot'
,
(
assert
)
=>
{
const
node
=
new
ve
.
NodeStub
();
assert
.
strictEqual
(
node
.
getRoot
(),
null
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 13:49 (4 w, 11 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
df/8d/6a2e31d2f2bd9f10c22d8354c9cd
Default Alt Text
ve.Node.test.js (663 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment