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

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

Issue 2992833002: Migrated test block 15 to Dart 2.0. (Closed)
Patch Set: 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) 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 613 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

Powered by Google App Engine
This is Rietveld 408576698