Sha256: b7e5e8749a2f6b206dcfebddefdfae89f4c89585cf5f458c5032cb710a0e448a

Contents?: true

Size: 533 Bytes

Versions: 10

Compression:

Stored size: 533 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'test_helper'
require 'hexapdf/document'
require 'hexapdf/type/annotations/widget'

describe HexaPDF::Type::Annotations::Widget::AppearanceCharacteristics do
  before do
    @doc = HexaPDF::Document.new
    @annot = @doc.wrap({}, type: :XXAppearanceCharacteristics)
  end

  describe "validation" do
    it "needs /R to be a multiple of 90" do
      assert(@annot.validate)

      @annot[:R] = 45
      refute(@annot.validate)

      @annot[:R] = 90
      assert(@annot.validate)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hexapdf-0.11.9 test/hexapdf/type/annotations/test_widget.rb
hexapdf-0.11.8 test/hexapdf/type/annotations/test_widget.rb
hexapdf-0.11.7 test/hexapdf/type/annotations/test_widget.rb
hexapdf-0.11.6 test/hexapdf/type/annotations/test_widget.rb
hexapdf-0.11.5 test/hexapdf/type/annotations/test_widget.rb
hexapdf-0.11.4 test/hexapdf/type/annotations/test_widget.rb
hexapdf-0.11.3 test/hexapdf/type/annotations/test_widget.rb
hexapdf-0.11.2 test/hexapdf/type/annotations/test_widget.rb
hexapdf-0.11.1 test/hexapdf/type/annotations/test_widget.rb
hexapdf-0.11.0 test/hexapdf/type/annotations/test_widget.rb