mediawiki-extensions-Visual.../tests/ve2/ce/ve.ce.LeafNode.test.js
Trevor Parscal 6a60c1f60b Removed console.log
Change-Id: I7cd2e1cf5e1cf7a2e9864090cfab391faba10997
2012-05-02 16:46:36 -07:00

26 lines
516 B
JavaScript

module( 've.ce.LeafNode' );
/* Stubs */
ve.ce.LeafNodeStub = function( model ) {
// Inheritance
ve.ce.LeafNode.call( this, model );
};
ve.extendClass( ve.ce.LeafNodeStub, ve.ce.LeafNode );
ve.ce.factory.register( 'leaf-stub', ve.ce.BranchNodeStub );
/* Tests */
test( 'render', 1, function() {
var node = new ve.ce.LeafNodeStub( new ve.dm.LeafNodeStub() );
raises(
function() {
node.render();
},
/^ve.ce.LeafNode.render not implemented in this subclass: /,
'throws exception if called'
);
} );