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

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

Issue 23180004: Change simpleName of anonymous mixin applications. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged and removed TODO. 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
« no previous file with comments | « dart/tests/lib/lib.status ('k') | dart/tests/lib/mirrors/mixin_dart2js_test.dart » ('j') | 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 hierarchy_test; 5 library hierarchy_test;
6 6
7 @MirrorsUsed(targets: 'hierarchy_test, Object') 7 @MirrorsUsed(targets: 'hierarchy_test, Object')
8 import 'dart:mirrors'; 8 import 'dart:mirrors';
9 9
10 import 'package:expect/expect.dart'; 10 import 'package:expect/expect.dart';
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 39
40 main() { 40 main() {
41 Expect.stringEquals(''' 41 Expect.stringEquals('''
42 > hierarchy_test.Bar 42 > hierarchy_test.Bar
43 + hierarchy_test.FooMixin 43 + hierarchy_test.FooMixin
44 > hierarchy_test.Qux 44 > hierarchy_test.Qux
45 > dart.core.Object 45 > dart.core.Object
46 ''', stringifyHierarchy(reflect(new Bar()..foo()..bar()..qux()))); 46 ''', stringifyHierarchy(reflect(new Bar()..foo()..bar()..qux())));
47 47
48 // TODO(ahe): Using wrong mixin syntax, see http://dartbug.com/12464.
49 Expect.stringEquals(''' 48 Expect.stringEquals('''
50 > hierarchy_test.Baz 49 > hierarchy_test.Baz
51 > hierarchy_test.FooMixin(hierarchy_test.Qux) 50 > hierarchy_test.Qux with hierarchy_test.FooMixin
52 + hierarchy_test.FooMixin 51 + hierarchy_test.FooMixin
53 > hierarchy_test.Qux 52 > hierarchy_test.Qux
54 > dart.core.Object 53 > dart.core.Object
55 ''', stringifyHierarchy(reflect(new Baz()..foo()..bar()..qux()))); 54 ''', stringifyHierarchy(reflect(new Baz()..foo()..bar()..qux())));
56 } 55 }
OLDNEW
« no previous file with comments | « dart/tests/lib/lib.status ('k') | dart/tests/lib/mirrors/mixin_dart2js_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698