| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 {'reflectClass(BadEqualityHash).variables[#count]' /// 02: ok | 133 {'reflectClass(BadEqualityHash).variables[#count]' /// 02: ok |
| 134 : reflectClass(BadEqualityHash).variables[#count], /// 02: ok | 134 : reflectClass(BadEqualityHash).variables[#count], /// 02: ok |
| 135 'reflect(new BadEqualityHash()).type.variables[#count]' /// 02: ok | 135 'reflect(new BadEqualityHash()).type.variables[#count]' /// 02: ok |
| 136 : reflect(new BadEqualityHash()).type.variables[#count]}, /// 02: ok | 136 : reflect(new BadEqualityHash()).type.variables[#count]}, /// 02: ok |
| 137 | 137 |
| 138 {'reflectType(Predicate)' : reflectType(Predicate), /// 02: ok | 138 {'reflectType(Predicate)' : reflectType(Predicate), /// 02: ok |
| 139 'thisLibrary.variables[#somePredicate].type' /// 02: ok | 139 'thisLibrary.variables[#somePredicate].type' /// 02: ok |
| 140 : thisLibrary.variables[#somePredicate].type}, /// 02: ok | 140 : thisLibrary.variables[#somePredicate].type}, /// 02: ok |
| 141 | 141 |
| 142 {'reflectType(Predicate).referent' : reflectType(Predicate).referent, /// 0
2: ok | 142 {'reflectType(Predicate).referent' : (reflectType(Predicate) as TypedefMirro
r).referent, /// 02: ok |
| 143 'thisLibrary.variables[#somePredicate].type.referent' /// 02: ok | 143 'thisLibrary.variables[#somePredicate].type.referent' /// 02: ok |
| 144 : thisLibrary.variables[#somePredicate].type.referent}, /// 02: ok | 144 : (thisLibrary.variables[#somePredicate].type as TypedefMirror).referent
}, /// 02: ok |
| 145 | 145 |
| 146 {'reflectClass(A).typeVariables.single' /// 02: ok | 146 {'reflectClass(A).typeVariables.single' /// 02: ok |
| 147 : reflectClass(A).typeVariables.single, /// 02: ok | 147 : reflectClass(A).typeVariables.single, /// 02: ok |
| 148 'reflect(new A<int>()).type.originalDeclaration.typeVariables.single' ///
02: ok | 148 'reflect(new A<int>()).type.originalDeclaration.typeVariables.single' ///
02: ok |
| 149 : reflect(new A<int>()).type.originalDeclaration.typeVariables.single},
/// 02: ok | 149 : reflect(new A<int>()).type.originalDeclaration.typeVariables.single},
/// 02: ok |
| 150 | 150 |
| 151 {'currentMirrorSystem()' : currentMirrorSystem()}, | 151 {'currentMirrorSystem()' : currentMirrorSystem()}, |
| 152 | 152 |
| 153 {'currentMirrorSystem().isolate' : currentMirrorSystem().isolate}, | 153 {'currentMirrorSystem().isolate' : currentMirrorSystem().isolate}, |
| 154 | 154 |
| 155 {'thisLibrary' : thisLibrary, | 155 {'thisLibrary' : thisLibrary, |
| 156 'reflectClass(A).owner' : reflectClass(A).owner, | 156 'reflectClass(A).owner' : reflectClass(A).owner, |
| 157 'reflectClass(B).owner' : reflectClass(B).owner, | 157 'reflectClass(B).owner' : reflectClass(B).owner, |
| 158 'reflect(new A()).type.owner' : reflect(new A()).type.owner, | 158 'reflect(new A()).type.owner' : reflect(new A()).type.owner, |
| 159 'reflect(new B()).type.owner' : reflect(new B()).type.owner}, | 159 'reflect(new B()).type.owner' : reflect(new B()).type.owner}, |
| 160 ]); | 160 ]); |
| 161 } | 161 } |
| OLD | NEW |