Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2015-08-26 18:24:02 +0000
committerMarkus Keller2015-08-26 18:24:02 +0000
commitc4d165337c4f39b38e6e47bd68ace1aa106b0673 (patch)
treeaac28ad81ab989ee90e93dd8201d4e417b57783b
parentf8ebb93b67dd4368d736be48a670cedf6d0b542b (diff)
downloadeclipse.jdt.core-c4d165337c4f39b38e6e47bd68ace1aa106b0673.tar.gz
eclipse.jdt.core-c4d165337c4f39b38e6e47bd68ace1aa106b0673.tar.xz
eclipse.jdt.core-c4d165337c4f39b38e6e47bd68ace1aa106b0673.zip
Bug 474916: [formatter] Formatting GridBagLayout from Java 8 takes too long
-rw-r--r--org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterBugsTests.java39
1 files changed, 21 insertions, 18 deletions
diff --git a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterBugsTests.java b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterBugsTests.java
index 0dbd152015..5cd1598ea8 100644
--- a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterBugsTests.java
+++ b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterBugsTests.java
@@ -11208,26 +11208,29 @@ public void testBug467618() {
);
}
/**
- * @bug 473727: ASCII Art in Javadoc cause hanging Eclipse when formatting
+ * @bug 474916: [formatter] Formatting GridBagLayout from Java 8 takes too long
* @test test that formatting finishes in reasonable time
- * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=473727"
+ * @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=474916"
*/
-public void testBug473727() {
- String source =
- "/**\r\n" +
- " * < \r\n" +
- " * > <p style='color:red'> Test </p> */\r\n" +
- "class A {}";
- formatSource(source,
- "/**\r\n" +
- " * < >\r\n" +
- " * <p style='color:red'>\r\n" +
- " * Test\r\n" +
- " * </p>\r\n" +
- " */\r\n" +
- "class A {\r\n" +
- "}"
- );
+public void testBug474916() {
+ String source =
+ "/**\r\n" +
+ " * < \r\n" +
+ " * > <p style='color:red'> Test </p>\r\n" +
+ " * <a title=\"I like to 'quote' it\" \r\n" +
+ "href = 'http://www.eclipse.org'>Toast</a> */\r\n" +
+ "class A {}";
+ formatSource(source,
+ "/**\r\n" +
+ " * < >\r\n" +
+ " * <p style='color:red'>\r\n" +
+ " * Test\r\n" +
+ " * </p>\r\n" +
+ " * <a title=\"I like to 'quote' it\" href = 'http://www.eclipse.org'>Toast</a>\r\n" +
+ " */\r\n" +
+ "class A {\r\n" +
+ "}"
+ );
}
/**
* https://bugs.eclipse.org/474918 - [formatter] doesn't align fields in declarations of annotations, enums and anonymous classes

Back to the top