mediawiki-extensions-Visual.../tests/ve2/dm/ve.dm.LeafNode.test.js
Trevor Parscal 71f36aa52b Added tests for getOffsetFromNode
Change-Id: I4dc06e9ea3b634fbd5034df721162098441ea368
2012-05-03 11:52:17 -07:00

20 lines
357 B
JavaScript

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 */