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
Change step insertion/removal signaling to differ from normal signals

These events feed straight into the steps cache, and must be processed
by the cache before any external consumers receive the event.
Only process signals created by an operation after execution is complete

This ensures the operation cannot be accidentally interrupted by an
external consumer of an event.

Other parts of the system rely on signals outside of operation execution.
By only batching the signals when an operation is being executed, these
other subsystems continue to operate correctly.
Catch any subscriber exceptions when emitting queued signals

Exceptions thrown during the processing of queued signals may improperly
leave the pendingSignals array non-empty. Rather than letting these
exceptions become fatal, simply catch and log, and carry on processing.

The assumption here is that consumers of signals should NOT cause the
processing of an operation to fail (e.g., if a UI binding goes bad).