[Pydev-cvs] /org.python.pydev/tests/org/python/pydev/editor/actions PySelectionTest.java,1.16,1.16.2
Brought to you by:
fabioz
From: Sean H. <se...@us...> - 2006-05-31 23:31:07
|
Update of /cvsroot/pydev//org.python.pydev/tests/org/python/pydev/editor/actions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2989/tests/org/python/pydev/editor/actions Modified Files: Tag: SoC_2006 PySelectionTest.java Log Message: made a few basic changes on the advice of Fabioz - still need to learn more about how Eclipse, Eclipse Plugins and PyDev work together. Index: PySelectionTest.java =================================================================== RCS file: /cvsroot/pydev//org.python.pydev/tests/org/python/pydev/editor/actions/PySelectionTest.java,v retrieving revision 1.16 retrieving revision 1.16.2.1 diff -C2 -d -r1.16 -r1.16.2.1 *** PySelectionTest.java 20 May 2006 17:47:31 -0000 1.16 --- PySelectionTest.java 31 May 2006 23:30:50 -0000 1.16.2.1 *************** *** 30,34 **** PySelectionTest test = new PySelectionTest(); test.setUp(); ! test.testDocIterator(); test.tearDown(); --- 30,34 ---- PySelectionTest test = new PySelectionTest(); test.setUp(); ! test.testGetCurrLineWithoutCommsOrLiterals(); test.tearDown(); *************** *** 366,370 **** public void testGetCurrLineWithoutCommsOrLiterals() throws Exception { Document doc = new Document("a#foo\nxxx"); ! PySelection selection = new PySelection(doc); assertEquals("a", selection.getLineContentsToCursor(true, true)); --- 366,370 ---- public void testGetCurrLineWithoutCommsOrLiterals() throws Exception { Document doc = new Document("a#foo\nxxx"); ! PySelection selection = new PySelection(doc, 1); assertEquals("a", selection.getLineContentsToCursor(true, true)); *************** *** 374,378 **** ""; doc = new Document(str); ! selection = new PySelection(doc, str.length()-1); assertEquals(" )", selection.getLineContentsToCursor(true, true)); --- 374,378 ---- ""; doc = new Document(str); ! selection = new PySelection(doc, str.length()); assertEquals(" )", selection.getLineContentsToCursor(true, true)); |