| 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 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
| 6 import 'compiler_helper.dart'; | 6 import 'compiler_helper.dart'; |
| 7 | 7 |
| 8 const int REMOVED = 0; | 8 const int REMOVED = 0; |
| 9 const int ABOVE_ZERO = 1; | 9 const int ABOVE_ZERO = 1; |
| 10 const int BELOW_LENGTH = 2; | 10 const int BELOW_LENGTH = 2; |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 class List { | 215 class List { |
| 216 List([int length]); | 216 List([int length]); |
| 217 } | 217 } |
| 218 abstract class Map {} | 218 abstract class Map {} |
| 219 class Closure {} | 219 class Closure {} |
| 220 class Null {} | 220 class Null {} |
| 221 class Dynamic_ {} | 221 class Dynamic_ {} |
| 222 bool identical(Object a, Object b) {}'''; | 222 bool identical(Object a, Object b) {}'''; |
| 223 | 223 |
| 224 const String INTERCEPTORSLIB_WITH_MEMBERS = r''' | 224 const String INTERCEPTORSLIB_WITH_MEMBERS = r''' |
| 225 class JSIndexable {} | 225 abstract class JSIndexable { |
| 226 get length; |
| 227 } |
| 226 class JSArray implements JSIndexable { | 228 class JSArray implements JSIndexable { |
| 227 var length; | 229 var length; |
| 228 var removeLast; | 230 var removeLast; |
| 229 operator[] (_) {} | 231 operator[] (_) {} |
| 230 } | 232 } |
| 231 class JSMutableArray extends JSArray {} | 233 class JSMutableArray extends JSArray {} |
| 232 class JSFixedArray extends JSMutableArray {} | 234 class JSFixedArray extends JSMutableArray {} |
| 233 class JSExtendableArray extends JSMutableArray {} | 235 class JSExtendableArray extends JSMutableArray {} |
| 234 class JSString implements JSIndexable { | 236 class JSString implements JSIndexable { |
| 235 var length; | 237 var length; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 break; | 305 break; |
| 304 } | 306 } |
| 305 } | 307 } |
| 306 | 308 |
| 307 | 309 |
| 308 main() { | 310 main() { |
| 309 for (int i = 0; i < TESTS.length; i += 2) { | 311 for (int i = 0; i < TESTS.length; i += 2) { |
| 310 expect(TESTS[i], TESTS[i + 1]); | 312 expect(TESTS[i], TESTS[i + 1]); |
| 311 } | 313 } |
| 312 } | 314 } |
| OLD | NEW |