Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(516)

Unified Diff: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SyntaxTranslatorTest.java

Issue 624403002: Write end-of-block comments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SyntaxTranslatorTest.java
diff --git a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SyntaxTranslatorTest.java b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SyntaxTranslatorTest.java
index edaf3dbd8e38f25f4d63e01d0cd824ca0197b2e3..6b143595dd84e632179d68d1615eb020bdcd4a60 100644
--- a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SyntaxTranslatorTest.java
+++ b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/SyntaxTranslatorTest.java
@@ -290,6 +290,64 @@ public class SyntaxTranslatorTest extends AbstractSemanticTest {
"}");
}
+ public void test_commentLine_endOfBlock_blockStyle() throws Exception {
+ parseJava(
+ "// filler filler filler filler filler filler filler filler filler filler",
+ "public class A {",
+ " void main() {",
+ " // aaa",
+ " int v = 0;",
+ " /*",
+ " * aaa",
+ " * bbb",
+ " */",
+ " }",
+ "}");
+ assertDartSource(
+ "class A {",
+ " void main() {",
+ " // aaa",
+ " int v = 0;",
+ " /*",
+ " * aaa",
+ " * bbb",
+ " */",
+ " }",
+ "}");
+ }
+
+ public void test_commentLine_endOfBlock_lineStyle() throws Exception {
+ parseJava(
+ "// filler filler filler filler filler filler filler filler filler filler",
+ "public class A {",
+ " void main() {",
+ " // aaa",
+ " int v = 0;",
+ " if (true) {",
+ " // bbb",
+ " } else {",
+ " // ccc",
+ " }",
+ " // ddd",
+ " // eee",
+ " }",
+ "}");
+ assertDartSource(
+ "class A {",
+ " void main() {",
+ " // aaa",
+ " int v = 0;",
+ " if (true) {",
+ " // bbb",
+ " } else {",
+ " // ccc",
+ " }",
+ " // ddd",
+ " // eee",
+ " }",
+ "}");
+ }
+
public void test_constructor() throws Exception {
parseJava(
"// filler filler filler filler filler filler filler filler filler filler",

Powered by Google App Engine
This is Rietveld 408576698