use proper assertion in getAnnotationsFromOffset

Change-Id: I41b5cfa3628d5a2ed6d3f59d157ebe372585059c
This commit is contained in:
Rob Moen 2012-05-14 09:58:30 -07:00
parent 6321821c86
commit e05863b0dc

View file

@ -149,8 +149,8 @@ test( 'getAnnotationsFromOffset', 1, function() {
fragment = new ve.dm.DocumentFragment ( cases[i].data ); fragment = new ve.dm.DocumentFragment ( cases[i].data );
for (var j=0; j<fragment.getData().length;j++) { for (var j=0; j<fragment.getData().length;j++) {
annotations = fragment.getAnnotationsFromOffset( j ); annotations = fragment.getAnnotationsFromOffset( j );
strictEqual( deepEqual(
JSON.stringify(annotations), JSON.stringify(cases[i].expected[j]), cases[i].msg[j] annotations, cases[i].expected[j], cases[i].msg[j]
); );
} }