mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
use proper assertion in getAnnotationsFromOffset
Change-Id: I41b5cfa3628d5a2ed6d3f59d157ebe372585059c
This commit is contained in:
parent
6321821c86
commit
e05863b0dc
|
@ -149,8 +149,8 @@ test( 'getAnnotationsFromOffset', 1, function() {
|
|||
fragment = new ve.dm.DocumentFragment ( cases[i].data );
|
||||
for (var j=0; j<fragment.getData().length;j++) {
|
||||
annotations = fragment.getAnnotationsFromOffset( j );
|
||||
strictEqual(
|
||||
JSON.stringify(annotations), JSON.stringify(cases[i].expected[j]), cases[i].msg[j]
|
||||
deepEqual(
|
||||
annotations, cases[i].expected[j], cases[i].msg[j]
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue