| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // Dart test program for testing native float arrays. | 5 // Dart test program for testing native float arrays. | 
| 6 | 6 | 
| 7 // VMOptions=--optimization_counter_threshold=10 | 7 // VMOptions=--optimization_counter_threshold=10 --no-background_compilation | 
| 8 | 8 | 
| 9 // Library tag to be able to run in html test framework. | 9 // Library tag to be able to run in html test framework. | 
| 10 library FloatArrayTest; | 10 library FloatArrayTest; | 
| 11 | 11 | 
| 12 import "package:expect/expect.dart"; | 12 import "package:expect/expect.dart"; | 
| 13 import 'dart:typed_data'; | 13 import 'dart:typed_data'; | 
| 14 | 14 | 
| 15 void testCreateFloat32Array() { | 15 void testCreateFloat32Array() { | 
| 16   Float32List floatArray; | 16   Float32List floatArray; | 
| 17 | 17 | 
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 220   testBadValues32(); | 220   testBadValues32(); | 
| 221   testBadValues64(); | 221   testBadValues64(); | 
| 222   // Check optimized (inlined) version of []= | 222   // Check optimized (inlined) version of []= | 
| 223   Expect.throws(() { | 223   Expect.throws(() { | 
| 224     storeIt32(a32, 1, 2); | 224     storeIt32(a32, 1, 2); | 
| 225   }); | 225   }); | 
| 226   Expect.throws(() { | 226   Expect.throws(() { | 
| 227     storeIt64(a64, 1, 2); | 227     storeIt64(a64, 1, 2); | 
| 228   }); | 228   }); | 
| 229 } | 229 } | 
| OLD | NEW | 
|---|