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

Unified Diff: packages/collection/test/queue_list_test.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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
Index: packages/collection/test/queue_list_test.dart
diff --git a/packages/collection/test/queue_list_test.dart b/packages/collection/test/queue_list_test.dart
index cbe518f5db69c885b18458091b0b1554ef898bc7..9e6d19922ededf0bbc27fc05b922ed63d5d505d4 100644
--- a/packages/collection/test/queue_list_test.dart
+++ b/packages/collection/test/queue_list_test.dart
@@ -69,7 +69,8 @@ void main() {
expect(queue, equals([2, 3]));
});
- test("removes an element from the beginning of a queue with an internal "
+ test(
+ "removes an element from the beginning of a queue with an internal "
"gap", () {
var queue = withInternalGap();
expect(queue.removeFirst(), equals(1));
@@ -167,7 +168,8 @@ void main() {
expect(() => queue[-1], throwsRangeError);
});
- test("throws a RangeError if the index is greater than or equal to the "
+ test(
+ "throws a RangeError if the index is greater than or equal to the "
"length", () {
var queue = new QueueList.from([1, 2, 3]);
expect(() => queue[3], throwsRangeError);
@@ -176,7 +178,7 @@ void main() {
group("[]=", () {
test("sets individual entries in the queue", () {
- var queue = new QueueList.from([1, 2, 3]);
+ var queue = new QueueList<dynamic>.from([1, 2, 3]);
queue[0] = "a";
queue[1] = "b";
queue[2] = "c";
@@ -202,7 +204,8 @@ void main() {
}, throwsRangeError);
});
- test("throws a RangeError if the index is greater than or equal to the "
+ test(
+ "throws a RangeError if the index is greater than or equal to the "
"length", () {
var queue = new QueueList.from([1, 2, 3]);
expect(() {
@@ -271,5 +274,5 @@ QueueList withInternalGap() {
/// Returns a matcher that expects that a closure throws a
/// [ConcurrentModificationError].
-final throwsConcurrentModificationError = throwsA(
- new isInstanceOf<ConcurrentModificationError>());
+final throwsConcurrentModificationError =
+ throwsA(new isInstanceOf<ConcurrentModificationError>());
« no previous file with comments | « packages/collection/test/priority_queue_test.dart ('k') | packages/collection/test/typed_wrapper/iterable_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698