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(t2);
		assertTrue("Can perform edits", fEditor.canPerformEdits());
		UndoMemento undo= fEditor.performEdits(null);
		assertEquals(s1.getTextRange(), 7, 2);
		assertEquals(t1.getTextRange(), 10, 2);
		assertEquals(s2.getTextRange(), 7, 2);
		assertEquals(t2.getTextRange(), 2, 2);
		String result= "01562345675689";
		assertEquals("Buffer content", result, fBuffer.getContent());
		doUndoRedo(undo, result);		
	}
	
	public void testSwap1() throws Exception {
		TextBuffer buffer= TextBuffer.create("foo(1, 2), 3");
		TextBufferEditor editor= new TextBufferEditor(buffer);		
		
		MultiTextEdit root= new MultiTextEdit();
		{
			CopySourceEdit innerRoot= new CopySourceEdit(0, 9);
			
			SimpleTextEdit e1= SimpleTextEdit.createReplace(0, 9, "");
			e1.add(innerRoot);
			CopyTargetEdit t1= new CopyTargetEdit(11, innerRoot);
			
			SimpleTextEdit e2= SimpleTextEdit.createReplace(11, 1, "");
			CopySourceEdit s2= new CopySourceEdit(11, 1);
			e2.add(s2);
			CopyTargetEdit t2= new CopyTargetEdit(0, s2);
			root.add(e1);
			root.add(t2);