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 
}
    }
  }
  describe("Annotation", function () {
    let dict, ref;
    beforeAll(function () {
      dict = new Dict(
      ref = Ref.get(1, 0
    }
    afterAll(function () {
      dict = ref = null;
    }
    it("should set and get valid contents", function () {
      const annotation = new Annotation({ dict, ref }
      annotation.setContents("Foo bar baz"
      expect(annotation._contents).toEqual({ str: "Foo bar baz", dir: "ltr" }
    }
    it("should not set and get invalid contents", function () {
      const annotation = new Annotation({ dict, ref }
      annotation.setContents(undefined
      expect(annotation._contents).toEqual({ str: "", dir: "ltr" }
    }
    it("should set and get a valid modification date", function () {
      const annotation = new Annotation({ dict, ref }
      annotation.setModificationDate("D:20190422"
      expect(annotation.modificationDate).toEqual("D:20190422"
    }
    it("should not set and get an invalid modification date", function () {
      const annotation = new Annotation({ dict, ref }
      annotation.setModificationDate(undefined