[Pydev-cvs] org.python.pydev/tests/org/python/pydev/editor PyAutoIndentStrategyTest.java, 1.66, 1.6
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-08-21 18:25:09
|
Update of /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/editor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22203/tests/org/python/pydev/editor Modified Files: PyAutoIndentStrategyTest.java Log Message: Auto-indent prefs fixed (https://sourceforge.net/tracker/?func=detail&atid=577329&aid=2064164&group_id=85796) Index: PyAutoIndentStrategyTest.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/editor/PyAutoIndentStrategyTest.java,v retrieving revision 1.66 retrieving revision 1.67 diff -C2 -d -r1.66 -r1.67 *** PyAutoIndentStrategyTest.java 3 Jul 2008 01:04:04 -0000 1.66 --- PyAutoIndentStrategyTest.java 21 Aug 2008 18:25:18 -0000 1.67 *************** *** 26,30 **** PyAutoIndentStrategyTest s = new PyAutoIndentStrategyTest("testt"); s.setUp(); ! s.testNoIndent(); s.tearDown(); junit.textui.TestRunner.run(PyAutoIndentStrategyTest.class); --- 26,30 ---- PyAutoIndentStrategyTest s = new PyAutoIndentStrategyTest("testt"); s.setUp(); ! s.testTab3(); s.tearDown(); junit.textui.TestRunner.run(PyAutoIndentStrategyTest.class); *************** *** 138,141 **** --- 138,151 ---- } + public void testTab3() { + strategy.setIndentPrefs(new TestIndentPrefs(false, 4)); + String str = "\tprint 'foo'"; + DocCmd docCmd = new DocCmd(1, 0, "\t"); + Document document = new Document(str); + strategy.customizeDocumentCommand(document, docCmd); + assertEquals("\t", docCmd.text); + assertEquals(str, document.get()); //as we already have a selection, nothing should be deleted + } + public void testSpaces() { strategy.setIndentPrefs(new TestIndentPrefs(true, 4)); |