[Pydev-cvs] org.python.pydev/tests/org/python/pydev/editor PyAutoIndentStrategyTest.java,1.5,1.6
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2005-07-21 13:05:17
|
Update of /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/editor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11604/tests/org/python/pydev/editor Modified Files: PyAutoIndentStrategyTest.java Log Message: Index: PyAutoIndentStrategyTest.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/editor/PyAutoIndentStrategyTest.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** PyAutoIndentStrategyTest.java 15 Jul 2005 11:48:29 -0000 1.5 --- PyAutoIndentStrategyTest.java 21 Jul 2005 13:04:54 -0000 1.6 *************** *** 293,296 **** --- 293,304 ---- assertEquals(2, docCmd.caretOffset); + // check insertion that should happen even being just before a ')' + doc = "(() "; + docCmd = new DocCmd(2, 0, ")"); + strategy.customizeDocumentCommand(new Document(doc), docCmd); + expected = ")"; + assertEquals(expected, docCmd.text); + assertEquals(0, docCmd.caretOffset); + // check same stuff for brackets // check simple braces insertion not at end of document |