Source image | Reference image |
---|---|
![]() |
Initiate Test | Purpose | Test Result | Comments |
Done on load | Prerequisite for Text Node tests | NA | Successfully locate the metadata node that is parent of the text nodes, verify it has 3 children. See Note 1. |
Done on load | nodeName, nodeType, nodeValue: | NA | Test is looking for nodeName of '#text', nodeType of '4' and nodeValue of 'Text before anchor'. |
Done on load | parentNode, ownerPicture: | NA | .ownerPicture on first Text Node should be same object as WebCGMMetafile.firstPicture. |
Done on load | hasChildNodes, childNodes: | NA | For any Text Node, hasChildNodes() must be false and childNodes must be null/empty (which one?). |
Done on load | firstChild, lastChild: | NA | For any Text Node, firstChild and lastChild must null. |
Done on load | previousSibling, nextSibling: | NA | Test nextSibling of 1st Text Node and previousSibling of last Text Node. |
Done on load | hasAttributes, attributes: | NA | For any Text Node, hasAttributes() must be false and attributes must be null/empty (which one?). |
Done on load | namespaceURI, prefix, localName: | NA | Two different namespaces are used in this test. |
Note 1. Text nodes can only be the children of metadata nodes. Therefore the first test is a "prerequisites test", to verify that the metadata node can be located and that it has the correct number of children, three. (The children are a text node, followed by a metadata node sibling, followed by another text node sibling -- this is not tested in the prerequisites test). If this prerequisites test fails, then all the remaining tests will likely fail.