JS - Fix setting a color on an annotation

- strokeColor corresponds to borderColor;
 - support fillColor and textColor;
 - support colors on the different annotations;
 - fix typo in aforms (+test).
This commit is contained in:
Calixte Denizet 2021-02-20 15:23:54 +01:00
parent 0fa9976268
commit 4a5f1d1b7a
7 changed files with 125 additions and 8 deletions

View file

@ -1166,6 +1166,18 @@ describe("Scripting", function () {
value: "3F?",
selRange: [3, 3],
});
send_queue.delete(refId);
await sandbox.dispatchEventInSandbox({
id: refId,
value: "3F?",
change: "0",
name: "Keystroke",
willCommit: true,
selStart: 3,
selEnd: 3,
});
expect(send_queue.has(refId)).toEqual(false);
});
});