core/XMLv2__NodeTests.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 02 Feb 2016 21:49:24 +0000
changeset 300 b6d834208d33
parent 296 ea3dbc023c80
permissions -rw-r--r--
ExpatXMLReader and DOM3XMLReader moved to xmlsuite/core package ...to ease usage of the package. Therefore it's no longer needed to also build xmlsuite/xmlreaderimpl in order to actually parse something. Expat should provide a good default.

"{ Package: 'stx:goodies/xmlsuite/core' }"

"{ NameSpace: XMLv2 }"

AbstractDOM3TestCase subclass:#NodeTests
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'XML Suite-Tests'
!


!NodeTests methodsFor:'initialize / release'!

setUp
    "common setup - invoked before testing."

    super setUp.
    doc := self class document:#testDocument.
    foo := doc childNodes detect:[:node| node isElement].
    qux := foo attributes detect:[:attr| attr localName = 'qux'].

    "Created: / 05-08-2005 / 14:25:53 / janfrog"
!

tearDown
    "common cleanup - invoked after testing."

    super tearDown

    "Created: / 05-08-2005 / 14:25:53 / janfrog"
! !

!NodeTests methodsFor:'tests'!

test_parent1

    self assert:foo parent == doc.
    self assert:qux parent == nil.

    "Created: / 05-08-2005 / 14:32:15 / janfrog"
! !

!NodeTests class methodsFor:'documentation'!

version
    ^ '$Header: /opt/data/cvs/stx/goodies/xmlsuite/XMLv2__NodeTests.st,v 1.1.1.1 2005-11-01 22:05:52 vranyj1 Exp $'
!

version_SVN
    ^ '$Id$'
! !