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

Unified Diff: tests/corelib_2/json_map_test.dart

Issue 2996513002: Migrated test block 12 to Dart 2.0. (Closed)
Patch Set: Created 3 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/corelib_2/iterable_tostring_test.dart ('k') | tests/corelib_strong/corelib_strong.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib_2/json_map_test.dart
diff --git a/tests/corelib_strong/json_map_test.dart b/tests/corelib_2/json_map_test.dart
similarity index 96%
rename from tests/corelib_strong/json_map_test.dart
rename to tests/corelib_2/json_map_test.dart
index e4d46eecbed67e7c04de73ea1bdbeb6794e1d3d1..bb47d2d3a11d936d6f5df0cf9a006450aa6f7c06 100644
--- a/tests/corelib_strong/json_map_test.dart
+++ b/tests/corelib_2/json_map_test.dart
@@ -53,7 +53,6 @@ void test(bool revive) {
testToString();
testConcurrentModifications();
testType();
- testNonStringKeys();
testClear();
testListEntry();
@@ -307,16 +306,9 @@ void testType() {
Expect.isTrue(jsonify({}) is HashMap<String, dynamic>);
Expect.isTrue(jsonify({}) is LinkedHashMap<String, dynamic>);
- Expect.isTrue(jsonify({}) is Map<int, dynamic>);
- Expect.isTrue(jsonify({}) is HashMap<int, dynamic>);
- Expect.isTrue(jsonify({}) is LinkedHashMap<int, dynamic>);
-}
-
-void testNonStringKeys() {
- Map map = jsonify({});
- map[1] = 2;
- Expect.equals(1, map.length);
- Expect.equals(2, map[1]);
+ Expect.isFalse(jsonify({}) is Map<int, dynamic>);
+ Expect.isFalse(jsonify({}) is HashMap<int, dynamic>);
+ Expect.isFalse(jsonify({}) is LinkedHashMap<int, dynamic>);
}
void testClear() {
« no previous file with comments | « tests/corelib_2/iterable_tostring_test.dart ('k') | tests/corelib_strong/corelib_strong.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698