mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
19 lines
372 B
JavaScript
19 lines
372 B
JavaScript
|
module( 've.Document' );
|
||
|
|
||
|
/* Stubs */
|
||
|
|
||
|
ve.DocumentStub = function( documentNode ) {
|
||
|
// Inheritance
|
||
|
ve.Document.call( this, documentNode );
|
||
|
};
|
||
|
|
||
|
ve.extendClass( ve.DocumentStub, ve.Document );
|
||
|
|
||
|
/* Tests */
|
||
|
|
||
|
test( 'getDocumentNode', 1, function() {
|
||
|
var node = new ve.NodeStub(),
|
||
|
doc = new ve.DocumentStub( node );
|
||
|
strictEqual( doc.getDocumentNode( node ), node );
|
||
|
} );
|