Package com.aptana.interactive_console.console.ui.internal.actions

Examples of com.aptana.interactive_console.console.ui.internal.actions.HandleDeletePreviousWord


import junit.framework.TestCase;

public class HandleDeletePreviousWordTest extends TestCase {

    public void testDeletePreviousWord() throws Exception {
        HandleDeletePreviousWord previousWord = new HandleDeletePreviousWord();
        Document doc = new Document(">>> abc def");

        previousWord.execute(doc, doc.getLength(), 4);
        assertEquals(">>> abc ", doc.get());

        previousWord.execute(doc, doc.getLength(), 4);
        assertEquals(">>> ", doc.get());

        previousWord.execute(doc, doc.getLength(), 4);
        assertEquals(">>> ", doc.get());

        previousWord.execute(doc, 2, 4);
        assertEquals(">>> ", doc.get());

        doc = new Document(">>> class A:");
        previousWord.execute(doc, doc.getLength(), 4);
        assertEquals(">>> class A", doc.get());

    }
View Full Code Here


                }
            });

            initDragDrop();

            handleDeletePreviousWord = new HandleDeletePreviousWord();
            handleLineStartAction = new HandleLineStartAction();
        }
View Full Code Here

TOP

Related Classes of com.aptana.interactive_console.console.ui.internal.actions.HandleDeletePreviousWord

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.