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
UndoMemento undo= fEditor.performEdits(null);
		assertEquals(e1.getTextRange(), 3, 0);
		assertEquals(e2.getTextRange(), 3, 0);
		assertEquals(e3.getTextRange(), 3, 0);
		assertEquals("Buffer content", "0126789", fBuffer.getContent());
		doUndoRedo(undo, "0126789");
	}
	
	public void testDelete3() throws Exception {
		SimpleTextEdit e1= SimpleTextEdit.createInsert(3, "x");
		SimpleTextEdit e2= SimpleTextEdit.createDelete(3, 1);
		fEditor.add(e1);
		fEditor.add(e2);
		assertTrue("Can perform edits", fEditor.canPerformEdits());
		UndoMemento undo= fEditor.performEdits(null);
		assertEquals(e1.getTextRange(), 3, 1);
		assertEquals(e2.getTextRange(), 4, 0);
		assertEquals("Buffer content", "012x456789", fBuffer.getContent());
		doUndoRedo(undo, "012x456789");
	}
	
	public void testDeleteWithChildren() throws Exception {
		SimpleTextEdit e1= SimpleTextEdit.createDelete(2, 6);
		MultiTextEdit e2= new MultiTextEdit();
		e1.add(e2);
		SimpleTextEdit e3= SimpleTextEdit.createReplace(3,1,"xx");
		SimpleTextEdit e4= SimpleTextEdit.createReplace(5,1,"yy");
		e2.add(e3);
		e2.add(e4);
		fEditor.add(e1);