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