Link Here
|
3229 |
} |
3229 |
} |
3230 |
|
3230 |
|
3231 |
/** |
3231 |
/** |
|
|
3232 |
* @bug 260011: [formatter] Formatting of html in javadoc comments doesn't work with style attributes |
3233 |
* @test Ensure that the comment formatter understand <p> html tag with attributes |
3234 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=260011" |
3235 |
*/ |
3236 |
public void testBug260011() throws JavaModelException { |
3237 |
String source = |
3238 |
"public class Test {\n" + |
3239 |
" /**\n" + |
3240 |
" * some comment text here\n" + |
3241 |
" * <p style=\"font-variant:small-caps;\">\n" + |
3242 |
" * some text to be styled a certain way\n" + |
3243 |
" * </p>\n" + |
3244 |
" */\n" + |
3245 |
" void foo() {}\n" + |
3246 |
"\n" + |
3247 |
"}\n"; |
3248 |
formatSource(source, |
3249 |
"public class Test {\n" + |
3250 |
" /**\n" + |
3251 |
" * some comment text here\n" + |
3252 |
" * <p style=\"font-variant:small-caps;\">\n" + |
3253 |
" * some text to be styled a certain way\n" + |
3254 |
" * </p>\n" + |
3255 |
" */\n" + |
3256 |
" void foo() {\n" + |
3257 |
" }\n" + |
3258 |
"\n" + |
3259 |
"}\n" |
3260 |
); |
3261 |
} |
3262 |
public void testBug260011a() throws JavaModelException { |
3263 |
String source = |
3264 |
"public class Test {\n" + |
3265 |
" /**\n" + |
3266 |
" * some comment text here\n" + |
3267 |
" * <ul style=\"font-variant:small-caps;\"><li style=\"font-variant:small-caps;\">\n" + |
3268 |
" * some text to be styled a certain way</li></ul>\n" + |
3269 |
" * end of comment\n" + |
3270 |
" */\n" + |
3271 |
" void foo() {}\n" + |
3272 |
"\n" + |
3273 |
"}\n"; |
3274 |
formatSource(source, |
3275 |
"public class Test {\n" + |
3276 |
" /**\n" + |
3277 |
" * some comment text here\n" + |
3278 |
" * <ul style=\"font-variant:small-caps;\">\n" + |
3279 |
" * <li style=\"font-variant:small-caps;\">\n" + |
3280 |
" * some text to be styled a certain way</li>\n" + |
3281 |
" * </ul>\n" + |
3282 |
" * end of comment\n" + |
3283 |
" */\n" + |
3284 |
" void foo() {\n" + |
3285 |
" }\n" + |
3286 |
"\n" + |
3287 |
"}\n" |
3288 |
); |
3289 |
} |
3290 |
public void testBug260011b() throws JavaModelException { |
3291 |
String source = |
3292 |
"public class Test {\n" + |
3293 |
" /**\n" + |
3294 |
" * some comment text here\n" + |
3295 |
" * <pre style=\"font-variant:small-caps;\">\n" + |
3296 |
" * some text\n" + |
3297 |
" * to be styled\n" + |
3298 |
" * a certain way\n" + |
3299 |
" * \n" + |
3300 |
" * </pre>\n" + |
3301 |
" * end of comment\n" + |
3302 |
" */\n" + |
3303 |
" void foo() {}\n" + |
3304 |
"\n" + |
3305 |
"}\n"; |
3306 |
formatSource(source, |
3307 |
"public class Test {\n" + |
3308 |
" /**\n" + |
3309 |
" * some comment text here\n" + |
3310 |
" * \n" + |
3311 |
" * <pre style=\"font-variant:small-caps;\">\n" + |
3312 |
" * some text\n" + |
3313 |
" * to be styled\n" + |
3314 |
" * a certain way\n" + |
3315 |
" * \n" + |
3316 |
" * </pre>\n" + |
3317 |
" * \n" + |
3318 |
" * end of comment\n" + |
3319 |
" */\n" + |
3320 |
" void foo() {\n" + |
3321 |
" }\n" + |
3322 |
"\n" + |
3323 |
"}\n" |
3324 |
); |
3325 |
} |
3326 |
|
3327 |
/** |
3232 |
* @bug 260274: [formatter] * character is removed while formatting block comments |
3328 |
* @bug 260274: [formatter] * character is removed while formatting block comments |
3233 |
* @test Ensure that the comment formatter keep '*' characters while formatting block comments |
3329 |
* @test Ensure that the comment formatter keep '*' characters while formatting block comments |
3234 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=260274" |
3330 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=260274" |