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

Unified Diff: tests/standalone/float_array_test.dart

Issue 13860006: Fix static type errors in a number of tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
« no previous file with comments | « sdk/lib/io/http.dart ('k') | tests/standalone/io/echo_server_stream_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/float_array_test.dart
diff --git a/tests/standalone/float_array_test.dart b/tests/standalone/float_array_test.dart
index 5a01aa53ec2c614a19c6f750ee83741472ff8830..2fe83a26b48be604f7189318e5178bffa2ea79be 100644
--- a/tests/standalone/float_array_test.dart
+++ b/tests/standalone/float_array_test.dart
@@ -26,7 +26,7 @@ void testCreateFloat32Array() {
void testSetRange32() {
Float32List floatArray = new Float32List(3);
- List<num> list = [10.0, 11.0, 12.0];
+ List<double> list = [10.0, 11.0, 12.0];
floatArray.setRange(0, 3, list);
for (int i = 0; i < 3; i++) {
Expect.equals(10 + i, floatArray[i]);
@@ -49,7 +49,7 @@ void testSetRange32() {
void testIndexOutOfRange32() {
Float32List floatArray = new Float32List(3);
- List<num> list = const [0.0, 1.0, 2.0, 3.0];
+ List<double> list = const [0.0, 1.0, 2.0, 3.0];
Expect.throws(() {
floatArray[5] = 2.0;
@@ -110,7 +110,7 @@ void testCreateFloat64Array() {
void testSetRange64() {
Float64List floatArray = new Float64List(3);
- List<num> list = [10.0, 11.0, 12.0];
+ List<double> list = [10.0, 11.0, 12.0];
floatArray.setRange(0, 3, list);
for (int i = 0; i < 3; i++) {
Expect.equals(10 + i, floatArray[i]);
@@ -133,7 +133,7 @@ void testSetRange64() {
void testIndexOutOfRange64() {
Float64List floatArray = new Float64List(3);
- List<num> list = const [0.0, 1.0, 2.0, 3.0];
+ List<double> list = const [0.0, 1.0, 2.0, 3.0];
Expect.throws(() {
floatArray[5] = 2.0;
« no previous file with comments | « sdk/lib/io/http.dart ('k') | tests/standalone/io/echo_server_stream_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698