The test file at https://github.com/mozilla/pdf.js/blob/master/test/pdfs/annotation-choice-widget.pdf contains listboxes, which are not rendered correctly when printed right now. These kinds of fields are made by https://github.com/mozilla/pdf.js/blob/master/src/display/annotation_layer.js#L672-L678.

/cc @calixteman 
{ x: 20, y: 10 },
        ],
      ]
    }
  }
  describe("WidgetAnnotation", function () {
    let widgetDict;
    beforeEach(function () {
      widgetDict = new Dict(
      widgetDict.set("Type", Name.get("Annot")
      widgetDict.set("Subtype", Name.get("Widget")
    }
    afterEach(function () {
      widgetDict = null;
    }
    it("should handle unknown field names", async function () {
      const widgetRef = Ref.get(20, 0
      const xref = new XRefMock([{ ref: widgetRef, data: widgetDict }]
      const { data } = await AnnotationFactory.create(
        xref,
        widgetRef,
        pdfManagerMock,
        idFactoryMock
      
      expect(data.annotationType).toEqual(AnnotationType.WIDGET
      expect(data.fieldName).toEqual(""
    }
    it("should construct the field name when there are no ancestors", async function () {
      widgetDict.set("T", "foo"
      const widgetRef = Ref.get(21, 0