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

Unified Diff: tests/standalone/src/io/DirectoryInvalidArgumentsTest.dart

Issue 10252020: test rename overhaul: step 12 - standalone (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/standalone/src/io/DirectoryErrorTest.dart ('k') | tests/standalone/src/io/DirectoryTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/io/DirectoryInvalidArgumentsTest.dart
diff --git a/tests/standalone/src/io/DirectoryInvalidArgumentsTest.dart b/tests/standalone/src/io/DirectoryInvalidArgumentsTest.dart
deleted file mode 100644
index c150369926878cd19238d350f1d17c13274bc839..0000000000000000000000000000000000000000
--- a/tests/standalone/src/io/DirectoryInvalidArgumentsTest.dart
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2012, 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.
-
-#import("dart:io");
-
-class DirectoryInvalidArgumentsTest {
- static void testFailingList(Directory d, var recursive) {
- int errors = 0;
- d.onError = (error) {
- errors += 1;
- };
- d.onDone = (completed) {
- Expect.equals(1, errors);
- Expect.isFalse(completed);
- };
- Expect.equals(0, errors);
- d.list(recursive);
- }
-
- static void testInvalidArguments() {
- Directory d = new Directory(12);
- try {
- d.existsSync();
- Expect.fail("No exception thrown");
- } catch (var e) {
- Expect.isTrue(e is IllegalArgumentException);
- }
- try {
- d.deleteSync();
- Expect.fail("No exception thrown");
- } catch (var e) {
- Expect.isTrue(e is IllegalArgumentException);
- }
- try {
- d.createSync();
- Expect.fail("No exception thrown");
- } catch (var e) {
- Expect.isTrue(e is IllegalArgumentException);
- }
- testFailingList(d, false);
- d = new Directory(".");
- testFailingList(d, 1);
- }
-
- static void testMain() {
- testInvalidArguments();
- }
-}
-
-main() {
- DirectoryInvalidArgumentsTest.testMain();
-}
« no previous file with comments | « tests/standalone/src/io/DirectoryErrorTest.dart ('k') | tests/standalone/src/io/DirectoryTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698