Index: trunk/parsers/wikidom/tests/hype/es.DocumentModel.test.js |
— | — | @@ -353,7 +353,16 @@ |
354 | 354 | }, |
355 | 355 | { 'type': 'retain', 'length': 25 } |
356 | 356 | ], |
357 | | - 'prepareRemove includes the content being removed' |
| 357 | + 'prepareRemoval includes the content being removed' |
358 | 358 | ); |
| 359 | + |
| 360 | + deepEqual( |
| 361 | + documentModel.prepareInsertion( 1, ['d', 'e', 'f'] ), |
| 362 | + [ |
| 363 | + { 'type': 'retain', 'length': 1 }, |
| 364 | + { 'type': 'insert', 'data': ['d', 'e', 'f'] }, |
| 365 | + { 'type': 'retain', 'length': 27 } |
| 366 | + ], |
| 367 | + 'prepareInsertion retains data up to the offset and includes the content being inserted' |
| 368 | + ); |
359 | 369 | } ); |
360 | | - |