r99438 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99437‎ | r99438 | r99439 >
Date:22:02, 10 October 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Added test case for prepareInsertion, which currently fails since that function is not complete yet.
Modified paths:
  • /trunk/parsers/wikidom/tests/hype/es.DocumentModel.test.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/tests/hype/es.DocumentModel.test.js
@@ -353,7 +353,16 @@
354354 },
355355 { 'type': 'retain', 'length': 25 }
356356 ],
357 - 'prepareRemove includes the content being removed'
 357+ 'prepareRemoval includes the content being removed'
358358 );
 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+ );
359369 } );
360 -

Status & tagging log