Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 74988 Details for
Bug 109636
Comment formatter doesn't support "*/"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch_109636_tests.txt (text/plain), 2.95 KB, created by
Olivier Thomann
on 2007-07-30 22:26:17 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2007-07-30 22:26:17 EDT
Size:
2.95 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/formatter/comment/JavaDocTestCase.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/comment/JavaDocTestCase.java,v >retrieving revision 1.14 >diff -u -r1.14 JavaDocTestCase.java >--- src/org/eclipse/jdt/core/tests/formatter/comment/JavaDocTestCase.java 30 Jul 2007 20:20:15 -0000 1.14 >+++ src/org/eclipse/jdt/core/tests/formatter/comment/JavaDocTestCase.java 31 Jul 2007 02:27:03 -0000 >@@ -26,7 +26,7 @@ > public class JavaDocTestCase extends CommentTestCase { > > static { >-// TESTS_NAMES = new String[] { "test198153" } ; >+// TESTS_NAMES = new String[] { "test109636" } ; > } > > protected static final String INFIX= MultiCommentLine.MULTI_COMMENT_CONTENT_PREFIX; >@@ -855,4 +855,40 @@ > String result=testFormat(input, options); > assertEquals(expected, result); > } >+ >+ public void test109636() { >+ Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings(); >+ >+ String input = >+ "/**" + DELIMITER + >+ " * <code>" + DELIMITER + >+ " * <pre>" + DELIMITER + >+ " * setLeadingComment(\"/* traditional comment */\"); // correct" + DELIMITER + >+ " * setLeadingComment(\"missing comment delimiters\"); // wrong" + DELIMITER + >+ " * setLeadingComment(\"/* unterminated traditional comment \"); // wrong" + DELIMITER + >+ " * setLeadingComment(\"/* broken\\n traditional comment */\"); // correct" + DELIMITER + >+ " * setLeadingComment(\"// end-of-line comment\\n\"); // correct" + DELIMITER + >+ " * setLeadingComment(\"// end-of-line comment without line terminator\"); // correct" + DELIMITER + >+ " * setLeadingComment(\"// broken\\n end-of-line comment\\n\"); // wrong" + DELIMITER + >+ " * </pre>" + DELIMITER + >+ " * </code>" + DELIMITER + >+ " */"; >+ >+ String expected = >+ "/**" + DELIMITER + >+ " * <code>" + DELIMITER + >+ " * <pre>" + DELIMITER + >+ " * setLeadingComment("/* traditional comment */"); // correct" + DELIMITER + >+ " * setLeadingComment("missing comment delimiters"); // wrong" + DELIMITER + >+ " * setLeadingComment("/* unterminated traditional comment "); // wrong" + DELIMITER + >+ " * setLeadingComment("/* broken\\n traditional comment */"); // correct" + DELIMITER + >+ " * setLeadingComment("// end-of-line comment\\n"); // correct" + DELIMITER + >+ " * setLeadingComment("// end-of-line comment without line terminator"); // correct" + DELIMITER + >+ " * setLeadingComment("// broken\\n end-of-line comment\\n"); // wrong" + DELIMITER + >+ " * </pre>" + DELIMITER + >+ " * </code>" + DELIMITER + >+ " */"; >+ String result=testFormat(input, options); >+ assertEquals(expected, result); >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 109636
:
74987
| 74988 |
75133