3584
sourcerer
1
2
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
4
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
6
7
charset=us-ascii" />
8
Document Object Model (DOM) Conformance Test
9
Suites, Level 1 HTML
10
11
12
src="resources/toc.js">
13
14
15
16
17
18
19
align="left" src="resources/w3c_home.png" border="0"
20
alt="W3C" />
21
src="resources/nist_home.gif" alt="National Institute of
22
Standards and Technology" height="45" width="231" align="left"
23
border="0" />About
24
DOM .
25
DOM Activity statement !DOCTYPE>
26
27
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
28
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
29
charset=us-ascii" />
30
align="left" src="resources/w3c_home.png" border="0"
31
alt="W3C" />
32
src="resources/nist_home.gif" alt="National Institute of
33
Standards and Technology" height="45" width="231" align="left"
34
border="0" />Technical Reports .
35
36
Materials!DOCTYPE>
37
38
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
39
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
40
charset=us-ascii" />
41
42
alt="W3C" />
43
src="resources/nist_home.gif" alt="National Institute of
44
Standards and Technology" height="45" width="231" align="left"
45
border="0" />Test Suites .
46
href="http://www.w3.org/DOM/Test/Documents/DOMTSFAQ">Test Suites FAQ .
47
Mailing
48
Lists!DOCTYPE>
49
50
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
51
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
52
charset=us-ascii" />
53
54
alt="W3C" />
55
src="resources/nist_home.gif" alt="National Institute of
56
Standards and Technology" height="45" width="231" align="left"
57
border="0" />Members only resource: DOM Working
58
Group
59
60
DOM Conformance Test Suite, Level 1 HTML
61
62
63
This document
64
65
66
67
This document describes how to run the DOM Level 1 HTML Test Suite. It also includes pointers to relevant software as well as relevant resources.
68
69
The DOM TS has been developed in accordance with the
70
href="http://www.w3.org/DOM/DOMTS-Process">DOM Conformance Test Suites Process Document. For
71
additional information and to download other DOM Test Suites, visit the
72
href="http://www.w3.org/DOM/Test">DOM Conformance Test Suites page.
73
74
75
Overview
76
77
78
79
The DOM Conformance Test Suite consist of a series of tests that have been generated from XML test descriptions, then transformed into the two official DOM
80
bindings, Java and ECMA. In order to run the test suite, we have provided the possibility to run the
81
tests using the JUnit and JsUnit testing frameworks, both included in this
82
distribution.
83
84
The DOM Level 1 HTML TS was released on February 13, 2002.
85
86
87
Latest Version
88
89
Download the
90
href="http://www.w3.org/DOM/Test/Downloads/DOMTSL1HTML">latest version
91
of the DOM Level 1 HTML Test Suite.
92
93
94
Distribution
95
96
This distribution is organized as follows:
97
151
152
153
Running the ECMAScript tests
154
155
The DOM TS currently tests XML and SVG implementations of DOM Level 1 HTML. Later revisions will provide testing of HTML implementation conformance with DOM Level
156
1.
157
To run the ECMAScript tests, open the
158
href="ecmascript/jsunit/testRunner.html">JsUnit test runner in the browser
159
you want to test, press the browse button and look for the file
160
161
After that, press Run to run all DOM 1 tests compatible
162
with the implementation. If you choose to run individual tests, the
163
above procedure works similarly, just browse for the test you want to
164
run in the "ecmascript/level1/html" directory.
165
These tests have been run with Microsoft
166
Internet Explorer 5.0 and later for Microsoft Windows and
167
168
Use on Apple OS X required replacing colon (:) in the test case name with slashes (/).
169
170
"ecmascript/level1/html/svg-alltests.html" and press Run.
171
For JsUnit reference, please visit the JsUnit
172
home page. JsUnit will provide output with indication on how many tests that were run, how many failed and
173
how many errors were found while running. The error log points to the actual test, so identifying
174
what you need to do in your implementation is simplified.
175
176
177
Running the Java tests
178
179
Running the Java tests will require placing a JAXP 1.1 compatible parser on the classpath or
180
placing a common JAXP 1.1 parser (Apache Xerces , Apache Crimson , Oracle XML Developer Kit , or GNUJAXP ) in the java/ directory.
181
Running "java -jar dom1-html.jar" from the java/ directory will write to the console a summary of the parser under
182
test and the results of the tests run in two distinct configurations. The parser under test can
183
be selected by any mechanism supported by JAXP 1.1.
184
185
The Java tests may also be run using from JUnit TestRunner's. To run
186
all tests against the default JAXP parser in a default configuration from the JUnit text user interface, run "
187
188
189
190
junit.swingui.TestRunner -noloading org.w3c.domts.level1.html.TestDefaultParser"
191
192
Running "java -jar junit-run.jar" will launch the JUnit SwingUI without the custom ClassLoader.
193
194
The following TestSuite's are provided for use within JUnit TestRunner's. These provide
195
196
197
198
org.w3c.domts.level1.html.TestBatik Tests the Apache Batik SVG project (currently fails loading test documents).
199
org.w3c.domts.level1.html.TestCrimson Tests the Apache Crimson Parser in the default configuration.
200
org.w3c.domts.level1.html.TestCrimsonAltConfig Tests the Apache Crimson Parser in an alternative configuration.
201
org.w3c.domts.level1.html.TestDefaultParser Tests the current JAXP 1.1 Parser in the default configuration.
202
org.w3c.domts.level1.html.TestDefaultParserAltConfig Tests the current JAXP 1.1 Parser in an alternative configuration.
203
org.w3c.domts.level1.html.TestDOM4J Tests DOM4J .
204
org.w3c.domts.level1.html.TestGNUJAXP Tests the GNUJAXP Parser in the default configuration.
205
org.w3c.domts.level1.html.TestGNUJAXPAltConfig Tests the GNUJAXP Parser in an alternative configuration.
206
org.w3c.domts.level1.html.TestOracle Tests the Oracle XML Parser in the default configuration.
207
org.w3c.domts.level1.html.TestOracleAltConfig Tests the Oracle XML Parser in an alternative configuration.
208
org.w3c.domts.level1.html.TestXerces Tests the Apache Xerces Parser in the default configuration.
209
org.w3c.domts.level1.html.TestXercesAltConfig Tests the Apache Xerces Parser in an alternative configuration.
210
211
212
213
214
215
216
217
We look forward to your comments. The DOM TS Group communicates primarily through the DOM TS mailing list (
218
href="http://lists.w3.org/Archives/Public/www-dom-ts/">archive).
219
220
221
222
Copyright
223
224
Tests in this table are released under the
225
href="http://www.w3.org/Consortium/Legal/copyright-software-19980720.html">W3C
226
Software Copyright Notice and license:!DOCTYPE>
227
228
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
229
xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
230
charset=us-ascii" />
231
align="left" src="resources/w3c_home.png" border="0"
232
alt="W3C" />
233
src="resources/nist_home.gif" alt="National Institute of
234
Standards and Technology" height="45" width="231" align="left"
235
border="0" />
236
href="resources/COPYRIGHT.html">Copyright (c)
237
2002 World Wide Web Consortium,
238
(Massachusetts Institute of Technology, Institut National de
239
240