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

Unified Diff: tests/standalone_2/float_array_test.dart

Issue 2984363004: Migrate first block of tests in standalone to standalone_2 (Closed)
Patch Set: Remove Expect.throws Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone_2/float_array_static_test.dart ('k') | tests/standalone_2/fragmentation_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone_2/float_array_test.dart
diff --git a/tests/standalone/float_array_test.dart b/tests/standalone_2/float_array_test.dart
similarity index 82%
rename from tests/standalone/float_array_test.dart
rename to tests/standalone_2/float_array_test.dart
index bf4588af47cd19d6f67a7b23c6523d6aa6417b40..5a764e822b27ce8104061308d8953dddeff3f158 100644
--- a/tests/standalone/float_array_test.dart
+++ b/tests/standalone_2/float_array_test.dart
@@ -70,32 +70,12 @@ void testIndexOf32() {
for (int i = 0; i < list.length; i++) {
list[i] = i + 10.0;
}
- Expect.equals(0, list.indexOf(10));
- Expect.equals(5, list.indexOf(15));
- Expect.equals(9, list.indexOf(19));
- Expect.equals(-1, list.indexOf(20));
-
- list = new Float32List(10);
- for (int i = 0; i < list.length; i++) {
- list[i] = i + 10.0;
- }
Expect.equals(0, list.indexOf(10.0));
Expect.equals(5, list.indexOf(15.0));
Expect.equals(9, list.indexOf(19.0));
Expect.equals(-1, list.indexOf(20.0));
}
-void testBadValues32() {
- var list = new Float32List(10);
- list[0] = 2.0;
- Expect.throws(() {
- list[0] = 2;
- });
- Expect.throws(() {
- list[0] = "hello";
- });
-}
-
void testCreateFloat64Array() {
Float64List floatArray;
@@ -154,32 +134,12 @@ void testIndexOf64() {
for (int i = 0; i < list.length; i++) {
list[i] = i + 10.0;
}
- Expect.equals(0, list.indexOf(10));
- Expect.equals(5, list.indexOf(15));
- Expect.equals(9, list.indexOf(19));
- Expect.equals(-1, list.indexOf(20));
-
- list = new Float64List(10);
- for (int i = 0; i < list.length; i++) {
- list[i] = i + 10.0;
- }
Expect.equals(0, list.indexOf(10.0));
Expect.equals(5, list.indexOf(15.0));
Expect.equals(9, list.indexOf(19.0));
Expect.equals(-1, list.indexOf(20.0));
}
-void testBadValues64() {
- var list = new Float64List(10);
- list[0] = 2.0;
- Expect.throws(() {
- list[0] = 2;
- });
- Expect.throws(() {
- list[0] = "hello";
- });
-}
-
storeIt32(Float32List a, int index, value) {
a[index] = value;
}
@@ -216,9 +176,6 @@ main() {
testPolymorphicLoad(f32x4);
}
- // These two take a long time in checked mode.
- testBadValues32();
- testBadValues64();
// Check optimized (inlined) version of []=
Expect.throws(() {
storeIt32(a32, 1, 2);
« no previous file with comments | « tests/standalone_2/float_array_static_test.dart ('k') | tests/standalone_2/fragmentation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698