| 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 // Dart test program for testing arrays. | 4 // Dart test program for testing arrays. |
| 5 | 5 |
| 6 class ListTest { | 6 class ListTest { |
| 7 static void TestIterator() { | 7 static void TestIterator() { |
| 8 List<int> a = new List<int>(10); | 8 List<int> a = new List<int>(10); |
| 9 int count = 0; | 9 int count = 0; |
| 10 | 10 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 exceptionCaught = true; | 146 exceptionCaught = true; |
| 147 } | 147 } |
| 148 Expect.equals(0, list.length); | 148 Expect.equals(0, list.length); |
| 149 Expect.equals(true, exceptionCaught); | 149 Expect.equals(true, exceptionCaught); |
| 150 } | 150 } |
| 151 } | 151 } |
| 152 | 152 |
| 153 main() { | 153 main() { |
| 154 ListTest.testMain(); | 154 ListTest.testMain(); |
| 155 } | 155 } |
| OLD | NEW |