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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 class Type {} | 272 class Type {} |
273 class Function {} | 273 class Function {} |
274 class List { | 274 class List { |
275 List([int length]); | 275 List([int length]); |
276 } | 276 } |
277 abstract class Map {} | 277 abstract class Map {} |
278 class Closure {} | 278 class Closure {} |
279 class Null {} | 279 class Null {} |
280 class Dynamic_ {} | 280 class Dynamic_ {} |
281 class StackTrace {} | 281 class StackTrace {} |
282 bool identical(Object a, Object b) {}'''; | 282 bool identical(Object a, Object b) {} |
| 283 const proxy = 0;'''; |
283 | 284 |
284 const String INTERCEPTORSLIB_WITH_MEMBERS = r''' | 285 const String INTERCEPTORSLIB_WITH_MEMBERS = r''' |
285 class Interceptor { | 286 class Interceptor { |
286 toString() {} | 287 toString() {} |
287 bool operator==(other) => identical(this, other); | 288 bool operator==(other) => identical(this, other); |
288 noSuchMethod(im) { throw im; } | 289 noSuchMethod(im) { throw im; } |
289 } | 290 } |
290 abstract class JSIndexable { | 291 abstract class JSIndexable { |
291 get length; | 292 get length; |
292 } | 293 } |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 break; | 383 break; |
383 } | 384 } |
384 } | 385 } |
385 | 386 |
386 | 387 |
387 main() { | 388 main() { |
388 for (int i = 0; i < TESTS.length; i += 2) { | 389 for (int i = 0; i < TESTS.length; i += 2) { |
389 expect(TESTS[i], TESTS[i + 1]); | 390 expect(TESTS[i], TESTS[i + 1]); |
390 } | 391 } |
391 } | 392 } |
OLD | NEW |