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

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

Issue 23852002: java2dart improvements and new analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 e92d879e38285c79cc5a491377066716447bdec5..6b00ae5f01edc076552883a53ed0e6e342cdb4c4 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
@@ -239,19 +239,10 @@ public class SyntaxTranslatorTest extends AbstractSemanticTest {
assertDartSource(
"abstract class I {",
"}",
- "class Direction implements Enum<Direction>, I {",
+ "class Direction extends Enum<Direction> implements I {",
" static final List<Direction> values = [];",
- " ",
- " /// The name of this enum constant, as declared in the enum declaration.",
- " final String name;",
- " ",
- " /// The position in the enum declaration.",
- " final int ordinal;",
- " Direction.jtd_constructor_0_decl(this.name, this.ordinal) {",
+ " Direction.jtd_constructor_0_decl(String name, int ordinal) : super(name, ordinal) {",
" }",
- " int compareTo(Direction other) => ordinal - other.ordinal;",
- " int hashCode => ordinal;",
- " String toString() => name;",
"}");
}
@@ -1705,17 +1696,22 @@ public class SyntaxTranslatorTest extends AbstractSemanticTest {
public void test_typeWildcard() throws Exception {
parseJava(
"// filler filler filler filler filler filler filler filler filler filler",
+ "import java.util.*;",
"public class A {",
" void test() {",
" List<?> v1;",
" List<? extends String> v2;",
+ " Map<?, String> v3;",
+ " Map<?, ?> v4;",
" }",
"}");
assertDartSource(//
"class A {",
" void test() {",
- " List<Object> v1;",
+ " List v1;",
" List<String> v2;",
+ " Map<dynamic, String> v3;",
+ " Map v4;",
" }",
"}");
}

Powered by Google App Engine
This is Rietveld 408576698