Package com.aptana.interactive_console.console

Examples of com.aptana.interactive_console.console.ScriptConsoleHistory.commit()


    }

    public void testScriptConsoleWithMatchingStart2() throws Exception {
        ScriptConsoleHistory c = new ScriptConsoleHistory();
        c.update("aaa");
        c.commit();

        c.update("bbb");
        c.commit();

        c.setMatchStart("a");
View Full Code Here


        ScriptConsoleHistory c = new ScriptConsoleHistory();
        c.update("aaa");
        c.commit();

        c.update("bbb");
        c.commit();

        c.setMatchStart("a");
        assertTrue(c.prev());
        assertEquals("aaa", c.get());
View Full Code Here

    }

    public void testScriptConsoleWithMatchingStart() throws Exception {
        ScriptConsoleHistory c = new ScriptConsoleHistory();
        c.update("1. line1bbb");
        c.commit();

        c.update("1. line1aaa");
        c.commit();

        c.update("1. line2aaa");
View Full Code Here

        ScriptConsoleHistory c = new ScriptConsoleHistory();
        c.update("1. line1bbb");
        c.commit();

        c.update("1. line1aaa");
        c.commit();

        c.update("1. line2aaa");
        c.commit();

        c.update("1. line3aaa");
View Full Code Here

        c.update("1. line1aaa");
        c.commit();

        c.update("1. line2aaa");
        c.commit();

        c.update("1. line3aaa");
        c.commit();

        assertEquals("", c.get());
View Full Code Here

        c.update("1. line2aaa");
        c.commit();

        c.update("1. line3aaa");
        c.commit();

        assertEquals("", c.get());
        c.setMatchStart("1. line1");

        assertTrue(c.prev());
View Full Code Here

        assertFalse(c.prev());
        assertEquals("test", c.get());
        assertFalse(c.next());
        assertEquals("test", c.get());

        c.commit();
        assertEquals("", c.get());
        assertTrue(c.prev());
        assertEquals("test", c.get());
        assertFalse(c.prev());
        assertEquals("test", c.get());
View Full Code Here

        assertEquals("test", c.get());
        assertFalse(c.prev());
        assertEquals("test", c.get());

        c.update("kkk");
        c.commit();

        assertEquals("test\nkkk\n", c.getAsDoc().get());
        assertFalse(c.next());
        assertEquals("", c.get());
        assertTrue(c.prev());
View Full Code Here

        assertEquals("kkk", c.get());
        assertTrue(c.prev());
        assertEquals("test", c.get());

        c.update("");
        c.commit();
        assertEquals("test\nkkk\n\n", c.getAsDoc().get());
        assertTrue(c.prev());
        assertEquals("kkk", c.get());
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.