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

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

Issue 23460050: Mirror removals: async invoke, mirrorSystemOf(port), Mirror.mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « tests/lib/mirrors/invoke_named_test.dart ('k') | tests/lib/mirrors/invoke_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 test.invoke_test; 5 library test.invoke_private_test;
6 6
7 import 'dart:mirrors'; 7 import 'dart:mirrors';
8 8
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 import "package:async_helper/async_helper.dart";
11 10
12 class C { 11 class C {
13 var _field; 12 var _field;
14 C() : this._field = 'default'; 13 C() : this._field = 'default';
15 C._named(this._field); 14 C._named(this._field);
16 15
17 get _getter => 'get $_field'; 16 get _getter => 'get $_field';
18 set _setter(v) => _field = 'set $v'; 17 set _setter(v) => _field = 'set $v';
19 _method(x, y, z) => '$x+$y+$z'; 18 _method(x, y, z) => '$x+$y+$z';
20 19
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 result = lm.getField(#_libraryGetter); 76 result = lm.getField(#_libraryGetter);
78 Expect.equals('lget a priori', result.reflectee); 77 Expect.equals('lget a priori', result.reflectee);
79 result = lm.getField(#_libraryField); 78 result = lm.getField(#_libraryField);
80 Expect.equals('a priori', result.reflectee); 79 Expect.equals('a priori', result.reflectee);
81 80
82 lm.setField(#_librarySetter, 'lfoo'); 81 lm.setField(#_librarySetter, 'lfoo');
83 Expect.equals('lset lfoo', _libraryField); 82 Expect.equals('lset lfoo', _libraryField);
84 lm.setField(#_libraryField, 'lbar'); 83 lm.setField(#_libraryField, 'lbar');
85 Expect.equals('lbar', _libraryField); 84 Expect.equals('lbar', _libraryField);
86 } 85 }
OLDNEW
« no previous file with comments | « tests/lib/mirrors/invoke_named_test.dart ('k') | tests/lib/mirrors/invoke_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698