mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-05 03:08:37 +00:00
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 );
|
||
|
} );
|