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

Unified Diff: test/unmodifiable_collection_test.dart

Issue 1313613004: Release 1.1.2. (Closed) Base URL: git@github.com:dart-lang/collection@master
Patch Set: More fixes. Created 5 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 | « pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unmodifiable_collection_test.dart
diff --git a/test/unmodifiable_collection_test.dart b/test/unmodifiable_collection_test.dart
index 82189abe6087f4728b7af78990eeb46af7a04d0d..6c722d090c15ce028c8efd42ce26d8daaeb2cd71 100644
--- a/test/unmodifiable_collection_test.dart
+++ b/test/unmodifiable_collection_test.dart
@@ -42,21 +42,6 @@ main() {
testUnmodifiableSet(aSet, new UnmodifiableSetView(aSet), "three-42");
aSet = new Set.from([1, 7, 10]);
testUnmodifiableSet(aSet, new UnmodifiableSetView(aSet), "three!42");
-
- Map map = new Map();
- testUnmodifiableMap(map, new UnmodifiableMapView(map), "empty");
- map = new Map()..[0] = 2;
- testUnmodifiableMap(map, new UnmodifiableMapView(map), "single-0");
- map = new Map()..[3] = 2;
- testUnmodifiableMap(map, new UnmodifiableMapView(map), "single!0");
- map = new Map()..[0] = 2
- ..[1] = 1
- ..[2] = 0;
- testUnmodifiableMap(map, new UnmodifiableMapView(map), "three-0");
- map = new Map()..[3] = 2
- ..[1] = 1
- ..[2] = 3;
- testUnmodifiableMap(map, new UnmodifiableMapView(map), "three!0");
}
void testUnmodifiableList(List original, List wrapped, String name) {
@@ -82,12 +67,6 @@ void testUnmodifiableSet(Set original, Set wrapped, String name) {
testNoChangeSet(original, wrapped, name);
}
-void testUnmodifiableMap(Map original, Map wrapped, name) {
- name = "unmodifiable-map-$name";
- testReadMap(original, wrapped, name);
- testNoChangeMap(original, wrapped, name);
-}
-
void testIterable(Iterable original, Iterable wrapped, String name) {
test("$name - any", () {
expect(wrapped.any((x) => true), equals(original.any((x) => true)));
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698