r99175 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99174‎ | r99175 | r99176 >
Date:00:54, 7 October 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Added messages for getIndexOfAnnotation tests
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
@@ -259,9 +259,21 @@
260260 nothing = { 'type': 'nothing', 'hash': '#nothing' },
261261 character = ['a', bold, italic];
262262
263 - equal( es.DocumentModel.getIndexOfAnnotation( character, bold ), 1 );
 263+ equal(
 264+ es.DocumentModel.getIndexOfAnnotation( character, bold ),
 265+ 1,
 266+ 'getIndexOfAnnotation get the correct index'
 267+ );
264268
265 - equal( es.DocumentModel.getIndexOfAnnotation( character, italic ), 2 );
 269+ equal(
 270+ es.DocumentModel.getIndexOfAnnotation( character, italic ),
 271+ 2,
 272+ 'getIndexOfAnnotation get the correct index'
 273+ );
266274
267 - equal( es.DocumentModel.getIndexOfAnnotation( character, nothing ), -1 );
 275+ equal(
 276+ es.DocumentModel.getIndexOfAnnotation( character, nothing ),
 277+ -1,
 278+ 'getIndexOfAnnotation returns -1 if the annotation was not found'
 279+ );
268280 } );

Status & tagging log