Bug 7986 - text change infra: can't handle swap + replace
Summary: text change infra: can't handle swap + replace
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dirk Baeumer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 7924
  Show dependency tree
 
Reported: 2002-01-22 05:54 EST by Adam Kiezun CLA
Modified: 2002-01-22 08:21 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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