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

Side by Side Diff: tests/corelib_strong/list_test.dart

Issue 2957593002: Spelling fixes e to i. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « tests/corelib/set_test.dart ('k') | tests/corelib_strong/regexp/UC16_test.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 "dart:collection"; 5 import "dart:collection";
6 import "dart:typed_data"; 6 import "dart:typed_data";
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 8
9 void main() { 9 void main() {
10 // Typed lists - fixed length and can only contain integers. 10 // Typed lists - fixed length and can only contain integers.
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 testArgumentError(() => list.sublist(2, 5)); 294 testArgumentError(() => list.sublist(2, 5));
295 testArgumentError(() => list.sublist(4, 2)); 295 testArgumentError(() => list.sublist(4, 2));
296 testArgumentError(() => list.getRange(-1, 2)); 296 testArgumentError(() => list.getRange(-1, 2));
297 testArgumentError(() => list.getRange(-1, 5)); 297 testArgumentError(() => list.getRange(-1, 5));
298 testArgumentError(() => list.getRange(2, 5)); 298 testArgumentError(() => list.getRange(2, 5));
299 testArgumentError(() => list.getRange(4, 2)); 299 testArgumentError(() => list.getRange(4, 2));
300 testArgumentError(() => list.setRange(-1, 2, [1, 2, 3])); 300 testArgumentError(() => list.setRange(-1, 2, [1, 2, 3]));
301 testArgumentError(() => list.setRange(-1, 5, [1, 2, 3, 4, 5, 6])); 301 testArgumentError(() => list.setRange(-1, 5, [1, 2, 3, 4, 5, 6]));
302 testArgumentError(() => list.setRange(2, 5, [1, 2, 3])); 302 testArgumentError(() => list.setRange(2, 5, [1, 2, 3]));
303 testArgumentError(() => list.setRange(4, 2, [1, 2])); 303 testArgumentError(() => list.setRange(4, 2, [1, 2]));
304 // for setAll, end is implictly start + values.length. 304 // for setAll, end is implicitly start + values.length.
305 testArgumentError(() => list.setAll(-1, [])); 305 testArgumentError(() => list.setAll(-1, []));
306 testArgumentError(() => list.setAll(5, [])); 306 testArgumentError(() => list.setAll(5, []));
307 testArgumentError(() => list.setAll(2, [1, 2, 3])); 307 testArgumentError(() => list.setAll(2, [1, 2, 3]));
308 testArgumentError(() => list.fillRange(-1, 2)); 308 testArgumentError(() => list.fillRange(-1, 2));
309 testArgumentError(() => list.fillRange(-1, 5)); 309 testArgumentError(() => list.fillRange(-1, 5));
310 testArgumentError(() => list.fillRange(2, 5)); 310 testArgumentError(() => list.fillRange(2, 5));
311 testArgumentError(() => list.fillRange(4, 2)); 311 testArgumentError(() => list.fillRange(4, 2));
312 } 312 }
313 313
314 void testTypedList(List list) { 314 void testTypedList(List list) {
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 }); 624 });
625 // Not negative. 625 // Not negative.
626 Expect.throws(() { 626 Expect.throws(() {
627 new List.filled(-2, 42); 627 new List.filled(-2, 42);
628 }); 628 });
629 // Not null. 629 // Not null.
630 Expect.throws(() { 630 Expect.throws(() {
631 new List.filled(null, 42); 631 new List.filled(null, 42);
632 }); 632 });
633 } 633 }
OLDNEW
« no previous file with comments | « tests/corelib/set_test.dart ('k') | tests/corelib_strong/regexp/UC16_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698