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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 class Object {} | 212 class Object {} |
213 class Type {} | 213 class Type {} |
214 class Function {} | 214 class Function {} |
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 class StackTrace {} |
222 bool identical(Object a, Object b) {}'''; | 223 bool identical(Object a, Object b) {}'''; |
223 | 224 |
224 const String INTERCEPTORSLIB_WITH_MEMBERS = r''' | 225 const String INTERCEPTORSLIB_WITH_MEMBERS = r''' |
225 class Interceptor { | 226 class Interceptor { |
226 toString() {} | 227 toString() {} |
227 bool operator==(other) => identical(this, other); | 228 bool operator==(other) => identical(this, other); |
228 noSuchMethod(im) { throw im; } | 229 noSuchMethod(im) { throw im; } |
229 } | 230 } |
230 abstract class JSIndexable { | 231 abstract class JSIndexable { |
231 get length; | 232 get length; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 break; | 312 break; |
312 } | 313 } |
313 } | 314 } |
314 | 315 |
315 | 316 |
316 main() { | 317 main() { |
317 for (int i = 0; i < TESTS.length; i += 2) { | 318 for (int i = 0; i < TESTS.length; i += 2) { |
318 expect(TESTS[i], TESTS[i + 1]); | 319 expect(TESTS[i], TESTS[i + 1]); |
319 } | 320 } |
320 } | 321 } |
OLD | NEW |