# File poppler/test/test_annotation.rb, line 59 def test_callout_line only_poppler_version(0, 7, 2) callout_line = Poppler::AnnotationCalloutLine.new(true, 1.1, 2.2, 3.3, 4.4, 5.5, 6.6) assert(callout_line.multiline?) assert_equal(1.1, callout_line.x1) assert_equal(2.2, callout_line.y1) assert_equal(3.3, callout_line.x2) assert_equal(4.4, callout_line.y2) assert_equal(5.5, callout_line.x3) assert_equal(6.6, callout_line.y3) assert_equal([true, 1.1, 2.2, 3.3, 4.4, 5.5, 6.6], callout_line.to_a) end
# File poppler/test/test_annotation.rb, line 27 def test_color only_poppler_version(0, 7, 2) assert_nil(annotation.color) end
# File poppler/test/test_annotation.rb, line 7 def test_contents only_poppler_version(0, 7, 2) assert_nil(annotation.contents) end
# File poppler/test/test_annotation.rb, line 22 def test_flags only_poppler_version(0, 7, 2) assert_kind_of(Poppler::AnnotationFlag, annotation.flags) end
# File poppler/test/test_annotation.rb, line 52 def test_free_text only_poppler_version(0, 7, 2) # We don't have a PDF that has annotation free text... assert_method_defined(Poppler::AnnotationFreeText, :quadding) assert_method_defined(Poppler::AnnotationFreeText, :callout_line) end
# File poppler/test/test_annotation.rb, line 32 def test_markup only_poppler_version(0, 7, 2) # We don't have a PDF that has annotation markup... assert_method_defined(Poppler::AnnotationMarkup, :label) assert_method_defined(Poppler::AnnotationMarkup, :popup_is_open?) assert_method_defined(Poppler::AnnotationMarkup, :opacity) assert_method_defined(Poppler::AnnotationMarkup, :date) assert_method_defined(Poppler::AnnotationMarkup, :subject) assert_method_defined(Poppler::AnnotationMarkup, :reply_to) assert_method_defined(Poppler::AnnotationMarkup, :external_data) end
# File poppler/test/test_annotation.rb, line 17 def test_modified only_poppler_version(0, 7, 2) assert_nil(annotation.modified) end
# File poppler/test/test_annotation.rb, line 12 def test_name only_poppler_version(0, 7, 2) assert_nil(annotation.name) end
# File poppler/test/test_annotation.rb, line 44 def test_text only_poppler_version(0, 7, 2) # We don't have a PDF that has annotation text... assert_method_defined(Poppler::AnnotationText, :open?) assert_method_defined(Poppler::AnnotationText, :icon) assert_method_defined(Poppler::AnnotationText, :state) end
Generated with the Darkfish Rdoc Generator 2.