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

Side by Side Diff: tests/language/private_member_test.dart

Issue 10248007: test rename overhaul: step 8 - language tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 | « tests/language/private_member_lib_b.dart ('k') | tests/language/private_other.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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('PrivateMemberLibA'); 5 #library('PrivateMemberLibA');
6 6
7 #import('PrivateMemberLibB.dart'); 7 #import('private_member_lib_b.dart');
8 8
9 class A { 9 class A {
10 int i; 10 int i;
11 int _instanceField; 11 int _instanceField;
12 static int _staticField; 12 static int _staticField;
13 int _fun1() { return 1; } 13 int _fun1() { return 1; }
14 void _fun2(int i) { } 14 void _fun2(int i) { }
15 } 15 }
16 16
17 class Test extends B { 17 class Test extends B {
18 test() { 18 test() {
19 i = _instanceField; 19 i = _instanceField;
20 i = A._staticField; 20 i = A._staticField;
21 i = _fun1(); 21 i = _fun1();
22 _fun2(42); 22 _fun2(42);
23 } 23 }
24 } 24 }
25 25
26 void main() { 26 void main() {
27 new Test().test(); 27 new Test().test();
28 } 28 }
OLDNEW
« no previous file with comments | « tests/language/private_member_lib_b.dart ('k') | tests/language/private_other.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698