mediawiki-extensions-Visual.../tests/ve2/dm/ve.dm.LeafNode.test.js

23 lines
495 B
JavaScript
Raw Normal View History

module( 've.dm.LeafNode' );
/* Stubs */
ve.dm.LeafNodeStub = function() {
// Inheritance
ve.dm.LeafNode.call( this, 'stub' );
};
ve.extendClass( ve.dm.LeafNodeStub, ve.dm.LeafNode );
/* Tests */
test( 'prototype.canHaveChildren', 1, function() {
var node = new ve.dm.LeafNodeStub();
strictEqual( node.canHaveChildren(), false );
} );
test( 'prototype.canHaveGrandchildren', 1, function() {
var node = new ve.dm.LeafNodeStub();
strictEqual( node.canHaveGrandchildren(), false );
} );