Remove duplicate function definition

getDOMDocument is already defined a few lines below, using the more
standard "self" reference rather than "this".
Merge pull request #831 from peitschie/odt-doc-codefix

Remove duplicate function definition
Cope with test names containing angle brackets
Verify the number of steps vs. expected number of cursor positions
Fix doc length check when iterating backwards
Report one test per cursor position document fragment
Print function result rather than function.toString for test description
Merge pull request #783 from peitschie/test-improvements

Clean up OdtDocument cursor position tests
Add test showing position stability issue near annotations
Add additional tests showing position stability problems
Fix position instability around highlighted annotations

By checking only nodes that pass the supplied node filter, the position
logic can safely ignore out-of-place cursors near highlighted annotations.