mediawiki-extensions-Visual.../modules/ve/test/ve.Document.test.js
Trevor Parscal 76bac7d152 Move test files
Change-Id: Id0a0bd5b4a91f702cad34e9f5e7f2121763abffd
2012-07-25 14:35:49 -07:00

26 lines
552 B
JavaScript

/**
* VisualEditor Document tests.
*
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
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( assert ) {
var node = new ve.NodeStub(),
doc = new ve.DocumentStub( node );
assert.strictEqual( doc.getDocumentNode( node ), node );
} );