| 1 | /*! |
| 2 | * VisualEditor DataModel TextNode tests. |
| 3 | * |
| 4 | * @copyright See AUTHORS.txt |
| 5 | */ |
| 6 | |
| 7 | QUnit.module( 've.dm.TextNode' ); |
| 8 | |
| 9 | /* Tests */ |
| 10 | |
| 11 | QUnit.test( 'getOuterLength', ( assert ) => { |
| 12 | const node1 = new ve.dm.TextNode(), |
| 13 | node2 = new ve.dm.TextNode(); |
| 14 | |
| 15 | node2.setLength( 1234 ); |
| 16 | |
| 17 | assert.strictEqual( node1.getOuterLength(), 0 ); |
| 18 | assert.strictEqual( node2.getOuterLength(), 1234 ); |
| 19 | } ); |