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

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

Issue 22859016: Fix problem that caused anonymous mixin applications to be named "null". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 library mixin_members_test; 5 library mixin_members_test;
6 6
7 // TODO(ahe): Don't add mirrors used, the test doesn't work without it.
8 @MirrorsUsed(targets: 'mixin_members_test', override: '*')
9 import "dart:mirrors"; 7 import "dart:mirrors";
10 8
11 import "package:expect/expect.dart"; 9 import "package:expect/expect.dart";
12 10
13 import 'stringify.dart'; 11 import 'stringify.dart';
14 12
15 class Fooer { 13 class Fooer {
16 foo1(); 14 foo1();
17 } 15 }
18 16
(...skipping 30 matching lines...) Expand all
49 // TODO(ahe): Shouldn't have to sort. 47 // TODO(ahe): Shouldn't have to sort.
50 sort(sM1.members.keys), '(S with M1).members'); 48 sort(sM1.members.keys), '(S with M1).members');
51 expect('[s(M1)]', simpleNames(sM1.superinterfaces), 49 expect('[s(M1)]', simpleNames(sM1.superinterfaces),
52 '(S with M1).superinterfaces'); 50 '(S with M1).superinterfaces');
53 expect('[s(foo1), s(foo2)]', 51 expect('[s(foo1), s(foo2)]',
54 // TODO(ahe): Shouldn't have to sort. 52 // TODO(ahe): Shouldn't have to sort.
55 sort(s.members.keys), 's.members'); 53 sort(s.members.keys), 's.members');
56 expect('[s(Fooer)]', simpleNames(s.superinterfaces), 's.superinterfaces'); 54 expect('[s(Fooer)]', simpleNames(s.superinterfaces), 's.superinterfaces');
57 Expect.equals(s, reflectClass(S)); 55 Expect.equals(s, reflectClass(S));
58 } 56 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698