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

Unified Diff: tests/html/typed_arrays_5_test.dart

Issue 13845015: Update 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 | « tests/html/typed_arrays_1_test.dart ('k') | tests/html/typed_arrays_range_checks_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/typed_arrays_5_test.dart
diff --git a/tests/html/typed_arrays_5_test.dart b/tests/html/typed_arrays_5_test.dart
index 62e79983f0b3a02d6c4fd344377751c17ec6604f..3127eeeae83ad7601fee01da25d27da13f1925bc 100644
--- a/tests/html/typed_arrays_5_test.dart
+++ b/tests/html/typed_arrays_5_test.dart
@@ -18,7 +18,7 @@ main() {
test('filter_dynamic', () {
var a = new Float32List(1024);
for (int i = 0; i < a.length; i++) {
- a[i] = i;
+ a[i] = i.toDouble();
}
expect(a.where((x) => x >= 1000).length, equals(24));
@@ -27,7 +27,7 @@ main() {
test('filter_typed', () {
Float32List a = new Float32List(1024);
for (int i = 0; i < a.length; i++) {
- a[i] = i;
+ a[i] = i.toDouble();
}
expect(a.where((x) => x >= 1000).length, equals(24));
« no previous file with comments | « tests/html/typed_arrays_1_test.dart ('k') | tests/html/typed_arrays_range_checks_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698