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

23 lines
474 B
JavaScript
Raw Normal View History

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