mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 02:51:50 +00:00
b7b2fc1179
Change-Id: Iee228d5f1a18a5c9618680fa81ab132a85472fa6
27 lines
538 B
JavaScript
27 lines
538 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() );
|
|
console.log( node );
|
|
raises(
|
|
function() {
|
|
node.render();
|
|
},
|
|
/^ve.ce.LeafNode.render not implemented in this subclass: /,
|
|
'throws exception if called'
|
|
);
|
|
} );
|