Examples of prev()


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

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

        c.setMatchStart("a");
        assertTrue(c.prev());
        assertEquals("aaa", c.get());

        c.setMatchStart("b");
        assertFalse(c.prev()); //must cycle (will change other tests too)
        assertEquals("aaa", c.get());
View Full Code Here

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

        c.setMatchStart("a");
        assertTrue(c.prev());
        assertEquals("aaa", c.get());

        c.setMatchStart("b");
        assertFalse(c.prev()); //must cycle (will change other tests too)
        assertEquals("aaa", c.get());
    }

    public void testScriptConsoleWithMatchingStart() throws Exception {
        ScriptConsoleHistory c = new ScriptConsoleHistory();
View Full Code Here

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

        c.commit();

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

        assertTrue(c.prev());
        assertEquals("1. line1aaa", c.get());

        assertTrue(c.prev());
        assertEquals("1. line1bbb", c.get());
View Full Code Here

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

        c.setMatchStart("1. line1");

        assertTrue(c.prev());
        assertEquals("1. line1aaa", c.get());

        assertTrue(c.prev());
        assertEquals("1. line1bbb", c.get());

        assertFalse(c.prev());
        assertEquals("1. line1bbb", c.get());
View Full Code Here

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

        assertEquals("1. line1aaa", c.get());

        assertTrue(c.prev());
        assertEquals("1. line1bbb", c.get());

        assertFalse(c.prev());
        assertEquals("1. line1bbb", c.get());

        assertTrue(c.next());
        assertEquals("1. line1aaa", c.get());
View Full Code Here

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

        assertEquals("1. line1aaa", c.get());
    }

    public void testScriptConsole() throws Exception {
        ScriptConsoleHistory c = new ScriptConsoleHistory();
        assertFalse(c.prev());
        assertFalse(c.next());

        c.update("test");

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

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

        assertFalse(c.next());

        c.update("test");

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

        c.commit();
View Full Code Here

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

        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());
        assertFalse(c.next()); //the 'current' buffer doesn't enter the history
        assertEquals("test", c.get());
View Full Code Here

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

        c.commit();
        assertEquals("", c.get());
        assertTrue(c.prev());
        assertEquals("test", c.get());
        assertFalse(c.prev());
        assertEquals("test", c.get());
        assertFalse(c.next()); //the 'current' buffer doesn't enter the history
        assertEquals("test", c.get());
        assertFalse(c.prev());
        assertEquals("test", c.get());
View Full Code Here

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

        assertEquals("test", c.get());
        assertFalse(c.prev());
        assertEquals("test", c.get());
        assertFalse(c.next()); //the 'current' buffer doesn't enter the history
        assertEquals("test", c.get());
        assertFalse(c.prev());
        assertEquals("test", c.get());

        c.update("kkk");
        c.commit();
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.