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

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

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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/language/prefix_test2.dart ('k') | dart/tests/language/private2.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 // Dart test for testing access to private fields. 5 // Dart test for testing access to private fields.
6 part of PrivateTest;
7 6
8 main() { 7 main() {
9 testPrivateTopLevel(); 8 testPrivateTopLevel();
10 testPrivateClasses(); 9 testPrivateClasses();
11 } 10 }
12 11
13 void expectCatch(f) { 12 void expectCatch(f) {
14 bool threw = false; 13 bool threw = false;
15 try { 14 try {
16 f(); 15 f();
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 Expect.equals(42, c.field2a()); 88 Expect.equals(42, c.field2a());
90 Expect.equals(99, LibOther3.c_field1b(c)); 89 Expect.equals(99, LibOther3.c_field1b(c));
91 Expect.equals(99, c.field1b()); 90 Expect.equals(99, c.field1b());
92 Expect.equals(1024, LibOther3.c_field2b(c)); 91 Expect.equals(1024, LibOther3.c_field2b(c));
93 Expect.equals(1024, c.field2b()); 92 Expect.equals(1024, c.field2b());
94 Expect.equals(499, c.field1c()); 93 Expect.equals(499, c.field1c());
95 Expect.equals(99, c.field1d()); 94 Expect.equals(99, c.field1d());
96 Expect.equals(499, _field1FromNewC4()); 95 Expect.equals(499, _field1FromNewC4());
97 Expect.equals(42, _field2FromNewC4()); 96 Expect.equals(42, _field2FromNewC4());
98 } 97 }
OLDNEW
« no previous file with comments | « dart/tests/language/prefix_test2.dart ('k') | dart/tests/language/private2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698