Sha256: 68ce34dcb3c36d3e8cb4f73b38515a386f98b10bfc2d58410607968a01630c3b

Contents?: true

Size: 775 Bytes

Versions: 45

Compression:

Stored size: 775 Bytes

Contents

# encoding: UTF-8

# $Id$
require './test_helper'

require 'test/unit'

class TC_XML_Node_XLink < Test::Unit::TestCase
  def setup()
    xp = XML::Parser.string('<ruby_array xmlns:xlink="http://www.w3.org/1999/xlink/namespace/"><fixnum xlink:type="simple">one</fixnum></ruby_array>')
    doc = xp.parse
    assert_instance_of(XML::Document, doc)
    @root = doc.root
    assert_instance_of(XML::Node, @root)
  end

  def teardown()
    @root = nil
  end

  def test_xml_node_xlink()
    for elem in @root.find('fixnum')
      assert_instance_of(XML::Node, elem)
      assert_instance_of(TrueClass, elem.xlink?)
      assert_equal("simple", elem.xlink_type_name)
      assert_equal(XML::Node::XLINK_TYPE_SIMPLE, elem.xlink_type)
    end
  end
end

Version data entries

45 entries across 45 versions & 2 rubygems

Version Path
smile-xml-1.0.5-java src/test/ruby/tc_node_xlink.rb
smile-xml-1.0.4-java src/test/ruby/tc_node_xlink.rb
libxml-ruby-2.8.0 test/tc_node_xlink.rb
smile-xml-1.0.3-java src/test/ruby/tc_node_xlink.rb
libxml-ruby-2.7.0-x86-mingw32 test/tc_node_xlink.rb
libxml-ruby-2.7.0 test/tc_node_xlink.rb
smile-xml-1.0.3-jruby src/test/ruby/tc_node_xlink.rb
libxml-ruby-2.6.0-x86-mingw32 test/tc_node_xlink.rb
libxml-ruby-2.6.0 test/tc_node_xlink.rb
libxml-ruby-2.5.0-x86-mingw32 test/tc_node_xlink.rb
libxml-ruby-2.5.0 test/tc_node_xlink.rb
libxml-ruby-2.4.0-x86-mingw32 test/tc_node_xlink.rb
libxml-ruby-2.4.0 test/tc_node_xlink.rb
smile-xml-1.0.2-jruby src/test/ruby/tc_node_xlink.rb
libxml-ruby-2.3.3-x86-mingw32 test/tc_node_xlink.rb
libxml-ruby-2.3.3 test/tc_node_xlink.rb
libxml-ruby-2.3.2 test/tc_node_xlink.rb
libxml-ruby-2.3.0-x86-mingw32 test/tc_node_xlink.rb
libxml-ruby-2.3.0 test/tc_node_xlink.rb
libxml-ruby-2.2.2-x86-mingw32 test/tc_node_xlink.rb