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

Unified Diff: tests/corelib/linked_hash_map_from_iterable_test.dart

Issue 23486007: Change the field and constructor parameter types of NoSuchMethodError to Symbol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments 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
« no previous file with comments | « tests/co19/co19-co19.status ('k') | tests/corelib/map_from_iterable_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/linked_hash_map_from_iterable_test.dart
diff --git a/tests/corelib/linked_hash_map_from_iterable_test.dart b/tests/corelib/linked_hash_map_from_iterable_test.dart
index 02c9029c773b7e6500ffaf4eb47f8d57f4a16ca4..a8de693c1525c28d1b507dda745900a5f7ff9b54 100644
--- a/tests/corelib/linked_hash_map_from_iterable_test.dart
+++ b/tests/corelib/linked_hash_map_from_iterable_test.dart
@@ -101,12 +101,17 @@ void equalElementsTest() {
}
void genericTypeTest() {
- var map = new LinkedHashMap<int, String>.fromIterable([1, 2, 3], value: (x) => '$x');
+ var map = new LinkedHashMap<int, String>.fromIterable(
+ <int>[1, 2, 3], value: (x) => '$x');
Expect.isTrue(map is Map<int, String>);
Expect.isTrue(map is LinkedHashMap<int, String>);
+ map = new LinkedHashMap<String, String>.fromIterable(
+ <int>[1, 2, 3], key: (x) => '$x', value: (x) => '$x');
+ Expect.isTrue(map is Map<String, String>);
+ Expect.isTrue(map is LinkedHashMap<String, String>);
+
// Make sure it is not just LinkedHashMap<dynamic, dynamic>.
- Expect.isFalse(map is LinkedHashMap<String, dynamic>);
+ Expect.isFalse(map is LinkedHashMap<int, dynamic>);
Expect.isFalse(map is LinkedHashMap<dynamic, int>);
}
-
« no previous file with comments | « tests/co19/co19-co19.status ('k') | tests/corelib/map_from_iterable_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698