Bug 39227 Text edits: Failure in when delting move source
20030623 Added testMoveWithSourceDelete2. Difference to testMoveWithSourceDelete1 is that the taget position is greater than the source position
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java
fEditor.add(s1);
		fEditor.add(t1);
		fEditor.add(s2);
		fEditor.add(t2);
		
		assertTrue("Can perform edits", fEditor.canPerformEdits());
		UndoMemento undo= fEditor.performEdits(null);
		assertEquals(s1.getTextRange(), 4, 0);
		assertEquals(t1.getTextRange(), 6, 2);		
		assertEquals(s2.getTextRange(), 5, 0);
		assertEquals(t2.getTextRange(), 1, 2);
		assertEquals("Buffer content", "0561472389", fBuffer.getContent());
		doUndoRedo(undo, "0561472389");		
	}
	
	public void testMoveWithTargetDelete() throws Exception {
		MoveSourceEdit s1= new MoveSourceEdit(2, 3);
		MoveTargetEdit t1= new MoveTargetEdit(7, s1);
		SimpleTextEdit e2= SimpleTextEdit.createDelete(6, 2);
		e2.add(t1);
		fEditor.add(s1);
		fEditor.add(e2);
		assertTrue(fEditor.canPerformEdits());
		UndoMemento undo= fEditor.performEdits(null);
		assertEquals("Buffer content", "01589", fBuffer.getContent());
		assertEquals(s1.getTextRange(), 2, 0);
		assertTrue(t1.getTextRange().isDeleted());
		assertEquals(e2.getTextRange(), 3, 0);
		doUndoRedo(undo, "01589");
	}