mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
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:
parent
0fa9976268
commit
4a5f1d1b7a
7 changed files with 125 additions and 8 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue