summaryrefslogtreecommitdiff
path: root/docs/TestSuite
diff options
context:
space:
mode:
authorJames Shaw <jshaw@netsurf-browser.org>2007-08-16 22:15:29 +0000
committerJames Shaw <jshaw@netsurf-browser.org>2007-08-16 22:15:29 +0000
commitb2ac3ec2b1af443127926d98d7bfe88784bda831 (patch)
treec88b0d3f95cda556a9b29ee9e168e86487a61177 /docs/TestSuite
parent79431b6791bb4ef700434dfefefc083dd3220317 (diff)
downloadlibdom-b2ac3ec2b1af443127926d98d7bfe88784bda831.tar.gz
libdom-b2ac3ec2b1af443127926d98d7bfe88784bda831.tar.bz2
Notes on W3C test suite elements
svn path=/trunk/dom/; revision=3526
Diffstat (limited to 'docs/TestSuite')
-rw-r--r--docs/TestSuite179
1 files changed, 179 insertions, 0 deletions
diff --git a/docs/TestSuite b/docs/TestSuite
new file mode 100644
index 0000000..9dc5744
--- /dev/null
+++ b/docs/TestSuite
@@ -0,0 +1,179 @@
+Assertions
+-------------------------------------------------------------------------------
+fail
+assertTrue
+assertFalse
+assertNull
+assertNotNull
+assertEquals
+assertNotEquals
+
+assertSame
+ Tests two objects for identity.
+ If not identical, test if either are null, or either are not Nodes. If so, delegate to assertEquals()
+
+assertInstanceOf
+ Used in [hc_]namednodemapreturnattrnode.xml
+ Can use Node.getNodeType() to get runtime type
+
+assertSize
+assertEventCount
+assertURIEquals
+assertImplementationException
+
+assertDOMException
+
+
+Conditions
+-------------------------------------------------------------------------------
+same
+ (not used)
+
+equals
+notEquals
+less
+lessOrEquals
+greater
+greaterOrEquals
+isNull
+notNull
+and
+or
+xor
+not
+
+instanceOf
+ (not used)
+
+isTrue
+isFalse
+hasSize
+contentType
+contains
+hasFeature
+implementationAttribute
+
+
+Statements
+-------------------------------------------------------------------------------
+var
+ Can contain nested <member> elements when the var has type Collection
+
+assign
+ <assign var="..." value="..."/>
+
+increment
+decrement
+ <increment var="..." value="..."/>
+
+append
+ <append collection="..." item="..."/>
+ Append an object to the end of a Collection.
+ In Java, this is implemented with an ArrayList.
+
+plus
+subtract
+mult
+divide
+load
+implementation
+hasFeature
+
+implementationAttribute
+ Set DocumentBuilder attributes (such as validating)
+
+if
+while
+
+try
+ <try>
+ ...
+ <catch>
+ <DOMException code="..."/>
+ </catch>
+ </try>
+
+for-each
+ <for-each collection="..." member="...">
+
+comment
+ Only used in DOM Level 3 XPath.
+
+return
+ Only used in DOM Level 2/3. Returns immediately from method call with optional @value
+
+userObj
+
+atEvents
+capturedEvents
+bubbledEvents
+allEvents
+ DOM Level 2 Evemts only
+
+createXPathEvaluator
+ DOM Level 3 XPath only
+
+getResourceURI
+ DOM Level 3 LS only
+
+substring
+ <substringData var="..." obj="..." offset="..." count="..."/>
+ Calls @obj.substringData() where obj is an instance of CharacterData
+
+createTempURI
+ DOMImplementationRegistry.newInstance
+
+allErrors
+ Only used in DOM Level 3
+ Calls org.w3c.domts.DOMErrorMonitor.getAllErrors(), which is an instance of DOMErrorHandler
+
+assertLowerSeverity
+allNotifications
+operation
+key
+dst
+
+Datatypes
+-------------------------------------------------------------------------------
+int
+short
+double
+boolean
+ Primitives
+
+DOMString
+
+List
+ In Java, an ArrayList instance typed as a List
+
+Collection
+ In Java, an ArrayList instance typed as a Collection
+
+EventMonitor
+ DOM Level 2 Events only
+
+DOMErrorMonitor
+ DOM Level 3 only
+
+UserDataMonitor
+UserDataNotification
+ DOM Level 3 Core only
+
+Attr
+CDATASection
+CharacterData
+Comment
+Document
+DocumentFragment
+DocumentType
+DOMImplementation
+Element
+Entity
+EntityReference
+NamedNodeMap
+Node
+NodeList
+Notation
+ProcessingInstruction
+Text
+ DOM types \ No newline at end of file