author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 10 Apr 2008 09:14:47 +0000 | |
changeset 3 | 7909b6680107 |
parent 2 | 06f508a6f55c |
child 174 | 76f50ac2e6a0 |
permissions | -rw-r--r-- |
3
7909b6680107
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
1 |
"{ Package: 'stx:goodies/xmlsuite/core' }" |
0 | 2 |
|
3 |
"{ NameSpace: XMLv2 }" |
|
4 |
||
5 |
TestCase subclass:#AbstractW3CDOM3TestCase |
|
6 |
instanceVariableNames:'lastException' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'XML Suite-Tests' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!AbstractW3CDOM3TestCase class methodsFor:'accessing'! |
|
14 |
||
15 |
defaultTestFilesDirectory |
|
16 |
^ (Smalltalk getPackageDirectoryForPackage:self package) |
|
17 |
construct:'resources/tests/dom3/' , self module , '/files' |
|
18 |
||
19 |
"Modified: / 11-08-2005 / 14:22:56 / janfrog" |
|
20 |
"Created: / 17-08-2005 / 09:13:34 / masca" |
|
21 |
! ! |
|
22 |
||
23 |
!AbstractW3CDOM3TestCase class methodsFor:'defaults'! |
|
24 |
||
25 |
module |
|
26 |
||
27 |
^self subclassResponsibility |
|
28 |
||
29 |
"Created: / 11-08-2005 / 14:22:56 / janfrog" |
|
30 |
! ! |
|
31 |
||
32 |
!AbstractW3CDOM3TestCase class methodsFor:'testing'! |
|
33 |
||
34 |
isAbstract |
|
35 |
||
36 |
^self == AbstractW3CDOM3TestCase |
|
37 |
||
38 |
"Created: / 11-08-2005 / 10:21:32 / janfrog" |
|
39 |
"Modified: / 11-08-2005 / 14:22:55 / janfrog" |
|
40 |
! ! |
|
41 |
||
42 |
!AbstractW3CDOM3TestCase methodsFor:'accessing'! |
|
43 |
||
44 |
xmlFilenameFor:aString |
|
45 |
|filename| |
|
46 |
||
47 |
filename := self class defaultTestFilesDirectory |
|
48 |
construct:aString , '.xml'. |
|
49 |
self assert:filename exists description:'Test file does not exist!!'. |
|
50 |
^ filename |
|
51 |
||
52 |
"Created: / 11-08-2005 / 14:23:14 / janfrog" |
|
53 |
"Modified: / 17-08-2005 / 09:13:34 / masca" |
|
54 |
! ! |
|
55 |
||
56 |
!AbstractW3CDOM3TestCase methodsFor:'private'! |
|
57 |
||
58 |
executeShould: aBlock inScopeOf: anExceptionalEvent |
|
59 |
[aBlock value] |
|
60 |
on: anExceptionalEvent |
|
61 |
do: [:ex | lastException := ex. ^true]. |
|
62 |
||
63 |
^false. |
|
64 |
||
65 |
"Created: / 15-11-2005 / 14:16:54 / janfrog" |
|
66 |
! ! |
|
67 |
||
68 |
!AbstractW3CDOM3TestCase class methodsFor:'documentation'! |
|
69 |
||
70 |
version |
|
71 |
^ '$Header: /opt/data/cvs/stx/goodies/xmlsuite/XMLv2__AbstractW3CDOM3TestCase.st,v 1.2 2005-11-15 16:13:58 vranyj1 Exp $' |
|
72 |
! ! |