Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: tests/lib/mirrors/equality_test.dart

Issue 24008002: Merge tests for dart2js and VM using multi-tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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:
6 // none: Trimmed behaviour. Passing on the VM.
7 // 01: Trimmed version for dart2js.
8 // 02: Full version passing in the VM.
9 //
10 // TODO(rmacnak,ahe): Remove multi-test when VM and dart2js are on par.
11
5 library test.class_equality_test; 12 library test.class_equality_test;
6 13
7 import 'dart:mirrors'; 14 import 'dart:mirrors';
8 15
9 import 'package:expect/expect.dart'; 16 import 'package:expect/expect.dart';
10 17
11 class A<T> {} 18 class A<T> {}
12 class B extends A<int> {} 19 class B extends A<int> {}
13 20
14 class BadEqualityHash { 21 class BadEqualityHash {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 88
82 {'reflect(3.5+4.5)' : reflect(3.5+4.5), 89 {'reflect(3.5+4.5)' : reflect(3.5+4.5),
83 'reflect(6.5+1.5)' : reflect(6.5+1.5)}, 90 'reflect(6.5+1.5)' : reflect(6.5+1.5)},
84 91
85 {'reflect(3+4)' : reflect(3+4), 92 {'reflect(3+4)' : reflect(3+4),
86 'reflect(6+1)' : reflect(6+1)}, 93 'reflect(6+1)' : reflect(6+1)},
87 94
88 {'reflect("foo")' : reflect("foo"), 95 {'reflect("foo")' : reflect("foo"),
89 'reflect("foo"), again' : reflect("foo")}, 96 'reflect("foo"), again' : reflect("foo")},
90 97
91 {'currentMirrorSystem().voidType' : currentMirrorSystem().voidType, 98 {'currentMirrorSystem().voidType' : currentMirrorSystem().voidType}, /// 01 : ok
92 'thisLibrary.functions[#subroutine].returnType' : 99
93 thisLibrary.functions[const Symbol('subroutine')].returnType}, 100 {'currentMirrorSystem().voidType' : currentMirrorSystem().voidType, /// 02 : ok
101 'thisLibrary.functions[#subroutine].returnType' : /// 02 : ok
102 thisLibrary.functions[const Symbol('subroutine')].returnType}, /// 02 : ok
94 103
95 {'currentMirrorSystem().dynamicType' : currentMirrorSystem().dynamicType, 104 {'currentMirrorSystem().dynamicType' : currentMirrorSystem().dynamicType,
96 'thisLibrary.functions[#main].returnType' : 105 'thisLibrary.functions[#main].returnType' :
97 thisLibrary.functions[const Symbol('main')].returnType}, 106 thisLibrary.functions[const Symbol('main')].returnType},
98 107
99 {'reflectClass(A)' : reflectClass(A), 108 {'reflectClass(A)' : reflectClass(A),
100 'thisLibrary.classes[#A]' : thisLibrary.classes[const Symbol('A')], 109 'thisLibrary.classes[#A]' : thisLibrary.classes[const Symbol('A')],
101 'reflect(new A<int>()).type.originalDeclaration' : 110 'reflect(new A<int>()).type.originalDeclaration' :
102 reflect(new A<int>()).type.originalDeclaration}, 111 reflect(new A<int>()).type.originalDeclaration},
103 112
104 {'reflectClass(B).superclass' : reflectClass(B).superclass, 113 {'reflectClass(B).superclass' : reflectClass(B).superclass, /// 02: ok
105 'reflect(new A<int>()).type' : reflect(new A<int>()).type}, 114 'reflect(new A<int>()).type' : reflect(new A<int>()).type}, /// 02: ok
106 115
107 {'reflectClass(B)' : reflectClass(B), 116 {'reflectClass(B)' : reflectClass(B),
108 'thisLibrary.classes[#B]' : thisLibrary.classes[const Symbol('B')], 117 'thisLibrary.classes[#B]' : thisLibrary.classes[const Symbol('B')],
109 'reflect(new B()).type' : reflect(new B()).type}, 118 'reflect(new B()).type' : reflect(new B()).type},
110 119
111 {'thisLibrary' : thisLibrary, 120 {'thisLibrary' : thisLibrary,
112 'reflectClass(A).owner' : reflectClass(A).owner, 121 'reflectClass(A).owner' : reflectClass(A).owner,
113 'reflectClass(B).owner' : reflectClass(B).owner, 122 'reflectClass(B).owner' : reflectClass(B).owner,
114 'reflect(new A()).type.owner' : reflect(new A()).type.owner, 123 'reflect(new A()).type.owner' : reflect(new A()).type.owner,
115 'reflect(new A()).type.owner' : reflect(new A()).type.owner}, 124 'reflect(new A()).type.owner' : reflect(new A()).type.owner},
116 ]); 125 ]);
117 } 126 }
OLDNEW
« no previous file with comments | « tests/lib/mirrors/equality_dart2js_test.dart ('k') | tests/lib/mirrors/parameter_dart2js_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698