Package org.python.pydev.refactoring.utils.TestUtils

Examples of org.python.pydev.refactoring.utils.TestUtils.Cursors


        source = source.trim();
        result = result.trim();
        config = config.trim();

        Cursors sourceCursors = TestUtils.findCursors(source);
        Cursors resultCursors = TestUtils.findCursors(result);

        source = sourceCursors.text;
        result = resultCursors.text;

        sourceSelection = parseSelection(sourceCursors.positions);
View Full Code Here


        assertEquals("str", strMarker.type);
        assertEquals(2, strMarker.beginLine);
    }

    public void testFindCursors() {
        Cursors findCursors = TestUtils.findCursors("##|x##|x##|x##|x##|");

        assertEquals("xxxx", findCursors.text);
        assertEquals(5, findCursors.positions.size());
        for (int i = 0; i < 5; i++) {
            assertEquals((Integer) i, findCursors.positions.get(i));
View Full Code Here

TOP

Related Classes of org.python.pydev.refactoring.utils.TestUtils.Cursors

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.