mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 02:51:50 +00:00
748b34cc49
Change-Id: I30b56b1c43202d8cb6af397d2813b19b1a71d30e
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 );
|
|
} );
|