mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +00:00
748b34cc49
Change-Id: I30b56b1c43202d8cb6af397d2813b19b1a71d30e
11 lines
249 B
JavaScript
11 lines
249 B
JavaScript
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 );
|
|
} );
|