Index: trunk/parsers/wikidom/tests/hype/es.DocumentModel.test.js |
— | — | @@ -572,8 +572,7 @@ |
573 | 573 | [ { 'type': 'paragraph' }, 'f', 'o', 'o', { 'type': '/paragraph' } ] |
574 | 574 | ); |
575 | 575 | }, |
576 | | - function ( e ) { |
577 | | - return /^Offset -1 out of bounds/.test( e ); }, |
| 576 | + /^Offset -1 out of bounds/, |
578 | 577 | 'prepareInsertion throws exception for negative offset' |
579 | 578 | ); |
580 | 579 | |
— | — | @@ -585,8 +584,7 @@ |
586 | 585 | [ { 'type': 'paragraph' }, 'f', 'o', 'o', { 'type': '/paragraph' } ] |
587 | 586 | ); |
588 | 587 | }, |
589 | | - function ( e ) { |
590 | | - return /^Offset 29 out of bounds/.test( e ); }, |
| 588 | + /^Offset 29 out of bounds/, |
591 | 589 | 'prepareInsertion throws exception for offset past the end' |
592 | 590 | ); |
593 | 591 | } ); |