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 // VMOptions=--optimization_counter_threshold=10 --disable_alloc_stubs_after_gc | 4 // VMOptions=--optimization_counter_threshold=10 --disable_alloc_stubs_after_gc
--no-background-compilation |
5 | 5 |
6 // Library tag to be able to run in html test framework. | 6 // Library tag to be able to run in html test framework. |
7 library byte_array_test; | 7 library byte_array_test; |
8 | 8 |
9 import "package:expect/expect.dart"; | 9 import "package:expect/expect.dart"; |
10 import 'dart:typed_data'; | 10 import 'dart:typed_data'; |
11 | 11 |
12 class ByteArrayTest { | 12 class ByteArrayTest { |
13 static testInt8ListImpl(Int8List array) { | 13 static testInt8ListImpl(Int8List array) { |
14 Expect.isTrue(array is List<int>); | 14 Expect.isTrue(array is List<int>); |
(...skipping 2363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2378 | 2378 |
2379 testByteList(); | 2379 testByteList(); |
2380 } | 2380 } |
2381 } | 2381 } |
2382 | 2382 |
2383 main() { | 2383 main() { |
2384 for (var i=0; i<20; i++) { | 2384 for (var i=0; i<20; i++) { |
2385 ByteArrayTest.testMain(); | 2385 ByteArrayTest.testMain(); |
2386 } | 2386 } |
2387 } | 2387 } |
OLD | NEW |