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