| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 // This tests uses the multi-test "ok" feature: | 5 // This tests uses the multi-test "ok" feature: |
| 6 // none: Trimmed behaviour. Passing on the VM. | 6 // none: Trimmed behaviour. Passing on the VM. |
| 7 // 01: Trimmed version for dart2js. | 7 // 01: Trimmed version for dart2js. |
| 8 // 02: Full version passing in the VM. | 8 // 02: Full version passing in the VM. |
| 9 // | 9 // |
| 10 // TODO(rmacnak,ahe): Remove multi-test when VM and dart2js are on par. | 10 // TODO(rmacnak,ahe): Remove multi-test when VM and dart2js are on par. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 }); | 51 }); |
| 52 } | 52 } |
| 53 } | 53 } |
| 54 | 54 |
| 55 void subroutine() { | 55 void subroutine() { |
| 56 } | 56 } |
| 57 | 57 |
| 58 main() { | 58 main() { |
| 59 LibraryMirror thisLibrary = | 59 LibraryMirror thisLibrary = |
| 60 currentMirrorSystem() | 60 currentMirrorSystem() |
| 61 .findLibrary(const Symbol('test.class_equality_test')) | 61 .findLibrary(const Symbol('test.class_equality_test')); |
| 62 .single; | |
| 63 | 62 |
| 64 var o1 = new Object(); | 63 var o1 = new Object(); |
| 65 var o2 = new Object(); | 64 var o2 = new Object(); |
| 66 | 65 |
| 67 var badEqualityHash1 = new BadEqualityHash(); | 66 var badEqualityHash1 = new BadEqualityHash(); |
| 68 var badEqualityHash2 = new BadEqualityHash(); | 67 var badEqualityHash2 = new BadEqualityHash(); |
| 69 | 68 |
| 70 checkEquality([ | 69 checkEquality([ |
| 71 {'reflect(o1)' : reflect(o1), | 70 {'reflect(o1)' : reflect(o1), |
| 72 'reflect(o1), again' : reflect(o1)}, | 71 'reflect(o1), again' : reflect(o1)}, |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 151 |
| 153 {'currentMirrorSystem().isolate' : currentMirrorSystem().isolate}, | 152 {'currentMirrorSystem().isolate' : currentMirrorSystem().isolate}, |
| 154 | 153 |
| 155 {'thisLibrary' : thisLibrary, | 154 {'thisLibrary' : thisLibrary, |
| 156 'reflectClass(A).owner' : reflectClass(A).owner, | 155 'reflectClass(A).owner' : reflectClass(A).owner, |
| 157 'reflectClass(B).owner' : reflectClass(B).owner, | 156 'reflectClass(B).owner' : reflectClass(B).owner, |
| 158 'reflect(new A()).type.owner' : reflect(new A()).type.owner, | 157 'reflect(new A()).type.owner' : reflect(new A()).type.owner, |
| 159 'reflect(new B()).type.owner' : reflect(new B()).type.owner}, | 158 'reflect(new B()).type.owner' : reflect(new B()).type.owner}, |
| 160 ]); | 159 ]); |
| 161 } | 160 } |
| OLD | NEW |