Create test for annotations.
This commit is contained in:
parent
bc599f23d6
commit
cb2b3c828f
1 changed files with 10 additions and 0 deletions
|
|
@ -1007,6 +1007,16 @@ module.exports = {
|
||||||
session.documentToScreenPosition(2,0);
|
session.documentToScreenPosition(2,0);
|
||||||
assertArray(session.$docRowCache, [1,2]);
|
assertArray(session.$docRowCache, [1,2]);
|
||||||
assertArray(session.$screenRowCache, [1,2]);
|
assertArray(session.$screenRowCache, [1,2]);
|
||||||
|
},
|
||||||
|
|
||||||
|
"test annotations": function() {
|
||||||
|
var session = new EditSession([]),
|
||||||
|
annotation = {row: 0, type: 'info', text: "This is a test."};
|
||||||
|
|
||||||
|
session.clearAnnotations();
|
||||||
|
assertArray(session.getAnnotations(), []);
|
||||||
|
session.setAnnotations([annotation]);
|
||||||
|
assertArray(session.getAnnotations(), [annotation]);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue