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

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

Issue 24481002: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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/processor/CollectionSemanticProcessorTest.java
diff --git a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/CollectionSemanticProcessorTest.java b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/CollectionSemanticProcessorTest.java
index 267a9c6ed4fd0e508dcdf165f1b631194857ea15..778d3c6ec4e8fba4a0e236b7b6897cf2e81345b9 100644
--- a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/CollectionSemanticProcessorTest.java
+++ b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/CollectionSemanticProcessorTest.java
@@ -376,6 +376,32 @@ public class CollectionSemanticProcessorTest extends SemanticProcessorTest {
"}");
}
+ public void test_List_containsAll() throws Exception {
+ translateSingleFile(
+ "// filler filler filler filler filler filler filler filler filler filler",
+ "package test;",
+ "import java.util.List;",
+ "import java.util.ArrayList;",
+ "public class Test {",
+ " public void testA(List<String> items, List<String> c) {",
+ " items.containsAll(c);",
+ " }",
+ " public void testB(ArrayList<String> items, List<String> c) {",
+ " items.containsAll(c);",
+ " }",
+ "}");
+ runProcessor();
+ assertFormattedSource(
+ "class Test {",
+ " void testA(List<String> items, List<String> c) {",
+ " javaCollectionContainsAll(items, c);",
+ " }",
+ " void testB(List<String> items, List<String> c) {",
+ " javaCollectionContainsAll(items, c);",
+ " }",
+ "}");
+ }
+
public void test_List_get() throws Exception {
translateSingleFile(
"// filler filler filler filler filler filler filler filler filler filler",

Powered by Google App Engine
This is Rietveld 408576698