Bug 39324 TextEdits: Moved positions removed
20030625 See TextBufferTest.testMoveWithRangeMarker2 The RangeMarker is inside the MoveSource, and the MoveSource inside a delete: The resulting range of the Range Marker is deleted, not moved (TextBufferTest.testMoveWithRangeMarker shows that is works if there is no surrounding delete)
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java
undo= fEditor.performEdits(null);
		assertEquals("Buffer content redo", redoResult, fBuffer.getContent());
		fEditor.add(undo);
		fEditor.performEdits(null);
		assertBufferContent();
	}
	
	private void assertEquals(TextRange r, int offset, int length) {
		assertEquals("Offset", offset, r.getOffset());
		assertEquals("Length", length, r.getLength());	
	}
	
	private void assertBufferContent() {
		assertEquals("Buffer content restored", "0123456789", fBuffer.getContent());
	}
	
	private void assertTrue(IStatus status) {
		assertTrue(status.isOK());
	}	
	
	private void assertTrue(String message, IStatus status) {
		assertTrue(message, status.isOK());
	}	
	
	private void assertFalse(IStatus status) {
		assertTrue(!status.isOK());
	}
			
}