mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
76bac7d152
Change-Id: Id0a0bd5b4a91f702cad34e9f5e7f2121763abffd
26 lines
552 B
JavaScript
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 );
|
|
} );
|