| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 byte arrays. | 5 // Dart test program for testing native byte arrays. |
| 6 | 6 |
| 7 void testCreateByteArray() { | 7 void testCreateByteArray() { |
| 8 ByteArray byteArray; | 8 ByteArray byteArray; |
| 9 | 9 |
| 10 byteArray = new ByteArray(0); | 10 byteArray = new ByteArray(0); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 }); | 53 }); |
| 54 } | 54 } |
| 55 | 55 |
| 56 main() { | 56 main() { |
| 57 for (int i = 0; i < 2000; i++) { | 57 for (int i = 0; i < 2000; i++) { |
| 58 testCreateByteArray(); | 58 testCreateByteArray(); |
| 59 testSetRange(); | 59 testSetRange(); |
| 60 testIndexOutOfRange(); | 60 testIndexOutOfRange(); |
| 61 } | 61 } |
| 62 } | 62 } |
| OLD | NEW |