Sha256: ba18fbaeeaee26d510b647dd455358612184bec83dfcec761879b8e515711882

Contents?: true

Size: 585 Bytes

Versions: 95

Compression:

Stored size: 585 Bytes

Contents

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

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

describe HexaPDF::Type::Annotations::MarkupAnnotation do
  before do
    @doc = HexaPDF::Document.new
    @annot = HexaPDF::Type::Annotations::MarkupAnnotation.new({Subtype: :Text, Rect: [0, 0, 1, 1]},
                                                              document: @doc)
  end

  describe "validation" do
    it "needs IRT set if RT is set" do
      assert(@annot.validate)

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

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
hexapdf-1.2.0 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-1.1.1 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-1.1.0 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-1.0.3 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-1.0.2 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-1.0.1 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-1.0.0 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-0.47.0 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-0.46.0 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-0.45.0 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-0.44.0 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-0.41.0 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-0.40.0 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-0.39.1 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-0.39.0 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-0.38.0 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-0.37.2 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-0.37.1 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-0.37.0 test/hexapdf/type/annotations/test_markup_annotation.rb
hexapdf-0.36.0 test/hexapdf/type/annotations/test_markup_annotation.rb