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

Side by Side Diff: tests/corelib/list_ungrowable_fillRange_test.dart

Issue 18547004: fix type in test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 'package:expect/expect.dart'; 5 import 'package:expect/expect.dart';
6 import 'dart:typed_data'; 6 import 'dart:typed_data';
7 7
8 main() { 8 main() {
9 testFloat32FillRange(); 9 testFloat32FillRange();
10 testFloat64FillRange(); 10 testFloat64FillRange();
11 testInt8FillRange(); 11 testInt8FillRange();
12 testInt16FillRange(); 12 testInt16FillRange();
13 testInt32FillRange(); 13 testInt32FillRange();
14 testUint8FillRange(); 14 testUint8FillRange();
15 testUint16FillRange(); 15 testUint16FillRange();
16 testUint32FillRange(); 16 testUint32FillRange();
17 testUint8ClampedFillRange(); 17 testUint8ClampedFillRange();
18 18
19 } 19 }
20 20
21 void testFloat32FillRange() { 21 void testFloat32FillRange() {
22 Float32List list = new Float32List(4); 22 Float32List list = new Float32List(4);
23 list.fillRange(0, 4, 0); 23 list.fillRange(0, 4, 0.0);
24 Expect.listEquals([0, 0, 0, 0], list); 24 Expect.listEquals([0, 0, 0, 0], list);
25 list.fillRange(0, 0, -6); 25 list.fillRange(0, 0, -6.0);
26 Expect.listEquals([0, 0, 0, 0], list); 26 Expect.listEquals([0, 0, 0, 0], list);
27 list.fillRange(4, 4, 6); 27 list.fillRange(4, 4, 6.0);
28 Expect.listEquals([0, 0, 0, 0], list); 28 Expect.listEquals([0, 0, 0, 0], list);
29 list.fillRange(1, 3, -6); 29 list.fillRange(1, 3, -6.0);
30 Expect.listEquals([0, -6, -6, 0], list); 30 Expect.listEquals([0, -6, -6, 0], list);
31 } 31 }
32 32
33 void testFloat64FillRange() { 33 void testFloat64FillRange() {
34 Float64List list = new Float64List(4); 34 Float64List list = new Float64List(4);
35 list.fillRange(0, 4, 0); 35 list.fillRange(0, 4, 0.0);
36 Expect.listEquals([0, 0, 0, 0], list); 36 Expect.listEquals([0, 0, 0, 0], list);
37 list.fillRange(0, 0, -6); 37 list.fillRange(0, 0, -6.0);
38 Expect.listEquals([0, 0, 0, 0], list); 38 Expect.listEquals([0, 0, 0, 0], list);
39 list.fillRange(4, 4, -6); 39 list.fillRange(4, 4, -6.0);
40 Expect.listEquals([0, 0, 0, 0], list); 40 Expect.listEquals([0, 0, 0, 0], list);
41 list.fillRange(1, 3, -6); 41 list.fillRange(1, 3, -6.0);
42 Expect.listEquals([0, -6, -6, 0], list); 42 Expect.listEquals([0, -6, -6, 0], list);
43 } 43 }
44 44
45 void testInt8FillRange() { 45 void testInt8FillRange() {
46 Int8List list = new Int8List(4); 46 Int8List list = new Int8List(4);
47 list.fillRange(0, 4, 0); 47 list.fillRange(0, 4, 0);
48 Expect.listEquals([0, 0, 0, 0], list); 48 Expect.listEquals([0, 0, 0, 0], list);
49 list.fillRange(0, 0, -6); 49 list.fillRange(0, 0, -6);
50 Expect.listEquals([0, 0, 0, 0], list); 50 Expect.listEquals([0, 0, 0, 0], list);
51 list.fillRange(4, 4, 6); 51 list.fillRange(4, 4, 6);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 Uint8ClampedList list = new Uint8ClampedList(4); 118 Uint8ClampedList list = new Uint8ClampedList(4);
119 list.fillRange(0, 4, 0); 119 list.fillRange(0, 4, 0);
120 Expect.listEquals([0, 0, 0, 0], list); 120 Expect.listEquals([0, 0, 0, 0], list);
121 list.fillRange(0, 0, 6); 121 list.fillRange(0, 0, 6);
122 Expect.listEquals([0, 0, 0, 0], list); 122 Expect.listEquals([0, 0, 0, 0], list);
123 list.fillRange(4, 4, 6); 123 list.fillRange(4, 4, 6);
124 Expect.listEquals([0, 0, 0, 0], list); 124 Expect.listEquals([0, 0, 0, 0], list);
125 list.fillRange(1, 3, 6); 125 list.fillRange(1, 3, 6);
126 Expect.listEquals([0, 6, 6, 0], list); 126 Expect.listEquals([0, 6, 6, 0], list);
127 } 127 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698