[Pydev-cvs] org.python.pydev/tests/org/python/pydev/editor PyAutoIndentStrategyTest.java, 1.53, 1.5
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2006-09-14 01:15:48
|
Update of /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/editor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25656/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.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** PyAutoIndentStrategyTest.java 22 Aug 2006 23:12:25 -0000 1.53 --- PyAutoIndentStrategyTest.java 14 Sep 2006 01:15:46 -0000 1.54 *************** *** 27,31 **** PyAutoIndentStrategyTest s = new PyAutoIndentStrategyTest("testt"); s.setUp(); ! s.testTab2(); s.tearDown(); junit.textui.TestRunner.run(PyAutoIndentStrategyTest.class); --- 27,31 ---- PyAutoIndentStrategyTest s = new PyAutoIndentStrategyTest("testt"); s.setUp(); ! s.testNewLineWithNewWithConstruct(); s.tearDown(); junit.textui.TestRunner.run(PyAutoIndentStrategyTest.class); *************** *** 58,61 **** --- 58,74 ---- } + + public void testNewLineWithNewWithConstruct() { + strategy.setIndentPrefs(new TestIndentPrefs(true, 4)); + String str = "" + + "class C:\n" + + " with a:" + + ""; + final Document doc = new Document(str); + DocCmd docCmd = new DocCmd(doc.getLength(), 0, "\n"); + strategy.customizeDocumentCommand(doc, docCmd); + assertEquals("\n ", docCmd.text); + } + public void testTab() { strategy.setIndentPrefs(new TestIndentPrefs(true, 4)); |