mediawiki-extensions-Visual.../modules/ve/test/dm/nodes/ve.dm.TextNode.test.js
Catrope 1a573480f7 Moved text node test to the correct directory
Change-Id: I6c2146cd051e9e992e6a30a2d5f83d337d454387
2012-07-25 14:49:48 -07:00

18 lines
447 B
JavaScript

/**
* VisualEditor data model TextNode tests.
*
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
module( 've.dm.TextNode' );
/* Tests */
test( 'getOuterLength', 2, function( assert ) {
var node1 = new ve.dm.TextNode(),
node2 = new ve.dm.TextNode( 1234 );
assert.strictEqual( node1.getOuterLength(), 0 );
assert.strictEqual( node2.getOuterLength(), 1234 );
} );