Sha256: 7e03b198d0faf3de4ba32c0a6a4dd1a486322ab3650f78b6a2cbe7a6138d8cfe

Contents?: true

Size: 1002 Bytes

Versions: 145

Compression:

Stored size: 1002 Bytes

Contents

class TestConstants < Test::Unit::TestCase
  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

  def test_permissions
    assert_const_defined(Poppler, :Permissions)
  end
end

Version data entries

145 entries across 145 versions & 1 rubygems

Version Path
poppler-3.1.8-x64-mingw32 test/test_constants.rb
poppler-3.1.8-x86-mingw32 test/test_constants.rb
poppler-3.1.8 test/test_constants.rb
poppler-3.1.7-x64-mingw32 test/test_constants.rb
poppler-3.1.7-x86-mingw32 test/test_constants.rb
poppler-3.1.7 test/test_constants.rb
poppler-3.1.6-x64-mingw32 test/test_constants.rb
poppler-3.1.6-x86-mingw32 test/test_constants.rb
poppler-3.1.6 test/test_constants.rb
poppler-3.1.5-x64-mingw32 test/test_constants.rb
poppler-3.1.5-x86-mingw32 test/test_constants.rb
poppler-3.1.4-x64-mingw32 test/test_constants.rb
poppler-3.1.4-x86-mingw32 test/test_constants.rb
poppler-3.1.4 test/test_constants.rb
poppler-3.1.3-x64-mingw32 test/test_constants.rb
poppler-3.1.3-x86-mingw32 test/test_constants.rb
poppler-3.1.3 test/test_constants.rb
poppler-3.1.2-x64-mingw32 test/test_constants.rb
poppler-3.1.2-x86-mingw32 test/test_constants.rb
poppler-3.1.2 test/test_constants.rb