Bug 7986

Summary: text change infra: can't handle swap + replace
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: UIAssignee: Dirk Baeumer <dirk_baeumer>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dirk_baeumer
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Bug Depends on:    
Bug Blocks: 7924    

Description Adam Kiezun CLA 2002-01-22 05:54:15 EST
the following tests case fails:
	public void testSwapAndReplace() throws Exception {
		SwapTextEdit e1= new SwapTextEdit(1, 3, 5, 3);
		SimpleTextEdit e2= SimpleTextEdit.createReplace(6, 1, "ab");
		fEditor.add(e1);
		fEditor.add(e2);
		assertTrue("Can perform edits", fEditor.canPerformEdits());
		UndoMemento undo= fEditor.performEdits(null);
		assertEquals("Buffer content", "05ab7412389", fBuffer.getContent
());
		doUndo(undo);
	}

the buffer is 0ab74123589
Comment 1 Dirk Baeumer CLA 2002-01-22 08:21:49 EST
Fixed in build > iX-20020115