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

Side by Side Diff: pkg/unmodifiable_collection/test/unmodifiable_collection_test.dart

Issue 22284003: pkg: analysis aided cleanup (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nits 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/unittest/test/mirror_matchers_test.dart ('k') | pkg/watcher/lib/src/directory_watcher.dart » ('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 import "package:unmodifiable_collection/unmodifiable_collection.dart"; 5 import "package:unmodifiable_collection/unmodifiable_collection.dart";
6 import "package:unittest/unittest.dart"; 6 import "package:unittest/unittest.dart";
7 7
8 // Test unmodifiable collection views. 8 // Test unmodifiable collection views.
9 // The collections should pass through the operations that are allowed, 9 // The collections should pass through the operations that are allowed,
10 // an throw on the ones that aren't without affecting the original. 10 // an throw on the ones that aren't without affecting the original.
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 436
437 testThrows("$name - removeAt throws", () { 437 testThrows("$name - removeAt throws", () {
438 wrapped.removeAt(0); 438 wrapped.removeAt(0);
439 }); 439 });
440 440
441 testThrows("$name - removeLast throws", () { 441 testThrows("$name - removeLast throws", () {
442 wrapped.removeLast(); 442 wrapped.removeLast();
443 }); 443 });
444 444
445 testThrows("$name - removeWhere throws", () { 445 testThrows("$name - removeWhere throws", () {
446 wrapped.removeWhere((E element) => false); 446 wrapped.removeWhere((element) => false);
447 }); 447 });
448 448
449 testThrows("$name - retainWhere throws", () { 449 testThrows("$name - retainWhere throws", () {
450 wrapped.retainWhere((E element) => true); 450 wrapped.retainWhere((element) => true);
451 }); 451 });
452 452
453 testThrows("$name - removeRange throws", () { 453 testThrows("$name - removeRange throws", () {
454 wrapped.removeRange(0, wrapped.length); 454 wrapped.removeRange(0, wrapped.length);
455 }); 455 });
456 456
457 testThrows("$name - replaceRange throws", () { 457 testThrows("$name - replaceRange throws", () {
458 wrapped.replaceRange(0, wrapped.length, [42]); 458 wrapped.replaceRange(0, wrapped.length, [42]);
459 }); 459 });
460 460
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 }); 620 });
621 621
622 testThrows("$name remove throws", () { 622 testThrows("$name remove throws", () {
623 wrapped.remove(0); 623 wrapped.remove(0);
624 }); 624 });
625 625
626 testThrows("$name clear throws", () { 626 testThrows("$name clear throws", () {
627 wrapped.clear(); 627 wrapped.clear();
628 }); 628 });
629 } 629 }
OLDNEW
« no previous file with comments | « pkg/unittest/test/mirror_matchers_test.dart ('k') | pkg/watcher/lib/src/directory_watcher.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698