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

Side by Side Diff: pkg/collection/test/wrapper_test.dart

Issue 113883002: Create associated packages for the dart:collection and dart:async libs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update SDK dependency to 1.0.0 Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/collection/test/unmodifiable_collection_test.dart ('k') | pkg/collection_helpers/README.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// Tests wrapper utilities. 5 /// Tests wrapper utilities.
6 6
7 import "dart:collection"; 7 import "dart:collection";
8 import "package:collection_helpers/all.dart"; 8 import "package:collection/collection.dart";
9 import "package:unittest/unittest.dart"; 9 import "package:unittest/unittest.dart";
10 10
11 // Test that any member access/call on the wrapper object is equal to 11 // Test that any member access/call on the wrapper object is equal to
12 // an expected access on the wrapped object. 12 // an expected access on the wrapped object.
13 // This is implemented by capturing accesses using noSuchMethod and comparing 13 // This is implemented by capturing accesses using noSuchMethod and comparing
14 // them to expected accesses captured previously. 14 // them to expected accesses captured previously.
15 15
16 // Compare two Invocations for having equal type and arguments. 16 // Compare two Invocations for having equal type and arguments.
17 void testInvocations(Invocation i1, Invocation i2) { 17 void testInvocations(Invocation i1, Invocation i2) {
18 String name = "${i1.memberName}"; 18 String name = "${i1.memberName}";
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 }); 246 });
247 247
248 test("Queue", () { 248 test("Queue", () {
249 testQueue(new QueueExpector()); 249 testQueue(new QueueExpector());
250 }); 250 });
251 251
252 test("Map", () { 252 test("Map", () {
253 testMap(new MapExpector()); 253 testMap(new MapExpector());
254 }); 254 });
255 } 255 }
OLDNEW
« no previous file with comments | « pkg/collection/test/unmodifiable_collection_test.dart ('k') | pkg/collection_helpers/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698