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

Side by Side Diff: tests/lib_strong/mirrors/parameter_test.dart

Issue 2765893003: Fix warnings_checker.dart handling of multitests (Closed)
Patch Set: Created 3 years, 9 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
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: 5 // This tests uses the multi-test "ok" feature:
6 // none: Desired behaviour, passing on the VM. 6 // none: Desired behaviour, passing on the VM.
7 // 01: Trimmed version for dart2js. 7 // 01: Trimmed version for dart2js.
8 // 8 //
9 // TODO(rmacnak,ahe): Remove multi-test when VM and dart2js are on par. 9 // TODO(rmacnak,ahe): Remove multi-test when VM and dart2js are on par.
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 expect('Method(s(B.bar) in s(B), constructor)', barConstructor); 72 expect('Method(s(B.bar) in s(B), constructor)', barConstructor);
73 expect('[Parameter(s(z) in s(B.bar),' 73 expect('[Parameter(s(z) in s(B.bar),'
74 ' type = Class(s(int) in s(dart.core), top-level)), ' 74 ' type = Class(s(int) in s(dart.core), top-level)), '
75 'Parameter(s(x) in s(B.bar),' 75 'Parameter(s(x) in s(B.bar),'
76 ' type = Type(s(dynamic), top-level))]', 76 ' type = Type(s(dynamic), top-level))]',
77 barConstructor.parameters); 77 barConstructor.parameters);
78 expect('Class(s(B) in s(test.parameter_test), top-level)', 78 expect('Class(s(B) in s(test.parameter_test), top-level)',
79 barConstructor.returnType); 79 barConstructor.returnType);
80 80
81 // dart2js stops testing here. 81 // dart2js stops testing here.
82 return; // /// 01: ok 82 return; // //# 01: ok
83 83
84 MethodMirror bazConstructor = constructors[#B.baz]; 84 MethodMirror bazConstructor = constructors[#B.baz];
85 expect('Method(s(B.baz) in s(B), constructor)', bazConstructor); 85 expect('Method(s(B.baz) in s(B), constructor)', bazConstructor);
86 expect('[Parameter(s(x) in s(B.baz), final,' 86 expect('[Parameter(s(x) in s(B.baz), final,'
87 ' type = Class(s(int) in s(dart.core), top-level)), ' 87 ' type = Class(s(int) in s(dart.core), top-level)), '
88 'Parameter(s(y) in s(B.baz),' 88 'Parameter(s(y) in s(B.baz),'
89 ' type = Class(s(int) in s(dart.core), top-level)), ' 89 ' type = Class(s(int) in s(dart.core), top-level)), '
90 'Parameter(s(z) in s(B.baz), final,' 90 'Parameter(s(z) in s(B.baz), final,'
91 ' type = Class(s(int) in s(dart.core), top-level))]', 91 ' type = Class(s(int) in s(dart.core), top-level))]',
92 bazConstructor.parameters); 92 bazConstructor.parameters);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 expect('[Parameter(s(a) in s(bar),' 174 expect('[Parameter(s(a) in s(bar),'
175 ' type = TypeVariable(s(S) in s(C),' 175 ' type = TypeVariable(s(S) in s(C),'
176 ' upperBound = Class(s(int) in s(dart.core), top-level))), ' 176 ' upperBound = Class(s(int) in s(dart.core), top-level))), '
177 'Parameter(s(b) in s(bar),' 177 'Parameter(s(b) in s(bar),'
178 ' type = TypeVariable(s(T) in s(C),' 178 ' type = TypeVariable(s(T) in s(C),'
179 ' upperBound = Class(s(Object) in s(dart.core), top-level))), ' 179 ' upperBound = Class(s(Object) in s(dart.core), top-level))), '
180 'Parameter(s(c) in s(bar),' 180 'Parameter(s(c) in s(bar),'
181 ' type = Class(s(num) in s(dart.core), top-level))]', 181 ' type = Class(s(num) in s(dart.core), top-level))]',
182 barInC.parameters); 182 barInC.parameters);
183 } 183 }
OLDNEW
« no previous file with comments | « tests/lib_strong/mirrors/parameter_is_const_test.dart ('k') | tests/lib_strong/mirrors/raw_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698