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

20 lines
357 B
JavaScript
Raw Normal View History

module( 've.dm.LeafNode' );
/* Stubs */
ve.dm.LeafNodeStub = function() {
// Inheritance
ve.dm.LeafNode.call( this, 'leaf-stub' );
};
ve.dm.LeafNodeStub.rules = {
'canHaveChildren': false,
'canHaveGrandchildren': false
};
ve.extendClass( ve.dm.LeafNodeStub, ve.dm.LeafNode );
ve.dm.factory.register( 'leaf-stub', ve.dm.LeafNodeStub );
/* Tests */