Index: trunk/parsers/wikidom/tests/hype/es.DocumentModel.test.js |
— | — | @@ -259,9 +259,21 @@ |
260 | 260 | nothing = { 'type': 'nothing', 'hash': '#nothing' }, |
261 | 261 | character = ['a', bold, italic]; |
262 | 262 | |
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 | + ); |
264 | 268 | |
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 | + ); |
266 | 274 | |
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 | + ); |
268 | 280 | } ); |