| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 {'reflect(3+4)' : reflect(3+4), | 92 {'reflect(3+4)' : reflect(3+4), |
| 93 'reflect(6+1)' : reflect(6+1)}, | 93 'reflect(6+1)' : reflect(6+1)}, |
| 94 | 94 |
| 95 {'reflect("foo")' : reflect("foo"), | 95 {'reflect("foo")' : reflect("foo"), |
| 96 'reflect("foo"), again' : reflect("foo")}, | 96 'reflect("foo"), again' : reflect("foo")}, |
| 97 | 97 |
| 98 {'currentMirrorSystem().voidType' : currentMirrorSystem().voidType}, /// 01
: ok | 98 {'currentMirrorSystem().voidType' : currentMirrorSystem().voidType}, /// 01
: ok |
| 99 | 99 |
| 100 {'currentMirrorSystem().voidType' : currentMirrorSystem().voidType, /// 02
: ok | 100 {'currentMirrorSystem().voidType' : currentMirrorSystem().voidType, /// 02
: ok |
| 101 'thisLibrary.functions[#subroutine].returnType' : /// 02
: ok | 101 'thisLibrary.functions[#subroutine].returnType' : /// 02
: ok |
| 102 thisLibrary.functions[const Symbol('subroutine')].returnType}, /// 02
: ok | 102 thisLibrary.functions[#subroutine].returnType}, /// 02: ok |
| 103 | 103 |
| 104 {'currentMirrorSystem().dynamicType' : currentMirrorSystem().dynamicType, | 104 {'currentMirrorSystem().dynamicType' : currentMirrorSystem().dynamicType, |
| 105 'thisLibrary.functions[#main].returnType' : | 105 'thisLibrary.functions[#main].returnType' : |
| 106 thisLibrary.functions[const Symbol('main')].returnType}, | 106 thisLibrary.functions[#main].returnType}, |
| 107 | 107 |
| 108 {'reflectClass(A)' : reflectClass(A), | 108 {'reflectClass(A)' : reflectClass(A), |
| 109 'thisLibrary.classes[#A]' : thisLibrary.classes[const Symbol('A')], | 109 'thisLibrary.classes[#A]' : thisLibrary.classes[#A], |
| 110 'reflect(new A<int>()).type.originalDeclaration' : | 110 'reflect(new A<int>()).type.originalDeclaration' : |
| 111 reflect(new A<int>()).type.originalDeclaration}, | 111 reflect(new A<int>()).type.originalDeclaration}, |
| 112 | 112 |
| 113 {'reflectClass(B).superclass' : reflectClass(B).superclass, /// 02: ok | 113 {'reflectClass(B).superclass' : reflectClass(B).superclass, /// 02: ok |
| 114 'reflect(new A<int>()).type' : reflect(new A<int>()).type}, /// 02: ok | 114 'reflect(new A<int>()).type' : reflect(new A<int>()).type}, /// 02: ok |
| 115 | 115 |
| 116 {'reflectClass(B)' : reflectClass(B), | 116 {'reflectClass(B)' : reflectClass(B), |
| 117 'thisLibrary.classes[#B]' : thisLibrary.classes[const Symbol('B')], | 117 'thisLibrary.classes[#B]' : thisLibrary.classes[#B], |
| 118 'reflect(new B()).type' : reflect(new B()).type}, | 118 'reflect(new B()).type' : reflect(new B()).type}, |
| 119 | 119 |
| 120 {'thisLibrary' : thisLibrary, | 120 {'thisLibrary' : thisLibrary, |
| 121 'reflectClass(A).owner' : reflectClass(A).owner, | 121 'reflectClass(A).owner' : reflectClass(A).owner, |
| 122 'reflectClass(B).owner' : reflectClass(B).owner, | 122 'reflectClass(B).owner' : reflectClass(B).owner, |
| 123 'reflect(new A()).type.owner' : reflect(new A()).type.owner, | 123 'reflect(new A()).type.owner' : reflect(new A()).type.owner, |
| 124 'reflect(new B()).type.owner' : reflect(new B()).type.owner}, | 124 'reflect(new B()).type.owner' : reflect(new B()).type.owner}, |
| 125 ]); | 125 ]); |
| 126 } | 126 } |
| OLD | NEW |