mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
1798a478e7
Change-Id: I9dbb7094f86338ea2e725ad29f66e9e4ca2b52ed
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 );
|
|
} );
|