mediawiki-extensions-Visual.../tests/ve2/ve.Document.test.js
Trevor Parscal 1798a478e7 Massive refactor of node trees, generalizing lots of previously dm only stuff
Change-Id: I9dbb7094f86338ea2e725ad29f66e9e4ca2b52ed
2012-05-09 21:11:09 -07:00

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