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

Unified Diff: tests/compiler/dart2js/type_representation_test.dart

Issue 24615003: Add DartType.treatAsRaw to treat List<dynamic> as List in the backend. (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
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_representation_test.dart
diff --git a/tests/compiler/dart2js/type_representation_test.dart b/tests/compiler/dart2js/type_representation_test.dart
index 5e6b7c5e2885ebd95e1c949c08a5d55b3214f2a3..e22297120c8e03d7e6b3e54afce52ef664cb77d7 100644
--- a/tests/compiler/dart2js/type_representation_test.dart
+++ b/tests/compiler/dart2js/type_representation_test.dart
@@ -94,7 +94,7 @@ void testTypeRepresentations() {
// List
expect('$List_rep', List_.rawType);
// List<dynamic>
- expect('[$List_rep, null]', instantiate(List_, [dynamic_]));
+ expect('$List_rep', instantiate(List_, [dynamic_]));
// List<int>
expect('[$List_rep, $int_rep]', instantiate(List_, [int_]));
// List<Typedef>
@@ -102,11 +102,12 @@ void testTypeRepresentations() {
instantiate(List_, [Typedef_]));
// Map<K,V>
- expect('[$Map_rep, $Map_K_rep, $Map_V_rep]', Map_.computeType(env.compiler));
+ expect('[$Map_rep, $Map_K_rep, $Map_V_rep]',
+ Map_.computeType(env.compiler));
// Map
expect('$Map_rep', Map_.rawType);
// Map<dynamic,dynamic>
- expect('[$Map_rep, null, null]', instantiate(Map_, [dynamic_, dynamic_]));
+ expect('$Map_rep', instantiate(Map_, [dynamic_, dynamic_]));
// Map<int,String>
expect('[$Map_rep, $int_rep, $String_rep]',
instantiate(Map_, [int_, String_]));
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698