1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

XFA - Support assist element

This commit is contained in:
Calixte Denizet 2021-07-11 21:01:18 +02:00
parent 70434c132f
commit 9bbc194846
2 changed files with 28 additions and 0 deletions

View file

@ -44,6 +44,7 @@ describe("XFAFactory", function () {
<contentArea x="123pt" w="456pt" h="789pt"/>
<medium stock="default" short="456pt" long="789pt"/>
<draw y="1pt" w="11pt" h="22pt" rotate="90" x="2pt">
<assist><toolTip>A tooltip !!</toolTip></assist>
<font size="7pt" typeface="FooBar" baselineShift="2pt">
<fill>
<color value="12,23,34"/>
@ -118,6 +119,7 @@ describe("XFAFactory", function () {
"xfaFont",
"xfaWrapped",
]);
expect(draw.attributes.title).toEqual("A tooltip !!");
expect(draw.attributes.style).toEqual({
color: "#0c1722",
fontFamily: '"FooBar"',