DOM Level 3 Validation Test Suite Matrix

Below you will find a description of each test in the DOM TS categorized under interface, attribute and method, sorted alphabetically.

Methods with no corresponding test metadata
ElementEditVAL.canSetTextContent
ElementEditVAL.isElementDefinedNS
CharacterDataEditVAL.isWhitespaceOnly
Attributes with no corresponding test metadata
DocumentEditVAL.continuousValidityChecking
DocumentEditVAL.config
ElementEditVAL.allowedFirstChildren

Interface CharacterDataEditVAL

Method Tests
canAppendData

This method checks if given characters can be appended

canDeleteData

This method checks if given characters can be deleted from existing text. should return VAL_FALSE.

canInsertData

This method checks if given characters can be inserted into existing text at given position. should return VAL_FALSE.

canReplaceData
  • This method checks if given characters can replace existing text. should return VAL_FALSE.
  • This method checks if given characters can replace existing text. should return VAL_TRUE.
canSetData

This method checks if given characters can be set as the content of element 'edition'. should return VAL_FALSE.

isWhitespaceOnly

Interface DocumentEditVAL

Attribute Tests
config
continuousValidityChecking
Method Tests
getDefinedElements

This method retrieves all element declarations defined by schema. should return a NameList of length 8.

validateDocument

validate the document, should return VAL_TRUE.

Interface ElementEditVAL

Attribute Tests
allowedAttributes

The method getAllowedAttributes returns the NameList of allowed attributes for the element.

allowedChildren

The method getAllowedChildren returns the NameList of allowed child elements. should return NameList of length 7

allowedFirstChildren
allowedNextSiblings

The method getAllowedNextSiblings return the NameList of elements that may be the following siblings. should return NameList containing name 'ISBN'.

allowedParents

The method getAllowedParents returns the NameList of elements that may be the the parent of current node. should return NameList containing name 'book'.

allowedPreviousSiblings

The method getAllowedPreviousSiblings return the NameList of elements that may be the previous siblings should return NameList containing name 'title'.

contentType

get the content type of element, should return VAL_ELEMENTS_CONTENTTYPE. should return 4.

requiredAttributes

The method requiredAttributes returns the NameList of required attributes for the element.

Method Tests
canRemoveAttribute
The method canSteAttribute checks if the 'inStock' attribute can be removed should return VAL_FALSE
The method canSteAttribute checks if the 'price' attribute can be removed should return VAL_TRUE
canRemoveAttributeNode
The method canRemoveAttributeNode checks if given attribute node can be removed should return VAL_FALSE
canRemoveAttributeNS
This method checks if the attribute with given namesapce and name can be removed should return VAL_FALSE
canSetAttribute
The method canSetAttribute checks if a new attribute 'attr' can be set should return VAL_FALSE
The method canSetAttribute checks if value attribute 'inStock' can be set should return VAL_TRUE
canSetAttributeNode
The method canSteAttribute checks if a new attribute node 'attname' can be set should return VAL_FALSE
canSetAttributeNS
The method canSetAttributeNS checks if an attribute with given namespace and name can be set should return VAL_FALSE
canSetTextContent
isElementDefined
This method checks if element with given name is defined or not should return VAL_TRUE
This method checks if element with given namespace and name is defined or not should return VAL_TRUE
isElementDefinedNS

Interface NodeEditVAL

Attribute Tests
defaultValue

This method returns the default value of the element. Should return null

enumeratedValues

The method enumeratedValues returns a DOMStringList of enumerated values for the element.

Method Tests
canAppendChild
The method canAppendChild checks with schema to see if the child node can be appended, should return VAL_FALSE
The method canAppendChild checks with schema to see if the child node can be appended, should return VAL_TRUE
canInsertBefore
The method canInsertBefore checks with schema to see if a new child can be inserted before reference node, should return VAL_FALSE
The method canInsertBefore checks with schema to see if a new child can be inserted before reference node, should return VAL_FALSE
canRemoveChild
The method canRemoveChild checks if schema allows the child to be removed, should return VAL_FALSE
The method canRemoveChild checks if schema allows the child to be removed, should return VAL_TRUE
canReplaceChild
The method canReplaceChild checks with schema to see if new child 'editor' can replace old child title, should return VAL_FALSE
The method canReplaceChild checks with schema to see if new child 'editor' can replace old child 'author', should return VAL_TRUE
nodeValidity
check node validity, should return VAL_TRUE

Test Subjects
allowedAttributes
ElementEditVAL.allowedAttributes attribute
allowedChildren
ElementEditVAL.allowedChildren attribute
allowedFirstChildren

No subjects defined for test

allowedNextSiblings
ElementEditVAL.allowedNextSiblings attribute
allowedParents
ElementEditVAL.allowedParents attribute
allowedPreviousSiblings
ElementEditVAL.allowedPreviousSiblings attribute
canAppendChildFalse
NodeEditVAL.canAppendChild method
canAppendChildTrue
NodeEditVAL.canAppendChild method
canAppendData
CharacterDataEditVAL.canAppendData method
canDeleteData
CharacterDataEditVAL.canDeleteData method
canInsertBeforeFalse
NodeEditVAL.canInsertBefore method
canInsertBeforeTrue
NodeEditVAL.canInsertBefore method
canInsertData
CharacterDataEditVAL.canInsertData method
canRemoveAttribute
ElementEditVAL.canRemoveAttributeNode method
canRemoveAttributeFalse
ElementEditVAL.canRemoveAttribute method
canRemoveAttributeNS
ElementEditVAL.canRemoveAttributeNS method
canRemoveAttributeTrue
ElementEditVAL.canRemoveAttribute method
canRemoveChildFalse
NodeEditVAL.canRemoveChild method
canRemoveChildTrue
NodeEditVAL.canRemoveChild method
canReplaceChildFalse
NodeEditVAL.canReplaceChild method
canReplaceChildTrue
NodeEditVAL.canReplaceChild method
canReplaceDataFalse
CharacterDataEditVAL.canReplaceData method
canReplaceDataTrue
CharacterDataEditVAL.canReplaceData method
canSetAttributeFalse
ElementEditVAL.canSetAttribute method
canSetAttributeNode
ElementEditVAL.canSetAttributeNode method
canSetAttributeNS
ElementEditVAL.canSetAttributeNS method
canSetAttributeTrue
ElementEditVAL.canSetAttribute method
canSetData
CharacterDataEditVAL.canSetData method
contentType
ElementEditVAL.contentType attribute
defaultValue
NodeEditVAL.defaultValue attribute
definedElements
DocumentEditVAL.getDefinedElements method
enumeratedValuess
NodeEditVAL.enumeratedValues attribute
isElementDefined
ElementEditVAL.isElementDefined method
isElementDefinedNS
ElementEditVAL.isElementDefined method
nodeValidity
NodeEditVAL.nodeValidity method
requiredAttributes
ElementEditVAL.requiredAttributes attribute
validateDocument
DocumentEditVAL.validateDocument method

Tests in this table are released under the W3C Software License