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

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

Issue 690413002: Fix issue 21474 in mirrors. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « runtime/lib/mirrors_impl.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 library test.declarations_test; 5 library test.declarations_test;
6 6
7 import 'dart:mirrors'; 7 import 'dart:mirrors';
8 import 'package:expect/expect.dart'; 8 import 'package:expect/expect.dart';
9 9
10 import 'stringify.dart'; 10 import 'stringify.dart';
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 'Method(s(staticSetter=) in s(Class), static, setter)', 183 'Method(s(staticSetter=) in s(Class), static, setter)',
184 'Variable(s(staticVariable) in s(Class), static)', 184 'Variable(s(staticVariable) in s(Class), static)',
185 'Method(s(test.declarations_model.Superclass' 185 'Method(s(test.declarations_model.Superclass'
186 ' with test.declarations_model.Mixin.inheritedGenerativeConstructor)' 186 ' with test.declarations_model.Mixin.inheritedGenerativeConstructor)'
187 ' in s(test.declarations_model.Superclass' 187 ' in s(test.declarations_model.Superclass'
188 ' with test.declarations_model.Mixin), constructor)', 188 ' with test.declarations_model.Mixin), constructor)',
189 'Method(s(test.declarations_model.Superclass' 189 'Method(s(test.declarations_model.Superclass'
190 ' with test.declarations_model.Mixin.inheritedRedirectingConstructor)' 190 ' with test.declarations_model.Mixin.inheritedRedirectingConstructor)'
191 ' in s(test.declarations_model.Superclass' 191 ' in s(test.declarations_model.Superclass'
192 ' with test.declarations_model.Mixin), constructor)', 192 ' with test.declarations_model.Mixin), constructor)',
193 'Method(s(toString) in s(Object))'], 193 'Method(s(toString) in s(Object))',
194 'Variable(s(mixinStaticVariable) in s(Mixin), static)',
195 'Method(s(mixinStaticGetter) in s(Mixin), static, getter)',
196 'Method(s(mixinStaticSetter=) in s(Mixin), static, setter)',
197 'Method(s(mixinStaticMethod) in s(Mixin), static)'],
194 inheritedDeclarations(cm).where((dm) => !dm.isPrivate).map(stringify), 198 inheritedDeclarations(cm).where((dm) => !dm.isPrivate).map(stringify),
195 'transitive public'); 199 'transitive public');
196 // The public members of Object should be the same in all implementations, so 200 // The public members of Object should be the same in all implementations, so
197 // we don't exclude Object here. 201 // we don't exclude Object here.
198 202
199 Expect.setEquals( 203 Expect.setEquals(
200 ['Method(s(+) in s(Class))', 204 ['Method(s(+) in s(Class))',
201 'TypeVariable(s(C) in s(Class),' 205 'TypeVariable(s(C) in s(Class),'
202 ' upperBound = Class(s(Object) in s(dart.core), top-level))', 206 ' upperBound = Class(s(Object) in s(dart.core), top-level))',
203 'Method(s(Class._generativeConstructor) in s(Class), private, constructor)', 207 'Method(s(Class._generativeConstructor) in s(Class), private, constructor)',
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 ' with test.declarations_model.Mixin._inheritedRedirectingConstructor)' 319 ' with test.declarations_model.Mixin._inheritedRedirectingConstructor)'
316 ' in s(test.declarations_model.Superclass' 320 ' in s(test.declarations_model.Superclass'
317 ' with test.declarations_model.Mixin), private, constructor)', 321 ' with test.declarations_model.Mixin), private, constructor)',
318 'Method(s(test.declarations_model.Superclass' 322 'Method(s(test.declarations_model.Superclass'
319 ' with test.declarations_model.Mixin.inheritedGenerativeConstructor)' 323 ' with test.declarations_model.Mixin.inheritedGenerativeConstructor)'
320 ' in s(test.declarations_model.Superclass' 324 ' in s(test.declarations_model.Superclass'
321 ' with test.declarations_model.Mixin), constructor)', 325 ' with test.declarations_model.Mixin), constructor)',
322 'Method(s(test.declarations_model.Superclass' 326 'Method(s(test.declarations_model.Superclass'
323 ' with test.declarations_model.Mixin.inheritedRedirectingConstructor)' 327 ' with test.declarations_model.Mixin.inheritedRedirectingConstructor)'
324 ' in s(test.declarations_model.Superclass' 328 ' in s(test.declarations_model.Superclass'
325 ' with test.declarations_model.Mixin), constructor)'], 329 ' with test.declarations_model.Mixin), constructor)',
330 'Variable(s(mixinStaticVariable) in s(Mixin), static)',
331 'Variable(s(_mixinStaticVariable) in s(Mixin), private, static)',
332 'Method(s(mixinStaticGetter) in s(Mixin), static, getter)',
333 'Method(s(mixinStaticSetter=) in s(Mixin), static, setter)',
334 'Method(s(mixinStaticMethod) in s(Mixin), static)',
335 'Method(s(_mixinStaticGetter) in s(Mixin), private, static, getter)',
336 'Method(s(_mixinStaticSetter=) in s(Mixin), private, static, setter)',
337 'Method(s(_mixinStaticMethod) in s(Mixin), private, static)'],
326 inheritedDeclarations(cm) 338 inheritedDeclarations(cm)
327 .difference(reflectClass(Object).declarations.values.toSet()) 339 .difference(reflectClass(Object).declarations.values.toSet())
328 .map(stringify), 340 .map(stringify),
329 'transitive less Object'); 341 'transitive less Object');
330 // The private members of Object may vary across implementations, so we 342 // The private members of Object may vary across implementations, so we
331 // exclude the declarations of Object in this test case. 343 // exclude the declarations of Object in this test case.
332 } 344 }
OLDNEW
« no previous file with comments | « runtime/lib/mirrors_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698