Class/Module Index [+]

Quicksearch

TestConstants

Public Instance Methods

test_annotation() click to toggle source
# File poppler/test/test_constants.rb, line 2
def test_annotation
  if later_version?(0, 7, 2)
    assertion = :assert_const_defined
  else
    assertion = :assert_not_const_defined
  end
  send(assertion, Poppler, :AnnotationType)
  if assertion == :assert_const_defined
    assert_equal("3d", Poppler::AnnotationType::TYPE_3D.nick)
  end
  send(assertion, Poppler, :AnnotationFlag)
  send(assertion, Poppler, :AnnotationMarkupReplyType)
  send(assertion, Poppler, :AnnotationExternalDataType)
  if assertion == :assert_const_defined
    assert_equal("3d", Poppler::AnnotationExternalDataType::TYPE_3D.nick)
  end
  if later_version?(0, 9, 0)
    assert_not_const_defined(Poppler, :AnnotationTextIcon)
  else
    send(assertion, Poppler, :AnnotationTextIcon)
  end
  send(assertion, Poppler, :AnnotationTextState)
  send(assertion, Poppler, :AnnotationFreeTextQuadding)
end
test_permissions() click to toggle source
# File poppler/test/test_constants.rb, line 27
def test_permissions
  assert_const_defined(Poppler, :Permissions)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.