[Pydev-cvs] org.python.pydev/tests/org/python/pydev/editor/actions PyAddSingleBlockCommentTest.java
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2007-01-23 23:52:14
|
Update of /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/editor/actions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2445/tests/org/python/pydev/editor/actions Modified Files: PyAddSingleBlockCommentTest.java Log Message: Option to align block comments to the left Index: PyAddSingleBlockCommentTest.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/tests/org/python/pydev/editor/actions/PyAddSingleBlockCommentTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PyAddSingleBlockCommentTest.java 19 Jul 2006 23:43:51 -0000 1.1 --- PyAddSingleBlockCommentTest.java 23 Jan 2007 23:52:13 -0000 1.2 *************** *** 24,28 **** Document doc = new Document(s); ! PyAddSingleBlockComment.perform(new PySelection(doc, 0,0,0)); assertEquals("#------ cc", doc.get()); --- 24,28 ---- Document doc = new Document(s); ! new PyAddSingleBlockComment(10, true).perform(new PySelection(doc, 0,0,0)); assertEquals("#------ cc", doc.get()); *************** *** 30,36 **** doc = new Document(s); ! PyAddSingleBlockComment.perform(new PySelection(doc, 0,0,0)); assertEquals(" #-- cc", doc.get()); } --- 30,40 ---- doc = new Document(s); ! new PyAddSingleBlockComment(10, true).perform(new PySelection(doc, 0,0,0)); assertEquals(" #-- cc", doc.get()); + doc = new Document("cc"); + new PyAddSingleBlockComment(10, false).perform(new PySelection(doc, 0,0,0)); + assertEquals("#cc ------", doc.get()); + } |