core/XMLv2__NodeTests.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 12 May 2015 12:20:53 +0100
changeset 296 ea3dbc023c80
parent 174 core/trunk/XMLv2__NodeTests.st@76f50ac2e6a0
child 300 b6d834208d33
permissions -rw-r--r--
Post-convert fixes Removed intermediate `trunk` directories used for branching in SVN

"{ 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$'
! !