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 
"should construct the field name if a parent is not a dictionary " +
        "(issue 8143)",
      async function () {
        const parentDict = new Dict(
        parentDict.set("Parent", null
        parentDict.set("T", "foo"
        widgetDict.set("Parent", parentDict
        widgetDict.set("T", "bar"
        const widgetRef = Ref.get(22, 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("foo.bar"
      }
    
  }
  describe("TextWidgetAnnotation", function () {
    let textWidgetDict, helvRefObj, gothRefObj;
    beforeEach(function () {
      textWidgetDict = new Dict(
      textWidgetDict.set("Type", Name.get("Annot")
      textWidgetDict.set("Subtype", Name.get("Widget")
      textWidgetDict.set("FT", Name.get("Tx")
      const helvDict = new Dict(
      helvDict.set("BaseFont", Name.get("Helvetica")