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

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

Issue 243263004: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 685de338e0470f994bf8f76974a1ea33999a4e07..d535000e49aea886ed4f695ac839c62399bd72a8 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
@@ -279,17 +279,24 @@ public class CollectionSemanticProcessorTest extends SemanticProcessorTest {
"// filler filler filler filler filler filler filler filler filler filler",
"package test;",
"import java.util.HashSet;",
+ "import java.util.Collection;",
"public class Test {",
- " public void main() {",
+ " public void testA() {",
" HashSet<String> result = new HashSet<String>(5);",
" }",
+ " public void testB(Collection<String> existing) {",
+ " HashSet<String> result = new HashSet<String>(existing);",
+ " }",
"}");
runProcessor();
assertFormattedSource(//
"class Test {",
- " void main() {",
+ " void testA() {",
" Set<String> result = new Set<String>();",
" }",
+ " void testB(Iterable<String> existing) {",
+ " Set<String> result = new Set<String>.from(existing);",
+ " }",
"}");
}

Powered by Google App Engine
This is Rietveld 408576698