# File tests/treeparsertester.rb, line 70 def test_access doc = NQXML::TreeParser.new(@rsrc.xml).document root = doc.rootNode assert_nil(root.parent) assert_equal('outer', root.entity.name) assert_equal(8, root.children.length) assert_instance_of(NQXML::Text, root.firstChild().entity) assert_instance_of(NQXML::Text, root.lastChild().entity) node = root.firstChild().nextSibling() assert_equal(node.parent, root) assert_equal('<simpleTag>', node.entity.source) assert_equal(1, node.children.length) assert_equal('text', node.firstChild().entity.text) end