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
}
	
	public void testOverlap8() throws Exception {
		MoveSourceEdit source= new MoveSourceEdit(2, 5);
		MoveTargetEdit target= new MoveTargetEdit(6, source);
		fEditor.add(source);
		fEditor.add(target);
		assertFalse(fEditor.canPerformEdits());
	}
	
	public void testOverlap9() throws Exception {
		MoveSourceEdit s1= new MoveSourceEdit(3, 1);
		MoveTargetEdit t1= new MoveTargetEdit(7, s1);
		MoveSourceEdit s2= new MoveSourceEdit(2, 3);
		MoveTargetEdit t2= new MoveTargetEdit(8, s2);
		fEditor.add(s1);
		fEditor.add(t1);
		fEditor.add(s2);
		fEditor.add(t2);
		assertFalse(fEditor.canPerformEdits());
	}
		
	public void testInsert1() throws Exception {
		
		SimpleTextEdit e1= SimpleTextEdit.createInsert(2, "yy");
		SimpleTextEdit e2= SimpleTextEdit.createReplace(2, 3, "3456");
		fEditor.add(e1);
		fEditor.add(e2);
		assertTrue(fEditor.canPerformEdits());
		UndoMemento undo= fEditor.performEdits(null);