mediawiki-extensions-Visual.../tests/ve/dm/ve.dm.TextNode.test.js

11 lines
249 B
JavaScript
Raw Normal View History

module( 've.dm.TextNode' );
/* Tests */
test( 'getOuterLength', 2, function() {
var node1 = new ve.dm.TextNode(),
node2 = new ve.dm.TextNode( 1234 );
strictEqual( node1.getOuterLength(), 0 );
strictEqual( node2.getOuterLength(), 1234 );
} );