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

Side by Side Diff: tests/corelib_2/list_fill_range_test.dart

Issue 2994543002: Migrated test block 13 to Dart 2.0. (Closed)
Patch Set: Address Bob's nits 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 unified diff | Download patch
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:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 import "dart:collection"; 6 import "dart:collection";
7 7
8 test(List list, int start, int end, [fillValue]) { 8 test(List list, int start, int end, [fillValue]) {
9 List copy = list.toList(); 9 List copy = list.toList();
10 list.fillRange(start, end, fillValue); 10 list.fillRange(start, end, fillValue);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 expectUE(() => test(const [1, 2, 3], 1, 4)); 71 expectUE(() => test(const [1, 2, 3], 1, 4));
72 } 72 }
73 73
74 void expectRE(void f()) { 74 void expectRE(void f()) {
75 Expect.throws(f, (e) => e is RangeError); 75 Expect.throws(f, (e) => e is RangeError);
76 } 76 }
77 77
78 void expectUE(void f()) { 78 void expectUE(void f()) {
79 Expect.throws(f, (e) => e is UnsupportedError); 79 Expect.throws(f, (e) => e is UnsupportedError);
80 } 80 }
OLDNEW
« no previous file with comments | « tests/corelib_2/list_contains_argument_order_test.dart ('k') | tests/corelib_2/list_filled_type_argument_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698