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

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

Issue 14791005: BREAKING CHANGE: enforce part of directive (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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/overridden_no_such_method.dart ('k') | 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 6
7 part of PrivateTest.dart;
8
7 main() { 9 main() {
8 testPrivateTopLevel(); 10 testPrivateTopLevel();
9 testPrivateClasses(); 11 testPrivateClasses();
10 } 12 }
11 13
12 void expectCatch(f) { 14 void expectCatch(f) {
13 bool threw = false; 15 bool threw = false;
14 try { 16 try {
15 f(); 17 f();
16 } catch (e) { 18 } catch (e) {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 Expect.equals(42, c.field2a()); 90 Expect.equals(42, c.field2a());
89 Expect.equals(99, LibOther3.c_field1b(c)); 91 Expect.equals(99, LibOther3.c_field1b(c));
90 Expect.equals(99, c.field1b()); 92 Expect.equals(99, c.field1b());
91 Expect.equals(1024, LibOther3.c_field2b(c)); 93 Expect.equals(1024, LibOther3.c_field2b(c));
92 Expect.equals(1024, c.field2b()); 94 Expect.equals(1024, c.field2b());
93 Expect.equals(499, c.field1c()); 95 Expect.equals(499, c.field1c());
94 Expect.equals(99, c.field1d()); 96 Expect.equals(99, c.field1d());
95 Expect.equals(499, _field1FromNewC4()); 97 Expect.equals(499, _field1FromNewC4());
96 Expect.equals(42, _field2FromNewC4()); 98 Expect.equals(42, _field2FromNewC4());
97 } 99 }
OLDNEW
« no previous file with comments | « tests/language/overridden_no_such_method.dart ('k') | tests/language/private2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698