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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ExtractUtilsTest.java

Issue 10894008: Issue 4770. Infer type only constant List/Map literals (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ExtractUtilsTest.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ExtractUtilsTest.java b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ExtractUtilsTest.java
index abd5af7953a7b3f49e9173383fd45826857b3b07..e773256182466d3c4de048ff7eb4bed0dffca1a8 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ExtractUtilsTest.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ExtractUtilsTest.java
@@ -340,7 +340,7 @@ public final class ExtractUtilsTest extends AbstractDartTest {
}
public void test_getType_typedLiteral_List_noTypeArgument() throws Exception {
- assertTypeSimple("List<int>", "[1, 2, 3]");
+ assertTypeSimple("List<int>", "const [1, 2, 3]");
}
public void test_getType_typedLiteral_List_withTypeArgument() throws Exception {
@@ -348,7 +348,7 @@ public final class ExtractUtilsTest extends AbstractDartTest {
}
public void test_getType_typedLiteral_Map_noTypeArgument() throws Exception {
- assertTypeSimple("Map<String, int>", "{'a' : 1, 'b' : 2, 'c' : 3}");
+ assertTypeSimple("Map<String, int>", "const {'a' : 1, 'b' : 2, 'c' : 3}");
}
public void test_getType_typedLiteral_Map_withTypeArgument() throws Exception {
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698