Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4104630
ve.Document.test.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
526 B
Referenced Files
None
Subscribers
None
ve.Document.test.js
View Options
/*!
* VisualEditor Document tests.
*
* @copyright See AUTHORS.txt
*/
QUnit
.
module
(
've.Document'
);
/* Stubs */
ve
.
DocumentStub
=
function
VeDocumentStub
()
{
// Parent constructor
ve
.
DocumentStub
.
super
.
apply
(
this
,
arguments
);
};
OO
.
inheritClass
(
ve
.
DocumentStub
,
ve
.
Document
);
/* Tests */
QUnit
.
test
(
'getDocumentNode'
,
(
assert
)
=>
{
const
node
=
new
ve
.
NodeStub
(),
doc
=
new
ve
.
DocumentStub
(
node
);
assert
.
strictEqual
(
doc
.
getDocumentNode
(),
node
);
assert
.
strictEqual
(
node
.
getDocument
(),
doc
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 18:34 (3 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
38/5c/2179b391d5e33e1c15880598ad96
Default Alt Text
ve.Document.test.js (526 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment