mediawiki-extensions-Visual.../tests/ve/ve.Document.test.js

19 lines
372 B
JavaScript
Raw Normal View History

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 );
} );