| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
QUnit.module( 've.Node' ); |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
ve.NodeStub = function VeNodeStub() { |
| 12 |
|
| 13 |
ve.Node.call( this ); |
| 14 |
}; |
| 15 |
|
| 16 |
OO.inheritClass( ve.NodeStub, ve.Node ); |
| 17 |
|
| 18 |
ve.NodeStub.static.name = 'stub'; |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
QUnit.test( 'getType', ( assert ) => { |
| 23 |
const node = new ve.NodeStub(); |
| 24 |
assert.strictEqual( node.getType(), 'stub' ); |
| 25 |
} ); |
| 26 |
|
| 27 |
QUnit.test( 'getParent', ( assert ) => { |
| 28 |
const node = new ve.NodeStub(); |
| 29 |
assert.strictEqual( node.getParent(), null ); |
| 30 |
} ); |
| 31 |
|
| 32 |
QUnit.test( 'getRoot', ( assert ) => { |
| 33 |
const node = new ve.NodeStub(); |
| 34 |
assert.strictEqual( node.getRoot(), null ); |
| 35 |
} ); |