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

Unified Diff: tests/language/src/PrivateMain.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, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/src/PrivateLib.dart ('k') | tests/language/src/PrivateMember1LibB.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/PrivateMain.dart
diff --git a/tests/language/src/PrivateMain.dart b/tests/language/src/PrivateMain.dart
deleted file mode 100644
index 371eb4258073c783e631929909424b21e5ebabf4..0000000000000000000000000000000000000000
--- a/tests/language/src/PrivateMain.dart
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-// Dart test for testing access to private fields.
-
-main() {
- PrivateMain.main();
-}
-
-class PrivateMain {
-
- static final _myPrecious = "A Ring";
-
- static accessMyPrivates() {
- var value = 0;
- try {
- value = _myPrecious;
- } catch (var e) {
- value = -1;
- }
- Expect.equals("A Ring", value);
- }
-
- static accessMyLibPrivates() {
- var value = 0;
- var the_other = new PrivateOther();
- try {
- value = the_other._myPrecious;
- } catch (var e, var trace) {
- print(e);
- print(trace);
- Expect.equals(true, e is NoSuchMethodException);
- value = -1;
- }
- Expect.equals("Another Ring", value);
- }
-
- static accessOtherLibPrivates() {
- var value = 0;
- var the_other = new PrivateLib();
- try {
- value = the_other._myPrecious;
- } catch (var e, var trace) {
- print(e);
- print(trace);
- Expect.equals(true, e is NoSuchMethodException);
- value = -1;
- }
- Expect.equals(-1, value);
- }
-
- static main() {
- accessMyPrivates();
- accessMyLibPrivates();
- accessOtherLibPrivates();
- }
-}
« no previous file with comments | « tests/language/src/PrivateLib.dart ('k') | tests/language/src/PrivateMember1LibB.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698