core/XMLv2__NodeTests.st
author Patrik Svestka <patrik.svestka@gmail.com>
Wed, 14 Nov 2018 13:13:37 +0100
changeset 306 fb9d45df523b
parent 300 b6d834208d33
permissions -rw-r--r--
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present - All source *.st files are now Unicode UTF8 without BOM Files are in two groups (fileOut works this way in Smalltalk/X): - containing a unicode character have "{ Encoding: utf8 }" at the header - ASCII only are without the header

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