mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 17:36:35 +00:00
93390847bc
Neither of these nodes have elements around them, so they must override the default behavior of ve.dm.Node Change-Id: I19c02c210bfc04b6e2ee1a37b8890e84a236eee3
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 );
|
|
} );
|