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 
const borderStyle = new AnnotationBorderStyle(
      borderStyle.setDashArray([1, 2, 3]
      expect(borderStyle.dashArray).toEqual([1, 2, 3]
    }
    it("should not set and get an invalid dash array", function () {
      const borderStyle = new AnnotationBorderStyle(
      borderStyle.setDashArray([0, 0]
      expect(borderStyle.dashArray).toEqual([3]
    }
    it("should set and get a valid horizontal corner radius", function () {
      const borderStyle = new AnnotationBorderStyle(
      borderStyle.setHorizontalCornerRadius(3
      expect(borderStyle.horizontalCornerRadius).toEqual(3
    }
    it("should not set and get an invalid horizontal corner radius", function () {
      const borderStyle = new AnnotationBorderStyle(
      borderStyle.setHorizontalCornerRadius("three"
      expect(borderStyle.horizontalCornerRadius).toEqual(0
    }
    it("should set and get a valid vertical corner radius", function () {
      const borderStyle = new AnnotationBorderStyle(
      borderStyle.setVerticalCornerRadius(3
      expect(borderStyle.verticalCornerRadius).toEqual(3
    }
    it("should not set and get an invalid vertical corner radius", function () {
      const borderStyle = new AnnotationBorderStyle(
      borderStyle.setVerticalCornerRadius("three"
      expect(borderStyle.verticalCornerRadius).toEqual(0
    }
  }